diff --git a/frida_push/command.py b/frida_push/command.py index 069cabd..772e665 100644 --- a/frida_push/command.py +++ b/frida_push/command.py @@ -154,8 +154,8 @@ def push_and_execute(fname, transport_id=None): push_cmd = [ADB_PATH, "-t", transport_id, "push", fname, "/data/local/tmp/frida-server"] chmod_cmd = [ADB_PATH, "-t", transport_id, "shell", "chmod 0755 /data/local/tmp/frida-server"] - kill_cmd = [ADB_PATH, "-t", transport_id, "shell", "su 0 killall frida-server"] - execute_cmd = [ADB_PATH, "-t", transport_id, "shell", "su 0 '/data/local/tmp/frida-server'"] + kill_cmd = [ADB_PATH, "-t", transport_id, "shell", "su", "-c", "killall", "frida-server"] + execute_cmd = [ADB_PATH, "-t", transport_id, "shell", "su", "-c", "/data/local/tmp/frida-server"] res = subprocess.Popen(push_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) res.wait()