Advertisement
westor

ON Connect Scan IP Proxy for AdmiraL v1.3

Apr 18th, 2023 (edited)
2,447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.13 KB | None | 0 0
  1. ON *:SNOTICE:*: {
  2.   tokenize 32 $strip($1-)
  3.  
  4.   if (*Client connecting:* !iswm $1-) { return }
  5.  
  6.   var %report_channel = #checker
  7.   var %nick = $4
  8.   var %ip = $remove($6,[,])
  9.  
  10.   if (!%nick) || (!%ip) { return }
  11.   if (%nick == $me) { return }
  12.   if ($me !ison %report_channel) { return }
  13.   if ($iptype(%ip) !== ipv4) { return }
  14.   if (%ip == $ip) || (%ip == $serverip) { return }
  15.   if (*webirc-users* iswm $13-) { return }
  16.  
  17.   var %v = ip_lookup_ $+ $ticksqpc $+ $rands(1,1000000000000)
  18.   var %u = https://chatohu.net/regex/check/ $+ %ip
  19.  
  20.   jsonopen -ud %v %u
  21.  
  22.   if ($jsonerror) { msg %report_channel [IP-Lookup]: Error, Could not connect on server! - Nickname: %nick - IP: %ip - Error Details: $jsonerror | return }
  23.  
  24.   var %status = $json(%v,status).value
  25.  
  26.   if (%status == ok) { msg %report_channel [IP-Lookup]: User %nick with %ip IP is NOT listed on web! }
  27.   elseif (%status == error) { gzline *@ $+ %ip +1h VPN/PROXY | msg %report_channel [IP-Lookup]: User %nick with %ip IP is listed on web! - GZLINE for 1 hour. }
  28.   else { msg %report_channel [IP-Lookup]: Failed while trying to look for %nick nickname with %ip ip on web! }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement