Skip to content
This repository was archived by the owner on Apr 4, 2024. It is now read-only.

Commit bed0df0

Browse files
author
floyd
committed
Cosmetics for Target tab message
1 parent 04b6141 commit bed0df0

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

UploadScanner.py

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -653,18 +653,16 @@ def deserialize_settings(self):
653653
print e
654654

655655
def save_project_setting(self, name, value):
656-
request = """GET /"""+name+""" HTTP/1.0
657-
# You can ignore this item in the site map. It was created by the UploadScanner extension.
658-
# The reason is that the Burp API is missing a certain functionality to save settings.
659-
# TODO Burp API limitation: This is a hackish way to be able to store project-scope settings
660-
# We don't want to restore requests/responses of tabs in a totally different Burp project
661-
# However, unfortunately there is no saveExtensionProjectSetting in the Burp API :(
662-
# So we have to abuse the addToSiteMap API to store project-specific things
663-
664-
# Even when using this hack we currently cannot persist Collaborator interaction checks
665-
# (IBurpCollaboratorClientContext is not serializable and Threads loose their Python class
666-
# functionality when unloaded) due to Burp API limitations.
667-
"""
656+
request = "GET /"+name+" HTTP/1.0\r\n\r\n" \
657+
"You can ignore this item in the site map. It was created by the UploadScanner extension. The \n" \
658+
"reason is that the Burp API is missing a certain functionality to save settings. \n" \
659+
"TODO Burp API limitation: This is a hackish way to be able to store project-scope settings.\n" \
660+
"We don't want to restore requests/responses of tabs in a totally different Burp project.\n" \
661+
"However, unfortunately there is no saveExtensionProjectSetting in the Burp API :(\n" \
662+
"So we have to abuse the addToSiteMap API to store project-specific things\n" \
663+
"Even when using this hack we currently cannot persist Collaborator interaction checks\n" \
664+
"(IBurpCollaboratorClientContext is not serializable and Threads loose their Python class\n" \
665+
"functionality when unloaded) due to Burp API limitations."
668666
response = None
669667
if value:
670668
response = "HTTP/1.1 200 OK\r\n" + value

0 commit comments

Comments
 (0)