Skip to content

Instantly share code, notes, and snippets.

@TrueNix
Last active April 7, 2025 06:05
Show Gist options
  • Select an option

  • Save TrueNix/b2b8c802d49cf025c413cf8726b876e2 to your computer and use it in GitHub Desktop.

Select an option

Save TrueNix/b2b8c802d49cf025c413cf8726b876e2 to your computer and use it in GitHub Desktop.
#!/bin/bash
adb shell <<'EOF'
su
pid=$(netstat -tulpan | grep frida | awk '{print $7}' | cut -d'/' -f1)
if [ -n "$pid" ]; then
kill -9 $pid
fi
nohup ./data/local/tmp/frida > /dev/null 2>&1 &
exit
EOF
@TrueNix
Copy link
Author

TrueNix commented Apr 7, 2025

Simple script to restart Frida on an Android device. It gets root access, finds and kills the current Frida process, and then launches a new Frida instance in the background.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment