Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions FransLinkfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,22 +239,22 @@ def doPassiveScan(self, ihrr):
if ".js" in str(urlReq):
# Exclude casual JS files
if any(x in testString for x in JSExclusionList):
self.callbacks.printOutput("\n" + "[-] URL excluded " + str(urlReq))
self.callbacks.printOutput("\n" + "[-] URL excluded " + cgi.escape(str(urlReq), quote=True))
else:
self.outputTxtArea.append("\n" + "[+] Valid URL found: " + str(urlReq))
self.outputTxtArea.append("\n" + "[+] Valid URL found: " + cgi.escape(str(urlReq), quote=True))
issueText = linkA.analyseURL()
links = []
full_urls = []
highlights = []
for counter, issueText in enumerate(issueText):
self.outputTxtArea.append("\n" + "\t" + issueText['link'])
self.outputTxtArea.append("\n" + "\t" + cgi.escape(issueText['link'], quote=True))
if linkA.valcheckFullURL(issueText['link']) and linkA.valcheckMappedList(issueText['link'],self.mapTxtArea):
self.mapTxtArea.append("\n" + issueText['link'])
self.mapTxtArea.append("\n" + cgi.escape(issueText['link'], quote=True))
full_urls += [issueText['link']]
elif not linkA.valcheckFullURL(issueText['link']):
fullURL = urlparse.urljoin(urlparse.urljoin(str(urlReq), '/'),issueText['link'])
if linkA.valcheckMappedList(fullURL,self.mapTxtArea):
self.mapTxtArea.append("\n" + fullURL)
self.mapTxtArea.append("\n" + cgi.escape(fullURL, quote=True))
full_urls += [fullURL]

lh = [issueText['start'],issueText['end']]
Expand All @@ -271,7 +271,7 @@ def doPassiveScan(self, ihrr):
filNam = filNam

if (linkA.checkValidFile(filNam)) and (filNam not in self.filesTxtArea.text):
self.filesTxtArea.append("\n" + filNam)
self.filesTxtArea.append("\n" + cgi.escape(filNam, quote=True))

issues = ArrayList()
if links != []:
Expand Down Expand Up @@ -526,12 +526,12 @@ def __init__(self, reqres, helpers, callbacks, links, full_urls, highlights):
self.issue_detail = "Burp Scanner has analysed this JS file and has discovered the following link values: <ul>\n"
i=0
while i<len(self.links):
self.issue_detail += "<li>{}</li>\n".format(cgi.escape(self.links[i]))
self.issue_detail += "<li>{}</li>\n".format(cgi.escape(str(self.links[i]), quote=True))
i+=1
self.issue_detail += "</ul>The following full normalized URLs were generated from the discovered link values: <ul>\n"
i=0
while i<len(self.full_urls):
self.issue_detail += "<li>{}</li>\n".format(cgi.escape(self.full_urls[i]))
self.issue_detail += "<li>{}</li>\n".format(cgi.escape(str(self.full_urls[i]), quote=True))
i+=1
self.issue_detail = str(self.issue_detail)

Expand Down