pwntools
pwntools copied to clipboard
Native websocket support in pwntools
In 2023 websockets are fairly popular in CTFs, but it seems there's currently no way to make pwntools socket library work with websockets.
- What the feature does
- Allow me to connect to a websocket server
- Allow me to send and receive messages
- Possibly similar to https://docs.pwntools.com/en/stable/tubes.html, but I'm not sure how well it maps, considering websockets are more like a channel for individual messages instead of an input/output stream
- Why the feature should exist
- Many CTFs use it in some way or another
- There's currently no good way to use pwntools with websockets
- What tests should be included
- 🤷
When searching for this feature I found these:
- https://gist.github.com/frankli0324/795162a14be988a01e0efa0531f7ac5a
- https://pypi.org/project/pwntools-tube-websocket/#description
Unfortunately I don't have the time/skills to implement this myself.
So do you think frankli0324's module matches your need? Can we just modify from his module?