pwny.cc
Search…
Misc

Manual Requests

Netcat

1
#Netcat scanner for HTTP servers
2
for i in $(seq 1 255); do nc -n -v -z "192.168.1.$i" 80 | grep "open"; done | tee webservers.txt
3
4
#Manually perform a HTTP Get Request
5
echo -ne "GET / HTTP/1.0\n\n" | nc www.web.com 80
Copied!

Socat

1
#Manually perform a HTTP Get Request on SSL port
2
echo -ne "GET / HTTP/1.0\n\n" | socat – OPENSSL:www.web.com:443,verify=0
3
4
#Check if TRACE is enabled on website
5
echo -ne "TRACE /something HTTP/1.0\nX-Header: Trace Enabled\n\n" | socat - OPENSSL:www.web.com:443,verify=0
Copied!