> For the complete documentation index, see [llms.txt](https://documentation.hak5.org/wifi-pineapple/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.hak5.org/wifi-pineapple/faq/factory-reset-and-recovery.md).

# 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).

![](/files/2V0gnwnKZEGWe7zsesi9)

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](/wifi-pineapple/setup/connecting-to-the-wifi-pineapple-on-linux.md).

#### 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](/wifi-pineapple/setup/connecting-to-the-wifi-pineapple-on-windows.md).

{% 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.

![](/files/qbdlrAMnYrpyXm8SxntD)

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](/wifi-pineapple/setup/connecting-the-wifi-pineapple.md) 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 %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://documentation.hak5.org/wifi-pineapple/faq/factory-reset-and-recovery.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
