Skip to content

Automatically forward HTTP POST requests into a WebSocket

License

Notifications You must be signed in to change notification settings

Sad-theFaceless/WebSocket_middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

WebSocket_middleware

Automatically forward HTTP POST requests into a WebSocket.

POST version of Rayhan0x01's script: https://rayhan0x01.github.io/ctf/2021/04/02/blind-sqli-over-websocket-automation.html

Download

GNU/Linux

wget https://raw.githubusercontent.com/Sad-theFaceless/WebSocket_middleware/main/middleware.py && chmod +x middleware.py

Dependencies

  • python3-websocket

Usage

Start the middleware server:

./middleware.py $DOMAIN $PORT "$URL_PATH"

Then send HTTP POST data to http:https://127.0.0.1:8081/

Example

./middleware.py ws.example.com 5678 "/"

cURL

curl -X POST 'http:https://127.0.0.1:8081/' -d '{"id":"1"}'

sqlmap

sqlmap --method=POST --skip=User-agent,Referer,Host -u "http:https://127.0.0.1:8081/" --data '{"id":"1"}'

About

Automatically forward HTTP POST requests into a WebSocket

Topics

Resources

License

Stars

Watchers

Forks

Languages