Skip to content

Instantly share code, notes, and snippets.

@thomaspatzke
Created September 1, 2016 13:28
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomaspatzke/68ed98ab29808592a74a20d48192e034 to your computer and use it in GitHub Desktop.
Save thomaspatzke/68ed98ab29808592a74a20d48192e034 to your computer and use it in GitHub Desktop.
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