FrenchYeti / dexcalibur

[Official] Android reverse engineering tool focused on dynamic instrumentation automation leveraging Frida. It disassembles dex, analyzes it statically, generates hooks, discovers reflected methods, stores intercepted data and does new things from it. Its aim is to be an all-in-one Android reverse engineering platform.
Apache License 2.0
1.06k stars 126 forks source link

When killing an app, I get an error that is not catched #62

Open dummys opened 3 years ago

dummys commented 3 years ago

Using the kill app button in the UI:

[INFO] spawned:24357
script loaded Script {}
[INFO] [REST] /api/hook/frida/kill POST
Execute command request : /home/user/dexcaliburWS/.dxc/bin/platform-tools/adb -s 2531c536 shell su -c "kill 24357"
/system/bin/sh: kill: 24357: No such process
node:child_process:826
    err = new Error(msg);
          ^

Error: Command failed: /home/user/dexcaliburWS/.dxc/bin/platform-tools/adb -s 2531c536 shell su -c "kill 24357"
/system/bin/sh: kill: 24357: No such process

    at checkExecSyncError (node:child_process:826:11)
    at Object.execSync (node:child_process:900:15)
    at Object.execSync (/usr/lib/node_modules/dexcalibur/src/Utils.js:204:27)
    at AdbWrapper.privilegedShell (/usr/lib/node_modules/dexcalibur/src/AdbWrapper.js:775:23)
    at Device.privilegedExecSync (/usr/lib/node_modules/dexcalibur/src/Device.js:459:38)
    at /usr/lib/node_modules/dexcalibur/src/WebServer.js:1206:57
    at Layer.handle [as handle_request] (/usr/lib/node_modules/dexcalibur/node_modules/express/lib/router/layer.js:95:5)
    at next (/usr/lib/node_modules/dexcalibur/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/usr/lib/node_modules/dexcalibur/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/usr/lib/node_modules/dexcalibur/node_modules/express/lib/router/layer.js:95:5) {