diff --git a/burpui/misc/parser/burp1.py b/burpui/misc/parser/burp1.py index 43126150..16f14dd3 100644 --- a/burpui/misc/parser/burp1.py +++ b/burpui/misc/parser/burp1.py @@ -333,9 +333,10 @@ class Parser(BUIparser,BUIlogging): u'hard_quota': "Do not back up the client if the estimated size of all files is greater than the specified size. Example: 'hard_quota = 100Gb'. Set to 0 (the default) to have no limit.", } - #def __init__(self, app=None, conf=None): - #self._logger('info', 'temporary dir: %s', self.tmpdir) - + def __init__(self, app=None, conf=None): + super(Parser, self).__init__(app, conf) + self._logger('info', 'Parser initialized with: %s', self.conf) + self.clientconfdir = None def _readfile(self, f=None, sourced=False): if not f: @@ -381,6 +382,8 @@ class Parser(BUIparser,BUIlogging): if not found: multi.append({'name': key, 'value': [val]}) continue + if key == u'clientconfdir': + self.clientconfdir = val dic.append({'name': key, 'value': val}) return dic, boolean, multi, integer, other_files diff --git a/burpui/misc/parser/interface.py b/burpui/misc/parser/interface.py index 0fa0439f..9501616d 100644 --- a/burpui/misc/parser/interface.py +++ b/burpui/misc/parser/interface.py @@ -1,6 +1,6 @@ # -*- coding: utf8 -*- -class BUIparser: +class BUIparser(object): def __init__(self, app=None, conf=None): self.app = app self.conf = conf diff --git a/burpui/misc/utils.py b/burpui/misc/utils.py index a49bc064..ee9205d5 100644 --- a/burpui/misc/utils.py +++ b/burpui/misc/utils.py @@ -62,7 +62,7 @@ def currentframe(): except: return sys.exc_info()[2].tb_frame.f_back -class BUIlogging: +class BUIlogging(object): def _logger(self, level, *args): if self.app: logs = {