# Factory Reset and Recovery

To restore your WiFi Pineapple back to a factory state, or to recover from a bad configuration, you can perform a **Firmware Recovery**.

The factory recovery method consists of using the device bootloader to flash the recovery firmware, and in turn, the final firmware.

### Video Tutorial

{% embed url="<https://youtu.be/LcAbDolN-v0>" %}

### Preparation

To begin, download the latest recovery file from the [Hak5 Download Portal](https://downloads.hak5.org/pineapple).

![](https://3511988592-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mhuhsyl_byoEWXOc5EU%2Fuploads%2Fs9w4hJz4hcsB7S1DfweI%2Fimage.png?alt=media\&token=9efc2044-6189-40f6-8a5d-fe78ed5a0ced)

Once downloaded, verify the SHA256 sum of the downloaded file, and make sure your WiFi Pineapple is unplugged.

To start the process, **hold down the reset button while applying power** to the WiFi Pineapple.&#x20;

The WiFi Pineapple status LED will flash **RED**.

After approximately three flashes of the LED, **let go of the reset button** and continue to the next step.

The LED should blink **RED** rapidly, and then remain **SOLID RED**.  If the status LED changes to **BLUE**, disconnect the power and repeat the process.  Make sure the button is held in firmly, and release the button after approximately three flashes of the **RED** LED.

### Assigning a Static IP Address

#### Linux

Assign the WiFi Pineapple's interface a static IP address of **172.16.42.42**. More in-depth instructions can be found in the [Linux Setup page](https://olddocs.hak5.org/wifi-pineapple/setup/connecting-to-the-wifi-pineapple-on-linux).

#### Windows

Assign the WiFi Pineapple's interface a static IP address of **172.16.42.42**. More in-depth instructions can be found in the [Windows Setup page](https://olddocs.hak5.org/wifi-pineapple/setup/connecting-to-the-wifi-pineapple-on-windows).

{% hint style="info" %}
New to static IP address assignments in Windows? Check [this tutorial](https://www.howtogeek.com/howto/19249/how-to-assign-a-static-ip-address-in-xp-vista-or-windows-7/).
{% endhint %}

### Uploading the Recovery to the WiFi Pineapple

Once a static IP address has been assigned, open your browser and navigate to <http://172.16.42.1>. You'll then be greeted by a screen prompting you to upload a **.bin image**.

{% hint style="warning" %}
Be sure to navigate to <http://172.16.42.1> *with no port*.  To flash the recovery image you need to access the webserver on the default port - trying to connect to the WiFi Pineapple UI on port 1471 *will not work*!
{% endhint %}

If you have trouble reaching the WiFi Pinapple recovery page, make sure that:

1. The WiFi Pineapple LED is solid red.  If it is not, disconnect the power to the WiFi Pineapple and try the reset switch again.
2. You have a static IP assigned to the network interface created when you plug in the WiFi Pineapple.
3. You are attempting to navigate to <http://172.16.42.1> with *no port*.  The recovery page is on the standard port!

If you are still having trouble, try opening an Incognito or Private window in your browser, then navigating to <http://172.16.42.1> .  Sometimes the browser will cache previous results and obscure the page.

![](https://3511988592-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mhuhsyl_byoEWXOc5EU%2Fuploads%2Fu9mCHMyc3BGtNBjimXls%2Fimage.png?alt=media\&token=b74c2c52-d1f9-4233-a8ef-ab94280ddee4)

Select **Choose file** and then select the downloaded **recovery file** from earlier. After clicking **Update firmware**, the device will begin flashing.  **Do not** attempt to flash a normal WiFi Pineapple firmware now - it won't work!  You'll be able to flash the full firmware during the setup process once recovery is complete!

{% hint style="danger" %}
**Do not unplug the device.** Doing so will potentially damage your device. It will automatically reboot once complete.&#x20;
{% endhint %}

Once the process is complete, you will be able to set the device up again. See the [Setup section](https://olddocs.hak5.org/wifi-pineapple/setup) for more details.

{% hint style="info" %}
Once the device has finished flashing, you will need to navigate to <http://172.16.42.1:1471> to complete the setup process, same as the first time you configured it!
{% endhint %}
