headi is a simple HTTP header injection tool written in Go. It automates the process of attempting to bypass forbidden errors on application resources by utilising specific HTTP headers (listed in the following section).
Custom payloads can be provided in order to target internal domains or IPs.
An initial baseline request is made to gauge the normal response for the target resource. Green indicates a change in the response and red no change,
Two options for injection:
- Default payloads (127.0.0.1, localhost, etc.) are injected into the headers mentioned above
- Custom payloads can be supplied (e.g. you’ve enumerated some internal IPs or domains)
$ headi Usage: headi -u https://target.com/resource headi -u https://target.com/resource -p internal_addrs.txt Options: -p, --pfile <file> Payload File -t, --timeout <millis> HTTP Timeout -u, --url <url> Target URL
Currently only takes one URL as input but you can easily bash script for numerous URLs like so:
$ for i in $(cat urls); do headi -url $i;done