hotfix burp script

This commit is contained in:
Simon
2025-06-19 11:18:15 +00:00
parent 23f6df62f0
commit 242ce91525

View File

@@ -21,6 +21,8 @@ print("Starting Burp Suite...")
burp_process = start_burp() burp_process = start_burp()
end_time = datetime.datetime.now() + datetime.timedelta(days=1) end_time = datetime.datetime.now() + datetime.timedelta(days=1)
button = None button = None
proxy_clicked = False
history_clicked = False
while True: while True:
if datetime.datetime.now() > end_time: if datetime.datetime.now() > end_time:
print("Burp Suite has been running for 24 hours, restarting...") print("Burp Suite has been running for 24 hours, restarting...")
@@ -28,6 +30,9 @@ while True:
time.sleep(1) time.sleep(1)
burp_process = start_burp() burp_process = start_burp()
end_time = datetime.datetime.now() + datetime.timedelta(days=1) end_time = datetime.datetime.now() + datetime.timedelta(days=1)
proxy_clicked = False
history_clicked = False
try: try:
button = pyautogui.locateCenterOnScreen("/app/burp/next_button.png", confidence=0.8) button = pyautogui.locateCenterOnScreen("/app/burp/next_button.png", confidence=0.8)
except: except:
@@ -59,19 +64,21 @@ while True:
button = pyautogui.locateCenterOnScreen("/app/burp/proxy.png", confidence=0.8) button = pyautogui.locateCenterOnScreen("/app/burp/proxy.png", confidence=0.8)
except: except:
pass pass
if button: if button and not proxy_clicked:
print("Clicking on the 'Proxy' button...") print("Clicking on the 'Proxy' button...")
pyautogui.click(button) pyautogui.click(button)
button = None button = None
proxy_clicked = True
try: try:
button = pyautogui.locateCenterOnScreen("/app/burp/http_history.png", confidence=0.8) button = pyautogui.locateCenterOnScreen("/app/burp/http_history.png", confidence=0.8)
except: except:
pass pass
if button: if button and not history_clicked:
print("Clicking on the 'HTTP History' button...") print("Clicking on the 'HTTP History' button...")
pyautogui.click(button) pyautogui.click(button)
button = None button = None
history_clicked = True
try: try:
button = pyautogui.locateCenterOnScreen("/app/burp/sort.png", confidence=0.8) button = pyautogui.locateCenterOnScreen("/app/burp/sort.png", confidence=0.8)
except: except: