Advertisement
westor

JSON Proxy Checker for Debian v4.0

Aug 13th, 2018
1,065
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 2.30 KB | None | 1 0
  1. menu status,channel,query {
  2.   GLINE PROXY ON JOIN (is $+ $chr(58) $group(#glineproxy) $+ )
  3.   .On:.enable #glineproxy | .echo -a 4* GLINE PROXY ON *
  4.   .Off:.disable #glineproxy | .echo -a 4* GLINE PROXY OFF *
  5. }
  6.  
  7. ON ^*:SNOTICE:*: {
  8.   if (*Client connecting* iswm $1-) {
  9.     haltdef
  10.     .timer[PROXY_ $+ $4 $+ _CONNECT] -h 1 1000 hadd CONNECTS $4 $remove($6,[,])
  11.     if (!$hget(CONNECTS)) { hmake CONNECTS 10000 }
  12.   }
  13.   if (*Client exiting* iswm $1-) {
  14.     .timer[PROXY_ $+ $4 $+ _CONNECT] off
  15.     if (*has been scanned and marked as* iswm $strip($1-)) { haltdef }
  16.     if ($hget(CONNECTS,$4)) { haltdef | hdel CONNECTS $4 }
  17.   }
  18.   if (*has changed their nickname* iswm $1-) {
  19.     .timer[PROXY_ $+ $2 $+ _CONNECT] off
  20.     if ($hget(CONNECTS,$2)) {
  21.       haltdef
  22.       var %ip = $v1
  23.       hdel CONNECTS $2
  24.       hadd CONNECTS $9 %ip
  25.     }
  26.   }
  27.   if (*Z:Line added for* iswm $1-) && ($me isin $14) { haltdef }
  28. }
  29.  
  30. #glineproxy on
  31.  
  32. ON !*:JOIN:#shqiperia: {
  33.   if ($hget(CONNECTS,$nick)) { proxy_check $nick $chan $v1 }
  34. }
  35.  
  36. alias proxy_check {
  37.   if (!$1) || (!$2) || (!$3) { return }
  38.   hdel CONNECTS $1
  39.  
  40.   var %r = $rand(1,2)
  41.   if (%r == 1) { var %k = Mjk1NDpadFdlVk02QUp2eWgybFFFNk4xREl5WTlHOTc2dFJ5Vg== }
  42.   if (%r == 2) { var %k = Mjk1NTpYRnpLdFhlQ2dGYmdSanBvRzBWaHp5dG1ZR3JLYlZ0eQ== }
  43.  
  44.   var %v = proxy_ $+ $ticks $+ $rand(1,100000000000)
  45.  
  46.   JSONOpen -udw %v http://v2.api.iphub.info/ip/ $+ $3
  47.   JSONHttpHeader %v X-Key %k
  48.   JSONHttpFetch %v
  49.   if ($JSONError) { goto proxy_2 }
  50.  
  51.   var %proxy = $json(%v,block).value
  52.   if (%proxy == 1) { .quote zline *@ $+ $3 1h 5Defense Security Service Of Intelligence 4: 6Your IP $3 has been scanned and marked as VPN/Proxy. | return }
  53.  
  54.   :proxy_2
  55.  
  56.   var %r = $rand(1,3)
  57.   if (%r == 1) { var %k = x46397-z46706-b39969-135l05 }
  58.   if (%r == 2) { var %k = 589h35-9u8361-736n38-10hj05 }
  59.   if (%r == 3) { var %k = 326620-r6co92-4j2g0r-93784p }
  60.  
  61.   var %v = proxy2_ $+ $ticks $+ $rand(1,100000000000)
  62.  
  63.   JSONOpen -ud %v http://proxycheck.io/v2/ $+ $3 $+ ?key= $+ %k $+ &vpn=1&time=1&inf=1&days=7
  64.   if ($JSONError) { return }
  65.  
  66.   var %proxy = $json(%v,$3,proxy).value
  67.   if (%proxy == yes) { .quote zline *@ $+ $3 1h 7Defense Security Service Of Intelligence 4: 6Your IP $3 has been scanned and marked as $json(%v,$3,type).value $+  }
  68. }
  69.  
  70. #glineproxy end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement