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 

Linking from the eggdrop 32 characters stuff

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
JohnDoe
Voice


Joined: 31 Aug 2005
Posts: 3

PostPosted: Wed Aug 31, 2005 12:18 pm    Post subject: Linking from the eggdrop 32 characters stuff Reply with quote

Hello,
Im having problems with linking my bots, my first 2 bots are really no problem and they work great, but i bought a new shell account,
and this one is making me hard to link the basterd :p

This is what happens after i add the bot on the hub and try to link them:

Telnet connection: ho0ker.org/1509
Non-matching handle lengths with BOT003, they use 32 characters.
Telnet connection: ho0ker.org/4382
Challenging BOT003...
Bad Password: [BOT003]xxxxx@ho0ker.org/4382

I already put the command "set nick-len 9" in the config file and tried
again, but this dont seem to work.

Any1 any idea how to fix this ? Have to put a pasw for the bot ?
how i have to do this ?

All help is welcome Smile
Best regards.
John
Back to top
View user's profile Send private message
demond
Revered One


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

PostPosted: Wed Aug 31, 2005 12:42 pm    Post subject: Reply with quote

you can link bots with equal HANDLEN only (a constant defined in eggdrop.h), so you'll probably want to recompile the bot that uses HANDLEN 32 with the new value of 9 (alternatively, you can recompile all other bots to use 32)
Back to top
View user's profile Send private message Visit poster's website
KrzychuG
Master


Joined: 16 Aug 2003
Posts: 306
Location: Torun, Poland

PostPosted: Wed Aug 31, 2005 1:26 pm    Post subject: Reply with quote

I wonder why this limits are still in Eggdrop source code. It can be safely disabled and then allow to link bots with diffrent HANDLENS.
_________________
Que?
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: Wed Aug 31, 2005 1:51 pm    Post subject: Reply with quote

KrzychuG wrote:
I wonder why this limits are still in Eggdrop source code. It can be safely disabled and then allow to link bots with diffrent HANDLENS.


far from safety; that will likely crash your bot when your HANDLEN 9 eggdrop try to link to another HANDLEN 32 bot where LamerLamer is on party-line, since that 10-character handle, after getting relayed through the botnet, will cause writing past the end of your handle buffer
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 Aug 31, 2005 8:06 pm    Post subject: Reply with quote

To remove the limit simply edit ~src/eggdrop.h and change the following line from:
Code:
#define HANDLEN 9   /* valid values 9->NICKMAX  */

to:
Code:
#define HANDLEN 32   /* valid values 9->NICKMAX  */

and then recompile.

You also change 'set nick-len 9' to 'set nick-len 32' in the bot conf.
_________________
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
KrzychuG
Master


Joined: 16 Aug 2003
Posts: 306
Location: Torun, Poland

PostPosted: Thu Sep 01, 2005 5:18 pm    Post subject: Reply with quote

demond wrote:
KrzychuG wrote:
I wonder why this limits are still in Eggdrop source code. It can be safely disabled and then allow to link bots with diffrent HANDLENS.


far from safety; that will likely crash your bot when your HANDLEN 9 eggdrop try to link to another HANDLEN 32 bot where LamerLamer is on party-line, since that 10-character handle, after getting relayed through the botnet, will cause writing past the end of your handle buffer


No, they won't crash. At least not 1.6.16 and newest. Bot with HANDLEN9 will cut some chars, that's all. You can relay to that bot using longer nickname, you can share userfile. No problem at all.

Code:

23:10:31   [15]  <-+BPShirase   (31 Aug 18:11) 15 Evangeline v1.1.2 2005/06/28 B1 <IRCnet>
23:10:31   [20]  <-+Evangeline  (01 Sep 23:03) 10 Evangeline v1.1.2 2005/06/28 B1 <IRCnet>


As you see BPShirase have HANDLEN set to 15, Evangeline have it set to 10.

Code:

I am BPShirase, running Evangeline v1.1.2 2005/06/28 B1: 27 users (mem: 106k).

.tcl set handlen
Tcl: 15

.wi lamerlamer1
[23:09:02] #KrzychuG# whois lamerlamer1
HANDLE          PASS NOTES FLAGS           LAST
lamerlamer1     yes      0 jmnoptx         23:06 (@main)
  COMMENT: Added by: KrzychuG (01.09.2005 23:03:43)
.wi lamerlamer
[23:10:50] #KrzychuG# whois lamerlamer
Can't find anyone matching that.

.relay evangeline
[23:09:32] #KrzychuG# relay evangeline
Connecting to evangeline @ arjuna.no-ip.com:8890 ...
(Type *BYE* on a line by itself to abort.)
Success!
 evangeline ...
(You can type *BYE* to prematurely close the connection.)
*** KrzychuG left the party line.
lamerlamer1
Enter your password.

*** lamerlamer joined the party line.

.status
[23:17:54] #lamerlamer# status
I am Evangeline, running Evangeline v1.1.2 2005/06/28 B1: 27 users (mem: 102k).

.tcl set handlen
Tcl: 10

.wi lamerlamer1
[23:15:49] #lamerlamer# whois lamerlamer1
HANDLE     PASS NOTES FLAGS           LAST
lamerlamer yes      0 jmnoptx         23:15 (partyline)
  COMMENT: Added by: KrzychuG (01.09.2005 23:03:43)
.wi lamerlamer
[23:16:37] #lamerlamer# whois lamerlamer
HANDLE     PASS NOTES FLAGS           LAST
lamerlamer yes      0 jmnoptx         23:15 (partyline)
  COMMENT: Added by: KrzychuG (01.09.2005 23:03:43)


Surprised?
_________________
Que?
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: Thu Sep 01, 2005 5:49 pm    Post subject: Reply with quote

I said "likely" - that they don't crash means string copying functions take care not to write past the end of their buffers, and that's all - it doesn't mean the botnet is operating correctly; and while you can apparently live with incorrect and messed up (truncated) botnet info, I suspect most other people can't, and won't - they expect, for example, when adding user LamerLamer on their HANDLEN 32 hub, that user to show up on their leaf as LamerLamer, not as LamerLame - and they expect when changing LamerLamer's flags on the leaf, that change to propagate to the hub, not to be rejected by the hub since it doesn't know of user named LamerLame
Back to top
View user's profile Send private message Visit poster's website
KrzychuG
Master


Joined: 16 Aug 2003
Posts: 306
Location: Torun, Poland

PostPosted: Thu Sep 01, 2005 6:58 pm    Post subject: Reply with quote

Everything works fine. I'm using mixed botnet for about 3 months. In every action leaf with diffrent HANDLEN will cut handle. Sharing userfile, maniputaling users in userfile and any other works perfectly fine if you're doing it from higher HANDLEN hub. Sure, changing user on leaf won't do that action on hub, as you wrote but it's rather insecure and not used.
_________________
Que?
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: Thu Sep 01, 2005 9:49 pm    Post subject: Reply with quote

boy aren't you one weird egghead hehehe

I'd bet you did that so nobody would hack your leaves and take over your IRCnet channel by manipulating hub's user records from there Razz

LOL
Back to top
View user's profile Send private message Visit poster's website
KrzychuG
Master


Joined: 16 Aug 2003
Posts: 306
Location: Torun, Poland

PostPosted: Fri Sep 02, 2005 2:20 am    Post subject: Reply with quote

demond wrote:
I'd bet you did that so nobody would hack your leaves and take over your IRCnet channel by manipulating hub's user records from there :P


Nobody tried, but even if then i don't really care about takeovers on IRCnet ;)
_________________
Que?
Back to top
View user's profile Send private message Visit poster's website
JohnDoe
Voice


Joined: 31 Aug 2005
Posts: 3

PostPosted: Fri Sep 02, 2005 5:07 am    Post subject: Reply with quote

Hmmm sounds difficult :p
My hub is running on a 9 char handle, and the new bot im trying to connect runs on a 32 one,
in the bot config file i put the command set nick-len 9, then i tried again and still nother, still getting the msg:

Non-matching handle lengths with BOT, they use 32 characters.

So, i will try to edit the .h file and compile again.

If this dont works, is it possible to make the BOT a HUB, so the hub becomes 32 handle and link the other ones from 9 to it ?

Thanks a lot already guys
Back to top
View user's profile Send private message
demond
Revered One


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

PostPosted: Fri Sep 02, 2005 5:36 am    Post subject: Reply with quote

nick-len has nothing to do with that

don't listen to KrzychuG, he likes to live dangerously hehe; simply recompile all bots with HANDLEN 32 and forget about the issue
Back to top
View user's profile Send private message Visit poster's website
JohnDoe
Voice


Joined: 31 Aug 2005
Posts: 3

PostPosted: Fri Sep 02, 2005 6:04 am    Post subject: Reply with quote

I reinstalled the bot with handle 9, then had to remove the password and it works, thx guys Smile
Back to top
View user's profile Send private message
KrzychuG
Master


Joined: 16 Aug 2003
Posts: 306
Location: Torun, Poland

PostPosted: Fri Sep 02, 2005 1:06 pm    Post subject: Reply with quote

demond wrote:
nick-len has nothing to do with that

don't listen to KrzychuG, he likes to live dangerously hehe;


Otherwise my life would be to boring ;)

Btw, to allow bots with diffrent HANDLENs to connect you have to cut HANDLEN checking part in src/dcc.c on both bots.
_________________
Que?
Back to top
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Sun Sep 04, 2005 10:11 am    Post subject: Reply with quote

I still believe that setting the same handlen for all bots is better than cutting off the check for same handlen... you have to modify and recompile your bot in both cases. Since all you need to change in order to run on diffrent networks is nick-length I can't think of any oppurinity of having 2 bots linked with diffrent hand length. If you compile your bot with the handlen of an Angel bot, you can even establish a connection to those, so still no need for mixed handlen...
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
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