egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need forum tcl
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
FILIN
Voice


Joined: 07 Dec 2004
Posts: 4

PostPosted: Tue Dec 07, 2004 11:08 am    Post subject: Reply with quote

[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
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Tue Dec 07, 2004 11:41 am    Post subject: Reply with quote

it's not an error, just a signal someone tries to connect (for whatever erason) on bot's ports
Back to top
View user's profile Send private message Visit poster's website
FILIN
Voice


Joined: 07 Dec 2004
Posts: 4

PostPosted: Tue Dec 07, 2004 12:00 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
FILIN
Voice


Joined: 07 Dec 2004
Posts: 4

PostPosted: Wed Dec 08, 2004 4:41 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Wed Dec 08, 2004 9:46 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
FILIN
Voice


Joined: 07 Dec 2004
Posts: 4

PostPosted: Wed Dec 08, 2004 9:57 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
user
 


Joined: 18 Mar 2003
Posts: 1452
Location: Norway

PostPosted: Wed Dec 08, 2004 2:10 pm    Post subject: Reply with quote

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" Razz)

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 Razz
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
View user's profile Send private message
Lovellz
Voice


Joined: 23 Jan 2005
Posts: 2

PostPosted: Sun Jan 23, 2005 6:23 pm    Post subject: Reply with quote

Has anyone found a solution to the problem with this script yet? Without having to code your own Laughing

cheers.
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Mon Jan 24, 2005 12:14 am    Post subject: Reply with quote

The solution was posted by user last year. Razz
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Lovellz
Voice


Joined: 23 Jan 2005
Posts: 2

PostPosted: Mon Jan 24, 2005 11:37 am    Post subject: Reply with quote

Yes but it doesnt work, i recieve Lost connection while ident'ing.
Back to top
View user's profile Send private message
Longbow
Voice


Joined: 13 Jan 2005
Posts: 29

PostPosted: Mon Jan 24, 2005 11:58 am    Post subject: Reply with quote

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
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Mon Jan 24, 2005 2:08 pm    Post subject: Reply with quote

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.. Rolling Eyes
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
Jailmann
Voice


Joined: 09 Apr 2004
Posts: 33

PostPosted: Mon Jan 24, 2005 2:58 pm    Post subject: Invision Power Board script Reply with quote

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
View user's profile Send private message
cambodia
Halfop


Joined: 22 Aug 2004
Posts: 73
Location: cambodia

PostPosted: Fri Mar 18, 2005 3:33 pm    Post subject: Reply with quote

*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
View user's profile Send private message
Thunderdome
Op


Joined: 15 Mar 2005
Posts: 187

PostPosted: Sun Apr 10, 2005 10:56 pm    Post subject: Reply with quote

for invision a script like that would be awesome! anyone knows one?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber