From f522001b3230e3dff9efb14e0b171f0ba49e9a9a Mon Sep 17 00:00:00 2001 From: Carlos Polop Date: Tue, 18 Feb 2025 19:20:21 +0100 Subject: [PATCH] avd --- .../android-app-pentesting/avd-android-virtual-device.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mobile-pentesting/android-app-pentesting/avd-android-virtual-device.md b/src/mobile-pentesting/android-app-pentesting/avd-android-virtual-device.md index b265cc693..704725b63 100644 --- a/src/mobile-pentesting/android-app-pentesting/avd-android-virtual-device.md +++ b/src/mobile-pentesting/android-app-pentesting/avd-android-virtual-device.md @@ -68,6 +68,9 @@ In order to **run** it just press the _**Start button**_. ## Command Line tool +> [!WARNING] +> For macOS you can find the `avdmanager` tool in `/Users//Library/Android/sdk/tools/bin/avdmanager` and the `emulator` in `/Users//Library/Android/sdk/emulator/emulator` if you have them installed. + First of all you need to **decide which phone you want to use**, in order to see the list of possible phones execute: ``` @@ -155,6 +158,9 @@ The following Android Virtual Devices could not be loaded: ### Run Virtual Machine +> [!WARNING] +> For macOS you can find the `avdmanager` tool in `/Users//Library/Android/sdk/tools/bin/avdmanager` and the `emulator` in `/Users//Library/Android/sdk/emulator/emulator` if you have them installed. + We have already seen how you can list the created virtual machines, but **you can also list them using**: ```bash @@ -189,6 +195,8 @@ However there are **a lot of different command line useful options** that you ca - `-dns-server 192.0.2.0, 192.0.2.255` : Allow to indicate comma separated the DNS servers to the VM. - **`-http-proxy 192.168.1.12:8080`** : Allow to indicate an HTTP proxy to use (very useful to capture the traffic using Burp) + - If the proxy settings aren't working for some reason, try to configure them internally or using an pplication like "Super Proxy" or "ProxyDroid". +- `-netdelay 200` : Set the network latency emulation in milliseconds. - `-port 5556` : Set the TCP port number that's used for the console and adb. - `-ports 5556,5559` : Set the TCP ports used for the console and adb. - **`-tcpdump /path/dumpfile.cap`** : Capture all the traffic in a file