GithubHelp home page GithubHelp logo

Comments (3)

FrenchYeti avatar FrenchYeti commented on May 17, 2024 2

The Frida version required is not the problem. It seems there is an issue between the ADB version of the device and the local version. I will try to reproduce your issue with adb ASAP.

from dexcalibur.

FrenchYeti avatar FrenchYeti commented on May 17, 2024

I introduce the new option --emu and updated the docker image. So, i encourage you to pull the latest version.

You don't need to use --device with emulator because adb communicate with it via TCP. So, you can start docker container with the following command :
docker run -it -v $PWD:/home/dexcalibur/workspace --net=host frenchyeti/dexcalibur

If your emulator is running, check if you see the device with adb devices from the container.

And start dexcalibur by appending at the end of command the new --emu options like it :
./dexcalibur --app=<your_target> --port=8000 --pull --emu

If you expect to perform hooking with emulator, you need to add frida-server (< 12.5.0) on the emulated device and start it before to run dexcalibur. Else, you can disable hook feature with --no-frida option.

from dexcalibur.

cryptax avatar cryptax commented on May 17, 2024

Thanks for adding emulator support!

you need to add frida-server (< 12.5.0)

Do you absolutely need to use below 12.5.0? I'm currently with 12.6.5.

So, I did:

  1. docker pull frenchyeti/dexcalibur (again)
  2. docker run -it -v $PWD:/home/dexcalibur/workspace -p 9999:8000 --net=host frenchyeti/dexcalibur,
  3. Push frida-server and launch it on the emulator
  4. ./dexcalibur --app=my.app.fr --port=8000 --pull --emu inside Dexcalibur container. I believe port 8000 is correct here, because you want the port inside the container?

And it crashes frida-server and that's what dexcalibur says:

[*] Working directory : /home/dexcalibur/workspace/my.app.fr/
[!] Warning ! : device not selected. Searching ...
adb server version (40) doesn't match this client (41); killing...
ADB server didn't ACK
Full server startup log: /tmp/adb.0.log
Server had pid: 42
--- adb starting (pid 42) ---
adb I 06-04 14:28:27    42    42 main.cpp:60] Android Debug Bridge version 1.0.41
adb I 06-04 14:28:27    42    42 main.cpp:60] Version 28.0.3-5475833
adb I 06-04 14:28:27    42    42 main.cpp:60] Installed as /home/dexcalibur/platform-tools/platform-tools/adb
adb I 06-04 14:28:27    42    42 main.cpp:60] 
adb I 06-04 14:28:27    42    42 auth.cpp:405] adb_auth_init...
adb I 06-04 14:28:27    42    42 auth.cpp:230] User key '/root/.android/adbkey' does not exist...
adb I 06-04 14:28:27    42    42 auth.cpp:77] generate_key(/root/.android/adbkey)...
adb I 06-04 14:28:28    42    42 auth.cpp:380] adb_auth_inotify_init...
adb server killed by remote request

* failed to start daemon
adb: failed to check server version: cannot connect to daemon
child_process.js:661
    throw err;
    ^

Error: Command failed: /home/dexcalibur/platform-tools/platform-tools/adb  devices -l
adb server version (40) doesn't match this client (41); killing...
ADB server didn't ACK
Full server startup log: /tmp/adb.0.log
Server had pid: 42
--- adb starting (pid 42) ---
adb I 06-04 14:28:27    42    42 main.cpp:60] Android Debug Bridge version 1.0.41
adb I 06-04 14:28:27    42    42 main.cpp:60] Version 28.0.3-5475833
adb I 06-04 14:28:27    42    42 main.cpp:60] Installed as /home/dexcalibur/platform-tools/platform-tools/adb
adb I 06-04 14:28:27    42    42 main.cpp:60] 
adb I 06-04 14:28:27    42    42 auth.cpp:405] adb_auth_init...
adb I 06-04 14:28:27    42    42 auth.cpp:230] User key '/root/.android/adbkey' does not exist...
adb I 06-04 14:28:27    42    42 auth.cpp:77] generate_key(/root/.android/adbkey)...
adb I 06-04 14:28:28    42    42 auth.cpp:380] adb_auth_inotify_init...
adb server killed by remote request

* failed to start daemon
adb: failed to check server version: cannot connect to daemon

    at checkExecSyncError (child_process.js:621:11)
    at Object.execSync (child_process.js:658:15)
    at AdbWrapper.listDevices (/home/dexcalibur/dexcalibur/src/AdbWrapper.js:67:23)
    at DeviceManager.scan (/home/dexcalibur/dexcalibur/src/DeviceManager.js:52:36)
    at Project.pull (/home/dexcalibur/dexcalibur/src/Project.js:336:22)
    at Object.<anonymous> (/home/dexcalibur/dexcalibur/dexcalibur:114:17)
    at Module._compile (internal/modules/cjs/loader.js:774:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)
    at Module.load (internal/modules/cjs/loader.js:641:32)
    at Function.Module._load (internal/modules/cjs/loader.js:556:12) {
  status: 1,
  signal: null,
  output: [
    null,
    <Buffer >,
    <Buffer 61 64 62 20 73 65 72 76 65 72 20 76 65 72 73 69 6f 6e 20 28 34 30 29 20 64 6f 65 73 6e 27 74 20 6d 61 74 63 68 20 74 68 69 73 20 63 6c 69 65 6e 74 20 ... 879 more bytes>
  ],
  pid: 40,
  stdout: <Buffer >,
  stderr: <Buffer 61 64 62 20 73 65 72 76 65 72 20 76 65 72 73 69 6f 6e 20 28 34 30 29 20 64 6f 65 73 6e 27 74 20 6d 61 74 63 68 20 74 68 69 73 20 63 6c 69 65 6e 74 20 ... 879 more bytes>

:(

from dexcalibur.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.