Trouble integrating requests python library and jython
Im currently building a burp extension using Jython. At one point I basically get URLs from the proxy Tab and make an additional request with that url+someEndpoint with the Python Requests library.
The extension works fine if I use the URL that "comes" from proxy tab, something like this.
But when I, for example, want to get the "source" URL and then send the request with the library.
Something like this.
splitURL = str(str(requestInfo.getUrl())).split("/")
newURLToSend = ((splitURL + "/" + splitURL + "/" + splitURL + "/"))
That does not work and I get weir errors like "Invalid distance too far back" and such.
Both of the URLs are strings so I cant wrap my head around on why that is not working. Any idea on what could be going on?
Thanks for the help!
Have you tried debugging each point in the Python code you have written?