Google Botguard Bypass
main.go : 93
// change this
launcher.NewBrowser().MustGet()
// by this
u := launcher.MustResolveURL("http://127.0.0.1:9222")
rod.New().ControlURL(u).MustConnect()This is necessary to use the existing debug port instead of starting a new instance! (Don't forget to import "github.com/go-rod/rod")
Then create a script to pre-launch Chrome in case of an evilginx kernel error!
script-chrome.sh
#!/bin/bash pkill -f "google-chrome" sleep 1
mkdir -p /run/user/0 chmod 700 /run/user/0 export
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/0/bus
google-chrome --remote-debugging-port=9222 --no-sandbox --disable-gpu --headless & CHROME_PID=$!
echo "Waiting for Chrome to start..." for i in {1..10}; do sleep 1 if curl -s
http://127.0.0.1:9222/json > /dev/null; then echo "Chrome is ready on port 9222" # Keep Chrome running in the background disown
$CHROME_PID exit 0 fi echo "Attempt $i..." done
echo "Failed to start Chrome after 10 attempts" kill $CHROME_PID exit 1Don't forget to do the virtual display :
Xvfb :99 -screen 0 1920x1080x24 &
export DISPLAY=:99Last updated
Was this helpful?