Advertisement
westor

Check IP Value v1.0 for Juandis

Jul 24th, 2017
684
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.11 KB | None | 0 0
  1. alias -l getsite {
  2.   if (!$1-) || (!$isid) { return 0 }
  3.   var %com = getsite_ $+ $rand(1,1000000)
  4.   .comopen %com MSXML2.SERVERXMLHTTP.6.0
  5.   noop $com(%com,Open,1,bstr,GET,bstr,$1-,bool,false) $com(%com,Send,1) $com(%com,ResponseText,2)
  6.   var %a = $left($com(%com).result,4096)
  7.   :error
  8.   reseterror
  9.   if ($com(%com)) { .comclose %com }
  10.   if ($comerr) { return 0 }
  11.   return $iif(%a,$v1,0)
  12. }
  13.  
  14.  
  15. ON *:TEXT:*:#: {
  16.   tokenize 32 $strip($1-)
  17.   if ($1 == !chk) {
  18.     if (!$2) { msg $chan ERROR: Not enough parameters! | return }
  19.     if (!$longip($2)) { msg $chan ERROR: Incorrect ip address! | return }
  20.     var %r = $getsite(http://check.getipintel.net/check.php?ip= $+ $2 $+ &contact=jdhenaogranada@hotmail.com)
  21.     if (%r == $null) { msg $chan ERROR: There was an connection problem between the server! | return }
  22.     msg $chan Value: %r
  23.   }
  24.   if ($3 == IP:) && ($6 == Host:) && ($9 == Country:) {
  25.     if (!$longip($4)) { return }
  26.     var %r = $getsite(http://check.getipintel.net/check.php?ip= $+ $4 $+ &contact=jdhenaogranada@hotmail.com)
  27.     if (%r == $null) { return }
  28.     msg $chan $2 IP Status: %r
  29.   }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement