Skip to content

A really small and dumb man in the middle watcher for network traffic. Helps with debugging.

License

Notifications You must be signed in to change notification settings

mechaot/man_in_the_middle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

man_in_the_middle

A really small and dumb man in the middle watcher for network traffic. Helps with debugging.

Producer      <-->   man_in_the_middle               <-->  Server

                     dev_machine_ip:localport              remotehost:remoteport

Producer (data source) connects to "localport" on the developer machine (not to the original data sink/server any more)

man_in_the_middle does a raw forwarding but also print out the traffic. Here we must setup remotehost:remoteport to the original data sink/server, where the Producer originally connected to.

Keep "localhost" setting at "0.0.0.0" listening to all interfaces for Producer; you are insecure anyways ;)

Works well for HTTP traffic sniffing and troubleshooting (especially debugging http-headers)

Requirements

Should run on any Python 3.6+ and only standard libraries installed. Tested with Windows and Linux.

Known issues

  • Script must be ended by killing the interpreter process

About

A really small and dumb man in the middle watcher for network traffic. Helps with debugging.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages