Valhalla Legends Forums Archive | Web Development | [PHP] Bot Srry Locked the other on accident

AuthorMessageTime
AC_Drkan
IT WORKS. I DIDN'T THINK IT WOULD BUT IT DOES.

[code]BNet Side:
[00:31:29] Qu3#2 joined the channel using a chat bot.
[00:33:11] <Qu3#2> ::..:: 0 ::..::
[00:35:12] <Qu3#2> ::..:: 1 ::..::
[00:37:13] <Qu3#2> ::..:: 2 ::..::
[00:39:14] <Qu3#2> ::..:: 3 ::..::
[00:41:14] <Qu3#2> ::..:: 4 ::..::
[00:43:15] <Qu3#2> ::..:: 5 ::..::
[00:45:16] <Qu3#2> ::..:: 6 ::..::
[00:47:17] <Qu3#2> ::..:: 7 ::..::
[00:49:18] <Qu3#2> ::..:: 8 ::..::
[00:51:19] <Qu3#2> ::..:: 9 ::..::
[00:53:20] <Qu3#2> ::..:: 10 ::..::
[00:55:20] <Qu3#2> ::..:: 11 ::..::
[00:57:21] <Qu3#2> ::..:: 12 ::..::
[00:59:22] <Qu3#2> ::..:: 13 ::..::
[01:01:23] <Qu3#2> ::..:: 14 ::..::
[01:03:24] <Qu3#2> ::..:: 15 ::..::
[01:05:25] <Qu3#2> ::..:: 16 ::..::
[01:07:26] <Qu3#2> ::..:: 17 ::..::
[01:09:27] <Qu3#2> ::..:: 18 ::..::
[01:11:28] <Qu3#2> ::..:: 19 ::..::
[01:13:29] <Qu3#2> ::..:: 20 ::..::
[/code]

That is when i executeds it form the command line.
I have it set to exit the script after 20 null packets(just as a precaution) without the command line(normal http:// script) it would only execute 8 times.

Will be posting the code once i make it look pretty :D

Will be making a site for the development of this bot. Stay Tuned
June 4, 2005, 5:12 AM
Quarantine
I'll be interested in this, nice job.
June 4, 2005, 5:47 AM
AC_Drkan
Thank you

EDIT:
Little porblem, tried to solve it on my own but i cannot.

The install.php won;t work to execute the script itself. i think something might be wrong with the hosting service, i dunno, maybe.

This code:
[code]<?php

system("php -c php.ini -f asdf.php", $retval);

echo("The Execution Returned: $retval");

?>[/code]

Will not execute asdf.php, which is what the bot is.

Thats when run from the browser, when i type it into the ssh terminal though, it runs fine. So what i was attempting to do was do an ssh to my server, login and then have it execute the file. I have tried the functions on php.net with no luck. I think they might have been for php 5, which i think my hosting service still has php 4. Any help is GREATLY APPRECIATED on how to connect to an ssh server and execute a command.
June 4, 2005, 2:34 PM
JTN Designer
Can I ask you why you need to connect to SSH? , I used a BNLS connection done through PHP. Let me know if you need further help.
June 18, 2005, 6:35 PM
AC_Drkan
Reason being is because you cannot run something with different php credentials than what the script your currently running has. It keeps returning error 127.

I have no lcue, if this dosen't make any sense sorry, im tired.
June 20, 2005, 3:37 AM

Search