Skip to content

Simple Python script (proxy) to forward TCP traffic through SSL

Notifications You must be signed in to change notification settings

Shocker/tcp_forwarder_ssl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

tcp_forwarder_ssl

Simple Python script (proxy) to forward TCP traffic through SSL. Requires Python ~3.5

Usage

  • python tcp_forward.py <certificate file> <listen host> <listen port> <remote host> <remote port>

Examples

  • python tcp_forward.py cert.pem localhost 8080 www.google.com 443
  • python tcp_forward.py cert.pem localhost 8080 www.google.com 443 debug to show traffic

Generating self-signed certificate

In case you want to use a self-signed certificate you can generate it using openssl:

  • openssl req -new -x509 -days 3650 -nodes -out cert.pem -keyout cert.pem -subj /C=US/ST=CA/L=Somewhere/O=Someone/CN=FoobarCA

About

Simple Python script (proxy) to forward TCP traffic through SSL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages