-
Notifications
You must be signed in to change notification settings - Fork 237
One liners
trimstray edited this page Feb 4, 2021
·
16 revisions
You can file an issue about it and ask that it be added.
- Check redirects
- Show basic SSL configuration and response headers
- Show basic SSL configuration and enable SSL debug mode
- Show response body
- Set POST request method
- Pin a single request to a specified IP address
- Scan SSL domain configuration
- Show and analyse HTTP response headers
- Send request headers
- Enumerate subdomains and perform zone transfer
- Set credentials to access a URL
- Set specific HTTP version
- Set specific TLS version and Ciphersuite
- Set path to the OpenSSL binary
htrace.sh -u https://example.com
htrace.sh -u https://example.com -s -h
htrace.sh -u https://example.com -s --ssl-debug
htrace.sh -u https://example.com -b
htrace.sh -u https://example.com -h -M "POST:'{"username":"xyz","password":"xyz"}'"
^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/ \
/ \
POST method POST method value
htrace.sh -u https://example.com -h --resolve "xxx.xxx.xxx.xxx"
htrace.sh -u https://example.com -h --resolve "xxx.xxx.xxx.xxx:443"
htrace.sh -u https://example.com --ssllabs --testssl
htrace.sh -u https://example.com -h --observatory
# One request header
htrace.sh -u https://example.com -h -H 'Host: example.com'
# Multiple request headers
htrace.sh -u https://example.com -h -H 'Host: example.com ; x-debug-mode: true'
htrace.sh -u https://example.com --dns
# Standard authentication
htrace.sh -u https://example.com -h --auth "basic:foo:bar"
# Proxy authentication
htrace.sh -u https://example.com -h --auth "proxy:foo:bar"
# Cookie authentication
htrace.sh -u https://example.com -h --auth "cookie:/tmp/example.com.cookie"
htrace.sh -u https://example.com --httpv 1.1
htrace.sh -u https://example.com -s --tlsv 1.1 --ciph "TLS_DHE_RSA_WITH_AES_256_CBC_SHA"
htrace.sh -u https://example.com -s --openssl /usr/bin/openssl-v1.1.1b
htrace.sh v1.1.7