hotfix burp script
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user