diff --git a/burp/start_burp.py b/burp/start_burp.py index 0ae0406..755fc6c 100644 --- a/burp/start_burp.py +++ b/burp/start_burp.py @@ -15,6 +15,8 @@ def start_burp(): ]) return burp_process +time.sleep(5) + print("Starting Burp Suite...") burp_process = start_burp() button = None @@ -62,7 +64,7 @@ while True: if button: print("Clicking on the 'HTTP History' button...") pyautogui.click(button) - time.sleep(60) + time.sleep(60*60*24) burp_process.terminate() print("Starting Burp Suite...") burp_process = start_burp() diff --git a/supervisord/burpsuite.sh b/supervisord/burpsuite.sh index 0ad2917..77dea96 100644 --- a/supervisord/burpsuite.sh +++ b/supervisord/burpsuite.sh @@ -1,14 +1,2 @@ #!/bin/bash - -export DISPLAY=:1.0 -sleep 2 - - -# Launch Burp Suite -java -jar /home/default/burpsuite_community.jar - -# Give it time to start up -sleep 10 - -# Run your Python script to click "Next" -python3 /workspace/auto_click_next.py +/headless/.venv/bin/python3 /app/burp/start_burp.py \ No newline at end of file diff --git a/supervisord/supervisord.conf b/supervisord/supervisord.conf index 8434e1f..a36fa92 100644 --- a/supervisord/supervisord.conf +++ b/supervisord/supervisord.conf @@ -15,4 +15,10 @@ autostart=true autorestart=true stdout_logfile=/dev/stdout stderr_logfile=/dev/stderr -directory=/headless \ No newline at end of file + +[program:burpsuite] +command=bash /app/supervisord/burpsuite.sh +autostart=true +autorestart=true +stdout_logfile=/dev/stdout +stderr_logfile=/dev/stderr \ No newline at end of file