| View previous topic :: View next topic |
| Author |
Message |
FILIN Voice
Joined: 07 Dec 2004 Posts: 4
|
Posted: Tue Dec 07, 2004 11:08 am Post subject: |
|
|
[17:05:56] <GameKeeper> [17:05] Telnet connection: germes.belsonet.net/31628
[17:05:57] <GameKeeper> [17:05] Lost connection while identing [germes.belsonet.net/31628]
why i have this error in my partyline??
plz help |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Dec 07, 2004 11:41 am Post subject: |
|
|
| it's not an error, just a signal someone tries to connect (for whatever erason) on bot's ports |
|
| Back to top |
|
 |
FILIN Voice
Joined: 07 Dec 2004 Posts: 4
|
Posted: Tue Dec 07, 2004 12:00 pm Post subject: |
|
|
| demond wrote: | | it's not an error, just a signal someone tries to connect (for whatever erason) on bot's ports |
this attempt of connect i see when i post new topic on my forum
and i dont see in my channel any phrase from bot =( |
|
| Back to top |
|
 |
FILIN Voice
Joined: 07 Dec 2004 Posts: 4
|
Posted: Wed Dec 08, 2004 4:41 am Post subject: |
|
|
| FILIN wrote: | [17:05:56] <GameKeeper> [17:05] Telnet connection: germes.belsonet.net/31628
[17:05:57] <GameKeeper> [17:05] Lost connection while identing [germes.belsonet.net/31628]
why i have this error in my partyline??
plz help |
WHY?? anybody help me plz!! |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Wed Dec 08, 2004 9:46 am Post subject: |
|
|
demond gave you your answer. Solution? Seems your bot is secure as the connection is failing. _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
FILIN Voice
Joined: 07 Dec 2004 Posts: 4
|
Posted: Wed Dec 08, 2004 9:57 am Post subject: |
|
|
| Alchera wrote: | | demond gave you your answer. Solution? Seems your bot is secure as the connection is failing. |
this is error of phpbb2egg.tcl script
this message come when I post new topic in my forum!
i think my forum dont connect to my bot (and bot do not post message in channel) beacouse it dont make ident
sor for my english
any ideas? |
|
| Back to top |
|
 |
user

Joined: 18 Mar 2003 Posts: 1452 Location: Norway
|
Posted: Wed Dec 08, 2004 2:10 pm Post subject: |
|
|
| FILIN wrote: | | Alchera wrote: | | demond gave you your answer. Solution? Seems your bot is secure as the connection is failing. |
this is error of phpbb2egg.tcl script
this message come when I post new topic in my forum!
i think my forum dont connect to my bot (and bot do not post message in channel) beacouse it dont make ident
sor for my english
any ideas? |
Your eggdrop's telnet settings might prevent php from connecting to it. Try adding a user with *!*@<web server ip> as a host and see what happens.
btw: the script you're using/trying to get to work is easy to exploit if the bot's host is known by someone evil and they are allowed to connect. Here's a howto:
1: portscan the ip to find open ports
2: find port(s) that accept your connection but gives no banner
3: send "YourNick hi" to verify that it's the right one
4: be creative (eg. "#victims a;b;c;d;e;f;g;h;i;j;k;l;m;n;o;p;q;r;s;t;u;v;w;x;y;z" )
Fix: the code sucks, so do a total rewrite that includes some sort of password protection.
Here's some code to get you started with the rewrite...
Tcl:
| Code: |
set crap(port) 3333
set crap(pass) "password"
listen $crap(port) script phpcrap_A
proc crap_A i {control $i crap_B}
proc crap_B {i a} {
global crap
if {$a!=""} {
if {[scan $a "%s %s %\[\n\]" p c a]==3&&$p==$crap(pass)} {
# if the string was formatted, break $a apart here...
puthelp "PRIVMSG $c :$a"
}
}
set a 1
} |
Php:
| Code: | $crap["pass"] = "password";
$crap["addr"] = "127.0.0.1";
$crap["port"] = 3333;
$crap["chan"] = "#channel";
$crap["timeout"] = 30;
function crap($stuff) {
global $crap;
$stuff = $crap["pass"]." ".$crap["chan"]." ".trim($stuff)."\n";
$sock = fsockopen($crap["addr"], $crap["port"], $i, $s, $crap["timeout"]);
if($sock) {
stream_set_blocking($sock, TRUE);
if(fwrite($sock, $stuff, strlen($stuff))) {
fclose($sock);
return 1;
} else {
fclose($sock);
return -1;
}
} else {
return 0;
}
}
# test:
$crap[1] = "Message sent.";
$crap[0] = "Connection failed.";
$crap[-1] = "Send failed.";
echo "<P>".$crap[crap("Change me!")]."</P>";
?> |
If you need multiline messages, invent a format and pass the formatted message to crap() ...and make sure the tcl part knows how to deal with that format too, of course
If you don't need to be able to change the target of the message via php, move it to the tcl. _________________ Have you ever read "The Manual"? |
|
| Back to top |
|
 |
Lovellz Voice
Joined: 23 Jan 2005 Posts: 2
|
Posted: Sun Jan 23, 2005 6:23 pm Post subject: |
|
|
Has anyone found a solution to the problem with this script yet? Without having to code your own
cheers. |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Mon Jan 24, 2005 12:14 am Post subject: |
|
|
The solution was posted by user last year.  _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
Lovellz Voice
Joined: 23 Jan 2005 Posts: 2
|
Posted: Mon Jan 24, 2005 11:37 am Post subject: |
|
|
| Yes but it doesnt work, i recieve Lost connection while ident'ing. |
|
| Back to top |
|
 |
Longbow Voice
Joined: 13 Jan 2005 Posts: 29
|
Posted: Mon Jan 24, 2005 11:58 am Post subject: |
|
|
| Quote: | | Days ago I found here a snippet to post invision bord messages into a channel. | Mm... where's that then? I need one for IPB. |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Mon Jan 24, 2005 2:08 pm Post subject: |
|
|
Having to add my own .php page in the forum to make things work sucks. What if you don't have access to add that .php file there? Simple, you can't read (at least via this way) the topics..  _________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
Jailmann Voice
Joined: 09 Apr 2004 Posts: 33
|
Posted: Mon Jan 24, 2005 2:58 pm Post subject: Invision Power Board script |
|
|
Hi everybody!
I need script wich can read posts from forum (exactly from Invision power board ) and post a litle anouncment about this post and who has wrote this post also to show the link to this post.
Can you help me? |
|
| Back to top |
|
 |
cambodia Halfop

Joined: 22 Aug 2004 Posts: 73 Location: cambodia
|
Posted: Fri Mar 18, 2005 3:33 pm Post subject: |
|
|
| *bump* any idea about invision board ? ( do the phphbb2egg release version that work with phpbb 2.0.10 post in download section already ? ) |
|
| Back to top |
|
 |
Thunderdome Op

Joined: 15 Mar 2005 Posts: 187
|
Posted: Sun Apr 10, 2005 10:56 pm Post subject: |
|
|
| for invision a script like that would be awesome! anyone knows one? |
|
| Back to top |
|
 |
|