PortSwigger / burp-extensions-montoya-api

Burp Extensions Api
Other
141 stars 5 forks source link

HttpService.ipAddress() is not implemented #93

Closed danzajork closed 10 months ago

danzajork commented 10 months ago

HttpService.ipAddress() is not implemented when accessing HttpService through ProxyHttpRequestResponse.

The following exception is thrown:

java.lang.NoSuchMethodError: 'java.lang.String burp.api.montoya.http.HttpService.ipAddress()'

The following code will reproduce this error:

List<ProxyHttpRequestResponse> history = api.proxy().history();

for (ProxyHttpRequestResponse httpRequestResponse: history) {

     String ipAddress = httpRequestResponse.httpService().ipAddress();
}

The following code will also reproduce this error:

List<ProxyHttpRequestResponse> history = api.proxy().history();

for (ProxyHttpRequestResponse httpRequestResponse: history) {

     String ipAddress = httpRequestResponse.finalRequest().httpService().ipAddress();
}
danzajork commented 10 months ago

My bad, this is on me.

I was using montoya 2023.12.1 while running the current stable release of Burp (2023.11.1.5).

This is working correctly in the early adopter channel. Closing this issue.

Hannah-PortSwigger commented 10 months ago

Glad to hear you've resolved the issue!

If there's anything else we can help with, then please let us know.