Android Dynamic Analysis
Last updated
Last updated
If you need to execute ARM APK on Genymotion: https://github.com/m9rco/Genymotion_ARM_Translation
Click import/export CA certificate --> Export --> Certificate in DER format --> Choose a path and name it anything with a .cer extension --> Next
Security > Install from SD Card
After that, install the certificate also inside the SYSTEM trusted certificates.
Export the .der certificate from burp.
Confirmation:
Configure also the proxy settings in the emulator:
Now, on the Wi-Fi settings:
Finally, install the target apk.
To configure it with burpsuite, use the same steps above.
ProxyDroid is also a good option to bypass some restrictions and filtering all the traffic via burp.
Don't forget of putting the Memu VM as "root".
1. Go to the website and download the latest version of Pythonhttps://www.python.org/downloads/ 2. After downloading the file, run the installation file. 3. Put a checkmark on Add Python to PATH and then on Customize Installation
4. At this step, make sure that there are checkmarks everywhere.
5. Here is the same thing, pay attention to the checkbox Add Python to environment variables and change the default folder, for example, to C: \ Python
6. We are waiting for the installer to do its job. 7. Removes restrictions on the length of the file name. 8. Further, in order for Python to work normally, go to Options-> Applications and Features-> Application Execution Aliases (App execution aliases) and remove the toggle switches
9. Next, open cmd as administrator and enter these two commands:
Open a cmd.exe terminal with Administration privileges.
Open cmd with administrator rights and enter:
Download adbtools and Frida-server + the rest
Download the latest version of adbtools on the site here https://dl.google.com/android/repository/platform-tools-latest-windows.zip and unpack it into a convenient folder, in my case it is C:\Tools\adb
2. We save this script under the name fridascript.js in the adb folder
3. Go to the emulator Settings-> About tablet and click on the "Build number" tab a couple of times
4. Open cmd in the folder with adb and connect the device
5. Next, we need to download the Frida-server in accordance with the architecture of our device, so for this we will enter another command in cmdadb shell getprop ro.product.cpu.abi
6. Go to the site https://github.com/frida/frida/releases/ and download, in my case it's frida-server-xx.xx.xx-android-x86.xz
Unpack the contents of the archive in the folder with adb or 7zip
Now, upload frida-server into the device, for this we launch cmd from the adb folder and enter
Start the frida server:
7. There will be no output from this command, and do not close this cmd window, we need to keep frida-server running while we intercept requests, now we will try to see all running services on the device, for this we open a new command line and enter frida-ps -U
After that, a folder named "__handlers__" is created where you executed the frida-trace command.
You can add your code to intercept a specific call, and re-run the trace.
After re-run it, you will get it 😎
References