Comments (3)
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.
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.
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:
docker pull frenchyeti/dexcalibur
(again)docker run -it -v $PWD:/home/dexcalibur/workspace -p 9999:8000 --net=host frenchyeti/dexcalibur
,- Push frida-server and launch it on the emulator
./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)
- I got an error while installing on Mac OS HOT 5
- Error after uploading APK HOT 2
- Add Cipher.doFinal hook by default (Feature request) HOT 1
- JavaScript heap out of memory HOT 1
- TypeError: this.__tmp_block.setDataWidth is not a function HOT 1
- JavaScript heap out of memory HOT 2
- When killing an app, I get an error that is not catched
- When clicking on Run, a log is created, when clicking back on hook -> dashboard, then Hook -> logs the log is deleted HOT 2
- Hook Failed: error: Need gadget to attach on jailed Android
- Installation on MacOS M1 Monterey HOT 3
- Cannot open project for malicious sample / Unable to generate UID error
- Missing font from repo
- Dexcalibur won't install from repo due to deprecated dependency keyv
- Instructions to run on Windows incorrect
- Dexcalibur should prompt user for action after successful first run HOT 1
- Device enrolment not working as SDK 31-33 isn't available HOT 2
- No error prompt when creating project with APK SDK > device SDK HOT 1
- TypeError: this.__tmp_block.setDataWidth is not a function
- Extracting of frida-server from XZ archive is not supported on Darwin/arm64 HOT 1
- Probe of dynamically discovered method does not work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dexcalibur.