Skip to content

Commit

Permalink
Added some more headers
Browse files Browse the repository at this point in the history
  • Loading branch information
topscoder committed May 10, 2023
1 parent e89a09b commit 388bb77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ FourOhMe is a tool for testing HTTP headers on a website in order to try to bypa

Install Golang, then run:

`go install -v github.com/topscoder/fourohme`
`go install -v github.com/topscoder/fourohme@latest`

## Usage

Expand Down
4 changes: 4 additions & 0 deletions fourohme.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ func main() {
headersList := []map[string]string{
{"X-Forwarded-For": "127.0.0.1:80"},
{"X-Custom-IP-Authorization": "127.0.0.1"},
{"X-Host": "127.0.0.1"},
{"X-Original-URL": "%URL%"},
{"X-Original-URL": "%PATH%"},
{"X-rewrite-url": "%PATH%"},
{"Content-Length": "0", "HTTP": "POST"},
{"HTTP": "OPTIONS"},
{"HTTP": "TRACE"},
}

urls := readUrlsFromInput(urlPtr, filePtr)
Expand Down

0 comments on commit 388bb77

Please sign in to comment.