From 8267f56fdcd57f399472d3139d10f8c045d0557f Mon Sep 17 00:00:00 2001 From: moldani Date: Fri, 24 Feb 2023 19:14:48 +0100 Subject: [PATCH] Fixed bug that will have disabled HTTP/2 on burp editon made before August --- inql/burp_ext/attacker_tab.py | 3 ++- inql/burp_ext/generator_tab.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/inql/burp_ext/attacker_tab.py b/inql/burp_ext/attacker_tab.py index 47626fc..880a43b 100644 --- a/inql/burp_ext/attacker_tab.py +++ b/inql/burp_ext/attacker_tab.py @@ -52,7 +52,8 @@ def getUiComponent(self): def disable_http2_ifbogus(self): try: _, major, minor = self._callbacks.getBurpVersion() - if not (int(major) >= 2021 and float(minor) >= 8): + + if int(major) < 2021 or (int(major) == 2021 and float(minor)<= 8): print("Jython does not support HTTP/2 on Burp <= 2021.8: disabling it!") j = json.loads(self._callbacks.saveConfigAsJson()) j['project_options']['http']['http2']['enable_http2'] = False diff --git a/inql/burp_ext/generator_tab.py b/inql/burp_ext/generator_tab.py index 28e3f5b..1bda002 100644 --- a/inql/burp_ext/generator_tab.py +++ b/inql/burp_ext/generator_tab.py @@ -100,7 +100,7 @@ def getUiComponent(self): def disable_http2_ifbogus(self): try: _, major, minor = self._callbacks.getBurpVersion() - if not (int(major) >= 2021 and float(minor) >= 8): + if int(major) < 2021 or (int(major) == 2021 and float(minor)<= 8): print("Jython does not support HTTP/2 on Burp <= 2021.8: disabling it!") j = json.loads(self._callbacks.saveConfigAsJson()) j['project_options']['http']['http2']['enable_http2'] = False