phlmox / BurpJSLinkFinderv2

Burp Extension for a passive scanning JS files for endpoint links.
50 stars 8 forks source link

Use "Referer" to replace "ID" in the tab #2

Closed Giftedboy closed 4 months ago

Giftedboy commented 5 months ago

Sometime it's difficult to figure out which site the "Path" belongs to though the js files cause the js files' domain is not the same to the original site.But "referer" helps. image

Giftedboy commented 5 months ago

headers = self.helpers.analyzeRequest(ihrr.getHttpService(),ihrr.getRequest()).getHeaders() referer = "" for h in headers: if h.startswith("Referer"): referer = h.split("Referer:")[1].strip() break if referer == "": referer = str(urlReq)

self.outputList.getModel().addRow([referer,str(urlReq),issueText['link']])

phlmox commented 5 months ago

Hi,

Thanks for your feedback I'll take a look at it soon