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.

Botnet communication

Old posts that have not been replied to for several years.
Locked
P
Photon
Op
Posts: 170
Joined: Wed Aug 28, 2002 8:00 am
Location: Liverpool, England

Botnet communication

Post by Photon »

HI ... I'm new here, so please speak slowly... :oops:

right .. I'm writing a channel admin bot (with some wolf rcon stuff in it) and so far I've been doing it in TCL .. however I'm a C coder by trade so I'm just starting to mess around with modules.

My question is this - can anyone suggest a way by which (probably in a module) I can communicate between the bots?

The problem is that I have several bots in one channel, and I want a way of running the same scripts/modules on each bot, but making sure that only one bot answers to a public command... this obviously requires some flaggin between the bots. I've seen the gseen script that uses flags to suggest priority, but I'd rather dcc between the bots to ask who is doing what.... this would make things much more powerful and flexible.

any clues?

tnx in advance - Photon
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Bots can comunicate with each other, usign the same emthod Tcl scripts use.

You should see the module programming guide, and modules.h file for the commands required to send messages.

1 very good module to look at, is the wire module.

While very complex (due to the fact it creates a bind, only at time of a wire being used (due to encryptions keys)), it does show how a bot will broadcat the command, plus how it will receive it.

It is the C equivilant of putbot, putallbots and bind BOT.

This also provides the benefit of either using a Tcl script, a C module or even mxing the 2. Due to the fact that they use the same processing systems, it is jus the programming language that is different.

Rather than using flags to make sure only one bot processes a command, you use a targeted command. Using the C equivilant of putbot, only the destination bot will receive it.
P
Photon
Op
Posts: 170
Joined: Wed Aug 28, 2002 8:00 am
Location: Liverpool, England

Post by Photon »

The module programming guide - is it in the standard release - if not can you point me towards it?

I'm currently analysing the code off all the standard modules - but I will definately look at the wire one .. thanx.

by the way .. good choice of city - we're probably sat just down the road from each other you realise... :roll:

Photon.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

It is provided in the docs directory.

While not a programming guide, there is enough to get you started with the structure of a eggdrop module.

It procides you with information about adding and removing binds.
P
Photon
Op
Posts: 170
Joined: Wed Aug 28, 2002 8:00 am
Location: Liverpool, England

Post by Photon »

Ah yes .. ta!

I had seen that - I've got to compiling a very basic module .. now for the (um) interesting bit.

Basically I got a bit fed up with TCL ... I know thats crap, but I can do C so much faster its untrue... and I hope to add a bit more power to my script as I go...

Will keep you informed (and post it when its *cough* finished)

Photon
Locked