> For the complete documentation index, see [llms.txt](https://ad2001.gitbook.io/a-noobs-guide-to-arm-exploitation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ad2001.gitbook.io/a-noobs-guide-to-arm-exploitation/lab-setup.md).

# Lab setup

For the lab environment, we are going the use already-built images. You should have VMware installed for this.

### ARM 32

For ARM32 we are going to use AzeriaLab's VM (Ubuntu 16.04 ) containing an emulated ARMv6l.&#x20;

Download here:

* Full on GDrive: <https://drive.google.com/file/d/1uX9fRUX-IHitQVD43QUsz9Aocy8pJ8XK/view?usp=sharing>
* Full on Mega.nz: <https://mega.nz/#!1K4k1T5a!hGNAUNbTktPB69dOMRpOT-y2znlIB8LQ1twTp90Uu8s>
* Split on Mega.nz: <https://mega.nz/#F!AO5j0ZCJ!ltZHLnXtpLccI4kkr-j2Xw>
* Split on GDrive: <https://drive.google.com/drive/folders/1p_XdsiVVSGk-LLtSFOov1H1y8z7g_SeK?usp=sharing>

**Password**: azerialabs

After downloading this, extract this using 7zip. You can import this using VMware or just double-click on the 'Azeria-Lab-v1.vmx' file. it will be automatically loaded.

After the VM  is loaded. Let's emulate our raspberry pi by clicking on the raspberry pi icon (shaded by purple).

<figure><img src="/files/BT2A0gdnZimAadiaJPFU" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/w6nJsRfoQSDSFXAcbcIy" alt=""><figcaption></figcaption></figure>

After completing the emulation. Let's ssh into the 'raspberry pi' image.

Click on the purple shaded icon.

<figure><img src="/files/4aXtFOKFo32IvqdFxSHx" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/yETQvZDJw2fitfHfk71n" alt=""><figcaption></figcaption></figure>

Now we are ready to do our exploitation.

### ARM 64

For ARM 64 we will be using hugsy's aarch ubuntu.

{% embed url="<https://blahcat.github.io/pages/qemu-vm-repo>" %}

<figure><img src="/files/K8Kuur3tIz4H2aD1w31O" alt=""><figcaption></figcaption></figure>

Download this zip and extract this.

I have copied the extracted folder inside my Kali Linux VM.

Now we have to install some qemu-packages.

```
apt-get install qemu-system-arm
apt-get install qemu-efi-aarch64
apt-get install qemu-utils
```

&#x20;After installing these packages. Navigate into the extracted folder.

We can start our aarch64 ubuntu by running the start script. it will take some time.

`./start.sh`

When it completes the booting process. you can ssh into it using the 'ssh.sh' script present in the folder.

`./ssh.sh`

The password for the user 'user' is 'user'.
