# Full emulate Netgear WNAP320

One of the earlier ways of performing Firmware Emulation was to create a Qemu image and then copy the firmware file system's contents on to the Qemu image and then launch the image.

## Use a Linux VM&#x20;

* [**AttifyOS VM**](https://github.com/adi0x90/attifyos/) **or any Linux based image**

You can download de OVA file and import it into the VirtualBox.

## Download the firmware

* A firmware that you want to emulate ([Netgear WNAP320](http://www.downloads.netgear.com/files/GDC/WNAP320/WNAP320%20Firmware%20Version%202.0.3.zip) )

## Extracting the firmware

```
binwalk -e WNAP320\ Firmware\ Version\ 2.0.3.zip
```

![](https://4052868066-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MWd-VcvRHVgUtkahm85%2F-MZ4NCsp23e5gn3RolqN%2F-MZ5enD4aEYo4LmP4cCr%2Fimage.png?alt=media\&token=08176df8-27dc-4d54-bf38-1de0b1f88676)

```
tar -xvf WNAP320_V2.0.3_firmware.tar 
```

![](https://4052868066-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MWd-VcvRHVgUtkahm85%2F-MZ4NCsp23e5gn3RolqN%2F-MZ5f32oYcWd1x0g_LwR%2Fimage.png?alt=media\&token=c7df222b-bb4c-45f4-a13c-bc69835a4b0d)

## Emulating the firmware

```
python3 fat.py /home/iot/Desktop/a/_WNAP320\ Firmware\ Version\ 2.0.3.zip.extracted/rootfs.squashfs
```

![](https://4052868066-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MWd-VcvRHVgUtkahm85%2F-MZ4NCsp23e5gn3RolqN%2F-MZ5frvdpReaQrDRgtyI%2Fimage.png?alt=media\&token=9e23093c-f4b2-4b73-a262-2990df9aac86)

After a moment ...

![](https://4052868066-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MWd-VcvRHVgUtkahm85%2F-MZ4NCsp23e5gn3RolqN%2F-MZ5g4-UpUlZnR0ZWfSg%2Fimage.png?alt=media\&token=c83ca43c-331a-4772-827b-33a78c91b5b1)

**PRESS ENTER** :sunglasses:&#x20;

![](https://4052868066-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MWd-VcvRHVgUtkahm85%2F-MZ4NCsp23e5gn3RolqN%2F-MZ5gKCYlBGQbT86Qdun%2Fimage.png?alt=media\&token=cf5f134b-b5f4-4286-a112-f304ef01a93d)

![](https://4052868066-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MWd-VcvRHVgUtkahm85%2F-MZ4NCsp23e5gn3RolqN%2F-MZ5gUwga1NFwz7Loawm%2Fimage.png?alt=media\&token=8eb597d8-7cbc-4165-9f93-928bfb075f9b)

## Reference

{% embed url="<https://blog.attify.com/getting-started-with-firmware-emulation/>" %}
