Burp Suite User Forum

Create new post

Get Websocket Server IP

Phil | Last updated: May 30, 2023 02:30PM UTC

I'm working on a websocket extension and would like to grab the host/ip and port of the websocket server when a websocket message is received. Looking at the API it looks like this is not possible, but I'm a newb with Java and montoya so if it is possible could someone can point me in the right direction, I'd be grateful. TIA!

Phil | Last updated: May 30, 2023 03:06PM UTC

Figured it out. For others, you can use WebSocketCreatedHandler method and the WebSocketCreated variable to access the websocket upgrade request which contains the needed info.

Dominyque, PortSwigger Agent | Last updated: May 31, 2023 06:32AM UTC

Hi Phil Thank you for the update and the solution for others to follow!

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.