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.

Revisions

  1. TrueNix revised this gist Apr 7, 2025. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion frida_start.sh
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,9 @@
    adb shell <<'EOF'
    su
    pid=$(netstat -tulpan | grep frida | awk '{print $7}' | cut -d'/' -f1)
    kill -9 $pid
    if [ -n "$pid" ]; then
    kill -9 $pid
    fi
    nohup ./data/local/tmp/frida > /dev/null 2>&1 &
    exit
    EOF
  2. TrueNix created this gist Apr 7, 2025.
    8 changes: 8 additions & 0 deletions frida_start.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    #!/bin/bash
    adb shell <<'EOF'
    su
    pid=$(netstat -tulpan | grep frida | awk '{print $7}' | cut -d'/' -f1)
    kill -9 $pid
    nohup ./data/local/tmp/frida > /dev/null 2>&1 &
    exit
    EOF