mirror of
https://github.com/ziirish/burp-ui.git
synced 2026-05-21 06:45:24 -06:00
fix: make sure to use the right data type
This commit is contained in:
parent
e394744162
commit
e5d2a48d65
1 changed files with 4 additions and 4 deletions
|
|
@ -82,18 +82,18 @@ class Monitor(object):
|
|||
cmd = [self.burpbin, '-V']
|
||||
version = None
|
||||
try:
|
||||
version = subprocess.check_output(
|
||||
version = to_unicode(subprocess.check_output(
|
||||
cmd,
|
||||
stderr=subprocess.DEVNULL
|
||||
).rstrip()
|
||||
)).rstrip()
|
||||
except subprocess.CalledProcessError:
|
||||
pass
|
||||
if version is None:
|
||||
cmd = [self.burpbin, '-v']
|
||||
version = subprocess.check_output(
|
||||
version = to_unicode(subprocess.check_output(
|
||||
cmd,
|
||||
stderr=subprocess.DEVNULL
|
||||
).rstrip()
|
||||
)).rstrip()
|
||||
if version < BURP_MINIMAL_VERSION and \
|
||||
getattr(self.app, 'strict', True):
|
||||
self.logger.critical(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue