instanciate the connection with the burp status port at the creation of the object in order to improve performances

This commit is contained in:
ziirish 2015-12-11 17:48:36 +01:00
parent 2cbb14fcfd
commit 52c8e9bbca
2 changed files with 5 additions and 1 deletions

View file

@ -221,6 +221,8 @@ class Burp(BUIbackend):
self._logger('info', 'burp conf cli: %s', self.burpconfcli)
self._logger('info', 'burp conf srv: %s', self.burpconfsrv)
self._logger('info', 'tmpdir: %s', self.tmpdir)
# make the connection
self.status()
"""
Utilities functions

View file

@ -78,9 +78,9 @@ class Burp(Burp1):
'tmpdir': g_tmpdir
}
self.running = []
version = ''
if conf:
config = ConfigParser.ConfigParser(self.defaults)
version = ''
with codecs.open(conf, 'r', 'utf-8') as fp:
config.readfp(fp)
try:
@ -161,6 +161,8 @@ class Burp(Burp1):
self._logger('info', 'burp conf srv: {}'.format(self.burpconfsrv))
self._logger('info', 'command timeout: {}'.format(self.timeout))
self._logger('info', 'burp version: {}'.format(self.client_version))
# make the connection
self.status()
def __exit__(self, type, value, traceback):
"""try not to leave child process server side"""