Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Simple HTTP CONNECT Proxy Portscanner
for (( p=0; p <= 65535; p++ )); do echo "Probing port $p"; echo -n "Port $p: " >> portscan.log; (echo CONNECT targethost:$p HTTP/1.1; echo) | nc -q 3 proxyhost proxyport | head -1 >> portscan.log; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment