diff --git a/Lib/burp_extender.py b/Lib/burp_extender.py index e5757a3..d2e809e 100644 --- a/Lib/burp_extender.py +++ b/Lib/burp_extender.py @@ -143,7 +143,25 @@ def registerExtenderCallbacks(self, callbacks): self.log.exception('Could not load extension logging settings') try: + _, default_config = settings.CONFIG_FILENAME config = self.loadExtensionSetting(*settings.CONFIG_FILENAME) + + if not os.path.exists(config): + self.log.error("%s does not exist!", config) + + # look in parent directory + cwd = os.path.dirname(os.path.abspath(inspect.getfile( + inspect.currentframe()))) + pwd = os.path.dirname(cwd) + + new_config = os.path.join(pwd, default_config) + + if os.path.exists(new_config): + config = new_config + self.log.info("Found burp.ini in %s", config) + else: + self.log.error("%s does not exist!", new_config) + self.config = Configuration(os.path.abspath(config)) except Exception: self.log.exception('Could not load extension config settings') diff --git a/Lib/gds/burp/console/console.py b/Lib/gds/burp/console/console.py index 73e9d65..e5cc32e 100644 --- a/Lib/gds/burp/console/console.py +++ b/Lib/gds/burp/console/console.py @@ -22,8 +22,10 @@ class Console(object): - PS1 = sys.ps1 - PS2 = sys.ps2 + # PS1 = sys.ps1 + # PS2 = sys.ps2 + PS1 = ">>> " + PS2 = "... " def __init__(self, burp, namespace=None): self.burp = burp