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
wget https://raw.githubusercontent.com/Sad-theFaceless/WebSocket_middleware/main/middleware.py && chmod +x middleware.py
- python3-websocket
Start the middleware server:
./middleware.py $DOMAIN $PORT "$URL_PATH"
Then send HTTP POST data to http:https://127.0.0.1:8081/
./middleware.py ws.example.com 5678 "/"
curl -X POST 'http:https://127.0.0.1:8081/' -d '{"id":"1"}'
sqlmap --method=POST --skip=User-agent,Referer,Host -u "http:https://127.0.0.1:8081/" --data '{"id":"1"}'