Valhalla Legends Archive

Programming => Web Development => Topic started by: AC_Drkan on June 04, 2005, 12:12 AM

Title: [PHP] Bot Srry Locked the other on accident
Post by: AC_Drkan on June 04, 2005, 12:12 AM
IT WORKS. I DIDN'T THINK IT WOULD BUT IT DOES.

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 ::..::


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
Title: Re: [PHP] Bot Srry Locked the other on accident
Post by: Warrior on June 04, 2005, 12:47 AM
I'll be interested in this, nice job.
Title: Re: [PHP] Bot Srry Locked the other on accident
Post by: AC_Drkan on June 04, 2005, 09:34 AM
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:
<?phpsystem("php -c php.ini -f asdf.php", $retval);echo("The Execution Returned: $retval");?>


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.
Title: Re: [PHP] Bot Srry Locked the other on accident
Post by: JTN Designer on June 18, 2005, 01:35 PM
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.
Title: Re: [PHP] Bot Srry Locked the other on accident
Post by: AC_Drkan on June 19, 2005, 10:37 PM
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.