Advertisement
illpastethat

GanjaIRC botnet protection

Oct 15th, 2012
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.21 KB | None | 0 0
  1. ;GanjaIRC botnet protection by nick1
  2. ;Created August 27 2012
  3. ;Last edit October 04 2012
  4. #botnet on
  5. on *:text:*:#services: {
  6.   if (($nick == Global) || ($nick == Logger)) {
  7.     if ($strip($1) == CONNECT) {
  8.       if (%botnet != on) {
  9.         inc -z %botnetcount 20
  10.         if (%botnetcount >= 100) {
  11.           botnet
  12.         }
  13.       }
  14.       elseif (%botnet == on) {
  15.         kline $2 Suspected Botnet Detected at $3 -- Use http://www.ganjairc.net to appeal -- $asctime
  16.       }
  17.     }
  18.   }
  19. }
  20.  
  21. on *:input:*: {
  22.   if ($1 == !botnet) {
  23.     if ($2 == end) {
  24.       set %botnet off
  25.       disable #botnet
  26.       halt
  27.     }
  28.     botnet
  29.   }
  30. }
  31. on *:text:*:#staff:{
  32.   if ($1 == !botnet) {
  33.     botnet
  34.   }
  35. }
  36. alias botnet {
  37.   set %botnet $iif(%botnet == on,off,on)
  38.   $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)
  39.   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)
  40.   $iif(%botnet == on,.timerbotnetoff 1 120 botnet,noop)
  41. }
  42. #botnet end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement