Skip to content

Instantly share code, notes, and snippets.

@thomaspatzke
Created September 1, 2016 13:28
Show Gist options
  • 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