This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Bind to newuser, chattr, etc for a botnet linked bot

Old posts that have not been replied to for several years.
Locked
t
trevelyn

Post by trevelyn »

Is there a specific bind i can use so that bots on a botnet can take specific action when the master bot adduser, chattr?

I can see the userfile changes logged in the console, but is there a bind for these changes?

TIA
trevelyn

<font size=-1>[ This Message was edited by: trevelyn on 2002-01-22 01:37 ]</font>
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Short answer no.

Longer answer, you can make guesses when the userfile is complete, and take action then.

EG, use a link bind, and detect if the bot is a share bot. Then use timers to work out when the value of the global variable "getting-users" (documented in tcl-commands.doc) is changed to 0. When it is set to 0, this usualy means that the userfile is complete, or the bot got delinked, you should check this, then take your action acordignly.
g
guppy
eggdrop engineer
Posts: 199
Joined: Mon Sep 24, 2001 8:00 pm
Location: Canada
Contact:

Post by guppy »

On 2002-01-22 09:06, ppslim wrote:
EG, use a link bind, and detect if the bot is a share bot. Then use timers to work out when the value of the global variable "getting-users" (documented in tcl-commands.doc) is changed to 0. When it is set to 0, this usualy means that the userfile is complete, or the bot got delinked, you should check this, then take your action acordignly.
You should be able to use 'trace' to detect when a variable changes instead of using timers to figure it out

Jeff.
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

guppy I don't think we call Tcl_UpdateLinkedVar anywhere in the code, so traces shouldn't work on eggdrop variables.
g
guppy
eggdrop engineer
Posts: 199
Joined: Mon Sep 24, 2001 8:00 pm
Location: Canada
Contact:

Post by guppy »

Well [censored] ... lets get fixing that :)

Jeff
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

If we make them binds, then they will work even in languages without a trace command (1.7).

I've always wanted to have a bind for chattr, and the proc could approve/deny the bind. Same with chanset, new hosts, user/channel creation/deletion, etc.
t
trevelyn

Post by trevelyn »

That would be *great*

Thanks for eggdrop, it's a godsend :smile:

trevelyn
Locked