# 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](https://drive.google.com/file/d/1uX9fRUX-IHitQVD43QUsz9Aocy8pJ8XK/view?usp=sharing)
* Full on Mega.nz: [https://mega.nz/#!1K4k1T5a!hGNAUNbTktPB69dOMRpOT-y2znlIB8LQ1twTp90Uu8s](https://mega.nz/#!1K4k1T5a!hGNAUNbTktPB69dOMRpOT-y2znlIB8LQ1twTp90Uu8s)
* Split on Mega.nz: [https://mega.nz/#F!AO5j0ZCJ!ltZHLnXtpLccI4kkr-j2Xw](https://mega.nz/#F!AO5j0ZCJ!ltZHLnXtpLccI4kkr-j2Xw)
* Split on GDrive: [https://drive.google.com/drive/folders/1p\_XdsiVVSGk-LLtSFOov1H1y8z7g\_SeK?usp=sharing](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="https://3643148735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuoH6DVWgxRANBNbHnsUM%2Fuploads%2FXmobvthy0oqnWqzx0et9%2Femulated.png?alt=media&#x26;token=075c71eb-ebbe-415d-a76e-bb7fad6360a8" alt=""><figcaption></figcaption></figure>



<figure><img src="https://3643148735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuoH6DVWgxRANBNbHnsUM%2Fuploads%2FDMLNDX8CYskA8c7ZXhVv%2Fsuccessfully.png?alt=media&#x26;token=1e645767-ae5a-4a9f-ada8-13891b3cd0f9" 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="https://3643148735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuoH6DVWgxRANBNbHnsUM%2Fuploads%2FsD62bAoXJnkOnpsHr2pN%2Fpurple.png?alt=media&#x26;token=4b5b582e-f26e-4a35-893e-6d3ff4d38948" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3643148735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuoH6DVWgxRANBNbHnsUM%2Fuploads%2FyN0gAIYMfFfaG4JZezJo%2Fssh.png?alt=media&#x26;token=bb7a1b75-0e16-43f6-a6a3-fee46b34a5b1" 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="https://3643148735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuoH6DVWgxRANBNbHnsUM%2Fuploads%2FNCvZTH2YfvosHa6uYoPf%2Faarch.png?alt=media&#x26;token=e1408d6c-982e-4c2b-866e-15a50cf3e1ee" 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'.

