From 242ce915256b6fbfb82d3d5ef6fbdb99354e118e Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 19 Jun 2025 11:18:15 +0000 Subject: [PATCH] hotfix burp script --- burp/start_burp.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/burp/start_burp.py b/burp/start_burp.py index 990e59e..90041dc 100644 --- a/burp/start_burp.py +++ b/burp/start_burp.py @@ -21,6 +21,8 @@ print("Starting Burp Suite...") burp_process = start_burp() end_time = datetime.datetime.now() + datetime.timedelta(days=1) button = None +proxy_clicked = False +history_clicked = False while True: if datetime.datetime.now() > end_time: print("Burp Suite has been running for 24 hours, restarting...") @@ -28,6 +30,9 @@ while True: time.sleep(1) burp_process = start_burp() end_time = datetime.datetime.now() + datetime.timedelta(days=1) + proxy_clicked = False + history_clicked = False + try: button = pyautogui.locateCenterOnScreen("/app/burp/next_button.png", confidence=0.8) except: @@ -59,19 +64,21 @@ while True: button = pyautogui.locateCenterOnScreen("/app/burp/proxy.png", confidence=0.8) except: pass - if button: + if button and not proxy_clicked: print("Clicking on the 'Proxy' button...") pyautogui.click(button) button = None + proxy_clicked = True try: button = pyautogui.locateCenterOnScreen("/app/burp/http_history.png", confidence=0.8) except: pass - if button: + if button and not history_clicked: print("Clicking on the 'HTTP History' button...") pyautogui.click(button) button = None + history_clicked = True try: button = pyautogui.locateCenterOnScreen("/app/burp/sort.png", confidence=0.8) except: