Advertisement
Aha2Y

Untitled

Aug 30th, 2011
524
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.67 KB | None | 0 0
  1. #START OF DNS LOOKUP
  2. on *:text:!dns *:#:{  $iif($sock(sitecheck),sockclose sitecheck) | sockopen sitecheck www.downforeveryoneorjustme.com 80 | sockmark sitecheck $2 | dns $2- | set %dns.chan $chan }
  3. on *:sockopen:sitecheck: { var %x = sockwrite -n $sockname | %x GET $+(/,$sock(sitecheck).mark) HTTP/1.1 | %x Host: www.downforeveryoneorjustme.com | %x Connection: close | %x }
  4. on *:sockread:sitecheck: { var %x | sockread %x | if $regex(%x,/(.+)[\.!]\s+<.+>(.+)<\/a>(.+)\./) { set %dns.status $reglm(1) $reglm(2) $remove($regml(3),</span>) } }
  5. on *:DNS:{
  6.   msg %dns.chan Host: $naddress IP: $iaddress
  7. msg %dns.chan Resolved: $raddress - Status: %dns.status  }
  8. #END OF DNS LOOKUP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement