Basic HTTP/HTTPS client written in Python 3
Usage:
./h.py -rx www.site.com
This will give http response code (-r) and response headers (-x)
./h.py -srx www.site.com
Add -s for ssl (HTTPS) support
./h.py -b www.site.com
Use the -b option to display the response body to the screen
note - if only a url is specified the default will be to return just the reponse body
./h.py -f www.site.com
Use the -f option to save the response body to a file called "output"
./h.py -xr https://www.google.com
http:// or https:// prefixes are supported, https:// negates the need for the -s switch for ssl support
./h.py -p 127.0.0.1:8080 www.site.com
Use the -p option to specify a proxy with port number. This feature only works with http at this time
By default the script uses an ie11 user-agent, if you want to specify other agents use:
-i = internet explorer 6.0 -c = chrome on mac -e = edge browser -m = mac safari
There are also several user-agents that are known to trigger IDS signatures -
-v = malware (known active Snort Signature) -z = Meterpreter (known active Snort Signature) -o = OpenVas Malware Scanner (known active Emerging Threats signature) -y = Known bad firefox useragent
./h.py -u Nessus www.site.com
Use the -u option to specify your own custom user-agent