I run a botnet of about 30 bots on EFNet and try to keep my channels as secure as possible. One thing I noticed today, was that ops could deOP bots. One of the ops in a channel (+fov for the chan) "accidentally" hit a button for a mass deOP script and started to deOP all of the bots. Luckily in a botnet of 30 this is not a problem (the bots re-op'd the others before the chan could lose ops). However, I thought this to be a security hole - what if some user, whom i previously trusted as a friend/op wanted to takeover a channel? Since I couldn't find any settings in netbots to take care of it (and since i was bored), I created an addition to the superbitch.tcl to take care of this problem.
Before the update, if a user (+fov on the chan) deopped a bot, the following would happen:
[20:49] *** neoshw sets mode: -o HAiKU
[20:49] *** hurts2pee sets mode: +o HAiKU
[20:49] *** l33th4x0r sets mode: +o HAiKU
[20:49] *** TheClap sets mode: +o HAiKU
[20:49] *** alkoholic sets mode: +o HAiKU
etc etc
Now, the following happens:
[21:14] *** jestrix sets mode: -o RumpRangR
[21:14] *** hurts2pee sets mode: -o+o jestrix RumpRangR
[21:14] *** alkoholic sets mode: -o+o jestrix RumpRangR
[21:14] *** CTCPFlood sets mode: -o+o jestrix RumpRangR
and so on...
I made it so that the bot who was deopped would get re-opped immediatly as well as the offender getting deopp'd.
The modified superbitch.tcl (based on the one that came with netbots 4.05) can be found at http://www.jestrix.net/ultrabitch.tcl (code is fully commented)
I take no credit for the code - I simply modified the exisiting script - slennox should be credited for an excellent job
(also, if there was an easier i could have done this, with features already in netbots, please inform me +revenge +revengebot +bitch -protectops, etc etc, didn't seem to do anything for me)
<edit>damn typos</edit>
<font size=-1>[ This Message was edited by: jestrix on 2002-02-12 20:49 ]</font>