TCP to WebSockets proxy in python

Submitted by alla on Mon, 09/14/2015 - 16:16

There seems to be a few proxies that can convert a WebSockets connection to TCP, however I couldn't find anything that goes other way around. Having the task of sending crafted messages to a WebSockets connection made me write one. Having a TCP to WebSockets proxy allows me to use netcat as a WebSockets client.

I have used the code developed by our Quentin, and added stuff like proper command-line options, upstream proxy support (to tunnel it through Burp) and making it multithreaded.

The tool is written in python and uses the websocket library.

Download tcp2websocket proxy.

Contacts

+32 (0) 2 215 53 58

Gremwell BVBA
Sint-Katherinastraat 24
1742 Ternat
Belgium
VAT: BE 0821.897.133.