diff --git a/.gitbook/assets/image (363).png b/.gitbook/assets/image (363).png index 7a6a940d3..f889002a9 100644 Binary files a/.gitbook/assets/image (363).png and b/.gitbook/assets/image (363).png differ diff --git a/.gitbook/assets/image (364).png b/.gitbook/assets/image (364).png index ad88950d7..7a6a940d3 100644 Binary files a/.gitbook/assets/image (364).png and b/.gitbook/assets/image (364).png differ diff --git a/.gitbook/assets/image (365).png b/.gitbook/assets/image (365).png index 25c6a21a0..ad88950d7 100644 Binary files a/.gitbook/assets/image (365).png and b/.gitbook/assets/image (365).png differ diff --git a/.gitbook/assets/image (366).png b/.gitbook/assets/image (366).png index ad88950d7..25c6a21a0 100644 Binary files a/.gitbook/assets/image (366).png and b/.gitbook/assets/image (366).png differ diff --git a/.gitbook/assets/image (367).png b/.gitbook/assets/image (367).png index 356d109fc..ad88950d7 100644 Binary files a/.gitbook/assets/image (367).png and b/.gitbook/assets/image (367).png differ diff --git a/.gitbook/assets/image (368).png b/.gitbook/assets/image (368).png new file mode 100644 index 000000000..2e9704d15 Binary files /dev/null and b/.gitbook/assets/image (368).png differ diff --git a/.gitbook/assets/image (369).png b/.gitbook/assets/image (369).png new file mode 100644 index 000000000..356d109fc Binary files /dev/null and b/.gitbook/assets/image (369).png differ diff --git a/mobile-apps-pentesting/android-app-pentesting/avd-android-virtual-device.md b/mobile-apps-pentesting/android-app-pentesting/avd-android-virtual-device.md index c169cd827..431b73a25 100644 --- a/mobile-apps-pentesting/android-app-pentesting/avd-android-virtual-device.md +++ b/mobile-apps-pentesting/android-app-pentesting/avd-android-virtual-device.md @@ -15,12 +15,12 @@ In Windows \(in my case\) **after installing Android Studio** I had the **SDK To If you installed Android Studio, you can just open the main project view and access: _**Tools**_ --> _**AVD Manager.**_ -![](../../.gitbook/assets/image%20%28365%29.png) +![](../../.gitbook/assets/image%20%28366%29.png) Then, click on _**Create Virtual Device**_, _**select** the phone you want to use_ and click on _**Next.**_ In the current view you are going to be able to **select and download the Android image** that the phone is going to run: -![](../../.gitbook/assets/image%20%28367%29.png) +![](../../.gitbook/assets/image%20%28369%29.png) So, select it and click on _**Download**_ **\(**now wait until the image is downloaded\). Once the image is downloaded, just select _**Next**_ and _**Finish**_. @@ -33,7 +33,7 @@ The virtual machine will be created. Now **every time that you access AVD manage In order to **run** it just press the _**Start button**_. -![](../../.gitbook/assets/image%20%28363%29.png) +![](../../.gitbook/assets/image%20%28364%29.png) ## Command Line tool @@ -165,6 +165,11 @@ C:\Users\\AppData\Local\Android\Sdk\tools\emulator.exe -avd "AVD9" -ht However there are **a lot of different command line useful options** that you can use to initiate a virtual machine. Below you can find some interesting options but can ****[**find a complete list here**](https://developer.android.com/studio/run/emulator-commandline) +#### Boot + +* `-snapshot name` : Start VM snapshot +* `-snapshot-list -snapstorage ~/.android/avd/Nexus_5X_API_23.avd/snapshots-test.img` : List all the snapshots recorded + #### Network * `-dns-server 192.0.2.0, 192.0.2.255` : Allow to indicate comma separated the DNS servers to the VM. @@ -184,7 +189,7 @@ However there are **a lot of different command line useful options** that you ca First of all you need to download the Der certificate from Burp. You can do this in _**Proxy**_ --> _**Options**_ --> _**Import / Export CA certificate**_ -![](../../.gitbook/assets/image%20%28366%29.png) +![](../../.gitbook/assets/image%20%28367%29.png) **Export the certificate in Der format** and lets **transform** it to a form that **Android** is going to be able to **understand.** Note that **in order to configure the burp certificate on the Android machine in AVD** you need to **run** this machine **with** the **`-writable-system`** option. For example you can run it like: @@ -208,3 +213,9 @@ adb reboot #Now, reboot the machine Once the **machine finish rebooting** the burp certificate will be in use by it! +### Take a Snapshot + +You can **use the GUI** to take a snapshot of the VM at any time: + +![](../../.gitbook/assets/image%20%28363%29.png) +