ccocot

Socks 5 Grabber & Check Live

May 1st, 2017
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.35 KB | None | 0 0
  1. #!/bin/bash
  2. #code by budakjalanan & silentc0ders
  3.  
  4. #color
  5. cyan='\e[0;36m'
  6. green='\e[0;34m'
  7. okegreen='\033[92m'
  8. lightgreen='\e[1;32m'
  9. white='\e[1;37m'
  10. red='\e[1;31m'
  11. yellow='\e[1;33m'
  12. BlueF='\e[1;34m'
  13. Default='\e[39m'
  14.  
  15. #FORMATING
  16. Bold='\e[1m'
  17. Dim='\e[2m'
  18. Underline='\e[4m'
  19. Blink='\e[5m'
  20. Inveterted='\e[7m'
  21.  
  22. #clear all formating
  23. crotclear='\e[0m'
  24.  
  25. ngecurl(){
  26.     kentod_kimcil=$(timeout 10 curl -s -o /dev/null -w '%{http_code}' --socks5-hostname $sock http://wildan-fajriansyah.org/)
  27.     if [[ $kentod_kimcil == 200 ]]; then
  28.         echo -e $Bold$sock "-> $okegreen LIVE"$crotclear
  29.     else
  30.         echo -e $Bold$sock "->$red DIE"$crotclear
  31.     fi
  32. }
  33.  
  34. kimcil=$(curl -s http://free-proxy.cz/en/proxylist/country/all/socks5/speed/all \
  35. -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" \
  36. -H "Accept-Language: en-US,en;q=0.8" \
  37. -H "Referer: http://free-proxy.cz/en" \
  38. -H "Upgrade-Insecure-Requests: 1")
  39.  
  40. ip=$(echo $kimcil | grep -Po '(?<=.decode\(")[^"]*')
  41. port=$(echo $kimcil | grep -Po "(?<=''>)[0-9]*")
  42.  
  43. IFS=" " read -r -a aipi <<< $ip
  44. IFS=" " read -r -a porrt <<< $port
  45. clear
  46. echo -e $Bold"-==[Proxy Grabber & Check Live -$okegreen NAONLAH.NET$crotclear &$Bold$red BC0DE.NET$crotclear$Bold]==-"$crotclear
  47. for i in "${!aipi[@]}"; do
  48.     ipdecode=$(echo ${aipi[$i]} | base64 -d)
  49.     sock="$ipdecode:${porrt[$i]}"
  50.     ngecurl $sock
  51. done
Add Comment
Please, Sign In to add comment