Advertisement
illpastethat

GanjaIRC botnet protection

Aug 27th, 2012
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.05 KB | None | 0 0
  1. ;GanjaIRC botnet protection by nick1
  2. ;Created August 27 2012
  3. off *:text:*:#services: {
  4.   if (($nick == Global) || ($nick == Logger)) {
  5.     if ($strip($1) == CONNECT) {
  6.       if (%botnet != on) {
  7.         inc -z %botnetcount 20
  8.         if (%botnetcount >= 100) {
  9.           botnet
  10.         }
  11.       }
  12.       elseif (%botnet == on) {
  13.         kline $2 Botnet Detected at $5 -- Use http://www.ganjairc.com/forum/ to appeal -- $asctime
  14.       }
  15.     }
  16.   }
  17. }
  18.  
  19. on *:input:*: {
  20.   if ($1 == !botnet) {
  21.     botnet
  22.   }
  23. }
  24. off *:text:!botnet:#staff:{
  25.   botnet
  26. }
  27.  
  28. alias botnet {
  29.   set %botnet $iif(%botnet == on,off,on)
  30.   $iif(%botnet == off,wallops Botnet protection for GanjaIRC is now off -- monitoring resumed,wallops Activating botnet protection for GanjaIRC -- Connections disabled for the next 2 minutes)
  31.   echo -ac info $iif(%botnet == off,Botnet protection for GanjaIRC is now off -- monitoring resumed,Activating botnet protection for GanjaIRC -- Connections disabled for the next 2 minutes)
  32.   $iif(%botnet == on,.timerbotnetoff 1 120 botnet,noop)
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement