Advertisement
Guest User

Untitled

a guest
Aug 15th, 2015
706
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. on *:input:*:{
  2. if (/* iswm $1-) {
  3. if ($2 > 30) { echo -a Page Number Must Not Be more Than 30 | halt }
  4. set %pagenum $2
  5. }
  6. }
  7. alias ProxyList {
  8. sockclose ProxyList.*
  9. set %ProxyListfile ProxyList.txt
  10. if (%pagenum > 30) { halt }
  11. if ($isfile(ProxyList.txt)) { remove %ProxyListfile }
  12. sockopen ProxyList. $+ %pagenum samair.ru 80
  13. echo -a 2* ProxyList: Downloading latest proxy list..
  14. }
  15. alias RemoveHTML {
  16. var %x, %i = $regsub($replace($1-,<td>,$chr(32),<tr>,$chr(20),<br>,$chr(20)),/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x), %x = $remove(%x,&nbsp;)
  17. return %x
  18. }
  19. alias getiphost {
  20. %var = /\b((?:(?:[a-z]+)\.)+(?:[a-z]+)[: ]\d{2,5})\b|\b((?:(?:(25[0-5]|2[0-4]\d|[01]?\d?\d))\.){3}(?3)[: ]\d{2,5})\b/i
  21. if $regex(ip,$remove($1-,$chr(9)),%var) { $iif($isid,return,echo -a) $replace($regml(ip,1),:,$chr(32)) }
  22. }
  23. on *:sockopen:ProxyList.*:{
  24. if (%pagenum < 10) { sockwrite -nt $sockname GET $+(/proxy/time-0 $+ %pagenum $+ .htm) HTTP/1.1 }
  25. if (%pagenum >= 10) { sockwrite -nt $sockname GET $+(/proxy/time- $+ %pagenum $+ .htm) HTTP/1.1 }
  26. sockwrite -nt $sockname Host: samair.ru
  27. sockwrite -nt $sockname $crlf
  28. }
  29. on *:sockread:ProxyList.*:{
  30. sockread -n %temp
  31. if ($getiphost($RemoveHTML(%temp))) {
  32. unset %incvar
  33. :INC
  34. inc %incvar
  35. write ProxyList.txt $getiphost($wildtok($RemoveHTML(%temp),*.*.*.*:*,%incvar,32))
  36. if (%incvar >= $wildtok($RemoveHTML(%temp),*.*.*.*:*,0,32)) goto end
  37. goto inc
  38. :end
  39. .timerecho 1 3 echo -a 4Downloaded $lines(%ProxyListfile) Proxies. In $qt(%ProxyListfile)
  40. .timerrun 1 1 run ProxyList.txt
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement