mirror of
https://github.com/ziirish/burp-ui.git
synced 2026-05-21 06:45:24 -06:00
instanciate the connection with the burp status port at the creation of the object in order to improve performances
This commit is contained in:
parent
2cbb14fcfd
commit
52c8e9bbca
2 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue