Websocket Probe
websocket_probeTest whether a WebSocket server validates Origin headers by sending an upgrade request with a custom Origin, revealing potential cross-site WebSocket hijacking candidates.
Instructions
Open a WebSocket handshake and report whether the server validates Origin.
Pass the https:// (or bare host) form of the endpoint, not wss://:
the scope engine cannot parse a ws/wss URL and fails closed on one,
so a wss:// target is refused before this ever runs. The upgrade to
wss:// happens here, after the scope check has had its say.
Passive: one upgrade request, no frames sent, connection closed immediately.
-u inhibits the send direction and -1 stops after a single message,
so nothing this tool does can be mistaken for traffic.
A handshake that succeeds with a foreign Origin is a candidate for
cross-site WebSocket hijacking. It only becomes a finding when the socket
also carries authentication that the browser would attach automatically —
which this tool cannot and does not test.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | No | ||
| target | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||