NetAdmin: snotice /Oper fail script

By anthalus on Jun 14, 2005

If someone comes onto your server and attempts to /oper up and fails with the password (4 minutes allowed time), this script warns them the first time, kills the second, and glines the third time.

on *:SNOTICE:*Failed OPER attempt by*: {
  .notice $me Failed Oper Attempt
  .notice $me $2-
  inc -u240 %op.att.fail.[$+[$8-]] 1
  if ( %op.att.fail.[$+[$8-]] <= 1 ) {
    .msg $8 Oper Attempt Failure. Repeated Failures are Unwise
  }
  elseif ( %op.att.fail.[$+[$8-]] == 2 ) {
    .kill $8 $8 $+ $9 Failed in attempt to Oper
  }
  elseif ( %op.att.fail.[$+[$8-]] >= 3 ) {
    .gline $8- 30d Failed Oper attempt
  }
}

Comments

Sign in to comment.
Qc   -  Dec 25, 2007
on *:SNOTICE:*Failed OPER attempt by*: {
  .notice $me Failed Oper Attempt
  .notice $me $2-
  inc -u240 %op.att.fail. $+ $5
  if (%op.att.fail. [ $+ [ $5 ] ] <= 1 ) { .msg $5 Oper Attempt Failure. Repeated Failures are Unwise }
  elseif ($v1 == 2 ) { .kill $5 $5 $+ $6 Failed in attempt to Oper }
  elseif ($v1 >= 3 ) { .gline $5- 30d Failed Oper attempt }
}
 Respond  
ZiX   -  Oct 24, 2007

i was wondering if you could make a script similar to this but.something that includes a trigger that only you cold use to activate the script for example
on :TEXT:!fail-attempt-on*:#: {
and then the script would be activated i would try to make it myself but i am not very good at scripting and i am still learning.
i would appreciate it if you could make a script like this
oh and nice job with the script ;]

 Respond  
anthalus   -  Nov 14, 2005

Ugh, sorry that I missed this comment.

Ok, for everyone else that views this: different servers display this message in their own unique way. You may have to play around with the $8 ($7, $10, $2). Basically you count along the message until you find the $nick.

 Respond  
AnGeLiC   -  Sep 17, 2005

No Such Name/Channel:attempt

I can\'t get this to work at all =/ It\'s giving me this error message and not messaging the nick that tried to oper at all...

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.