@@ -653,18 +653,16 @@ def deserialize_settings(self):
653
653
print e
654
654
655
655
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."
668
666
response = None
669
667
if value:
670
668
response = "HTTP/1.1 200 OK\r\n" + value
0 commit comments