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 

2 Eggdrops to "Guard" each other?

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
Secu.in
Voice


Joined: 02 May 2010
Posts: 1

PostPosted: Sun May 02, 2010 6:39 am    Post subject: 2 Eggdrops to "Guard" each other? Reply with quote

Hello,

the following case:

I've got a private irc server, which runs one eggdrop, and no servs.

The Bot there is the only assurance the chan won't be taken over, now if someone i formerly trusted deops my Bot, how could he regain?

All that came into my mind was creating a second Eggdrop whichs only function is to guard the first one by auto oping it.

How to realise it or could i even give that eggdrop the ability not to be deopped by others since i host the ircd by myself?
Back to top
View user's profile Send private message
raider2k
Op


Joined: 01 Jan 2008
Posts: 140

PostPosted: Sun May 02, 2010 12:08 pm    Post subject: Reply with quote

Code:
bind mode - * yourmodeproc


can be used to check if the mode of someone changed, in example if your channel bot gets deopped, just compare if its -o and if the nick is the nick of your bot, if both match, reop.

nevertheless I wouldnt do it like this to be honest since both bots can be deopped at the same time, or lets say within a period of a time the 2nd bot wouldnt be able to do anything at all.

so my suggestion would be to keep that one bot, user a mode bind as above, and if your bot sees that it has been deopped just pushmode +o $botnick and thats it. operoveride its called
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sun May 02, 2010 12:17 pm    Post subject: Reply with quote

In "normal" scenarios, you'd have two or more eggdrops linked in a botnet, preferrably sharing userfiles. You'd then use some "botnetop" extension (several available, including the getops.tcl script included in eggdrop's source distributions, and the botnetop and getops modules available from ftp.eggheads.org).

Since most, if not all ircd's support multiple mode changes in a single command, a malicious user would be able to deop atlest 3 bots at once, with some servers as many as 6. To be safe, you'd generally need atleast one more opped eggdrop, but the more the better.

Of course, the best protection is not opping these malicious users in the first place.

Now, you're using a private server. That changes the picture somewhat, as you are in control of the server. Generally, ircd's don't grant the server admins abilities such as "can't be deopped" or "op myself" - yet some arcane servers do. What you'll always have access to, is the KILL command, as well as G/K-lines and i-lines, which will prevent a malicious user from doing much further harm, once detected.
Since you did not state what kind of server you are running, it's hard to say what extended features might be available to protect your eggdrops or channels..
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
YooHoo
Owner


Joined: 13 Feb 2003
Posts: 939
Location: Redwood Coast

PostPosted: Sun May 02, 2010 10:27 pm    Post subject: Reply with quote

seems like simple solution.
Code:
.chanset [channel] +revenge

take revenge on anyone who deops or kicks friends or ops

Code:
.chanset [channel] +revengebot

take revenge on anyone who deops or kicks the bot

as well as doing as nml375 suggested, linking the bots together, and enabling sharing. Hope that helped Smile
_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help 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