Skip to content
/ headi Public
forked from mlcsec/headi

Customisable and automated HTTP header injection

Notifications You must be signed in to change notification settings

hungdx6/headi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

headi

Customisable and automated HTTP header injection. Example run from the HTB machine Control:

Install

go get github.com/mlcsec/headi

Headers

Injects the following HTTP headers:

  • X-Originating-IP
  • X-Forwarded-For
  • X-Remote-IP
  • X-Remote-Addr
  • X-Client-IP
  • X-Host
  • X-Forwarded-Host
  • Origin
  • Host

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. [+] and [-] respectively.

Info

Two options for HTTP header injection:

  1. Default payloads (127.0.0.1, localhost, etc.) are injected into the headers mentioned above
  2. Custom payloads can be supplied (e.g. you've enumerated some internal IPs or domains) using the pfile parameter
$ headi
  -pfile string
    	payload file
  -t int
    	timeout (milliseconds) (default 10000)
  -url string
    	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

About

Customisable and automated HTTP header injection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%