Skip to content

wmnsk/ContentTypeProxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

ContentTypeProxy

Dead simple HTTP Proxy that inserts Content-Type if the Content-Type field is missing or empty in the header of POST. This is just a PoC to show how easy it is to edit HTTP Header with Proxy.

Please note that this is NOT for production, even though it might also be the help for someone in trouble with HTTP Header 😅

https://seclists.org/fulldisclosure/2018/Sep/16

Special Thanks

Large part of the code that make it work as HTTP proxy is retrieved from HTTP(S) Proxy in Golang in less than 100 lines of code by @mlowicki.

Installing

Use Executables

Executables can be found in releases page.

Linux ContentTypeProxy
Windows ContentTypeProxy.exe

Build yourself

Download main.go and build it, and you can get the executable.

git clone git@github.com:wmnsk/ContentTypeProxy.git
cd ContentTypeProxy
go build

Usage

Run

Run ContentTypeProxy on a server, and set your browser's proxy to that server.

Address:Port to listen and Content-Type to be added can be specified in command-line arguments.

Usage of ContentTypeProxy:
  -addr string
        address to serve HTTP (default "0.0.0.0:55555")
  -type string
        Content-Type to set (default "text/plain")

Author

Yoshiyuki Kurauchi (GitHub / Twitter)

License

MIT

About

A dead simple HTTP Proxy that inserts Content-Type if the Content-Type field is missing or empty in the header of POST.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages