---
description: >-
  This section contains information about community modules that can be used on
  top of the PineAP Attack
---

# Modules

## Background

The WiFi Pineapple was created with modularity in mind. The WiFi Pineapple supports community-developed modules in addition to the system modules supplied with the WiFi Pineapple, such as Recon, Clients, and PineAP. The WiFi Pineapple API is used by several community-developed modules to expand functionality. This API can be used by anybody to build modules for the WiFi Pineapple.

## Modules

Let's take a look at some of the community-made modules in this section!

![](https://561482365-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdOcy1ba9EGn2GQ7ELK%2F-Mga5GIg_d-csHD8uhyc%2F-Mga5M_4LQFxBPHy7J9-%2Fimage.png?alt=media\&token=7ecdfeae-fe76-4fbd-bad7-e7dafd65c6ed)

{% hint style="warning" %}
We'll assume we already got our target to connect to our rogue network beforehand
{% endhint %}

### TcpDump

![](https://561482365-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdOcy1ba9EGn2GQ7ELK%2F-Mga5GIg_d-csHD8uhyc%2F-Mga5P_KhQHSnpREN2_S%2Fimage.png?alt=media\&token=f689f7f9-e729-4c72-a188-701a97492807)

This module is pretty self-explanatory. It assists us by dumping all network traffic generated by our clients. This module comes in very handy in case when we want to inspect our client's network traffic for some insecure traffic and possibly sniff out some passwords or files that were transferred.&#x20;

#### Demo

![](https://561482365-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdOcy1ba9EGn2GQ7ELK%2F-Mga5GIg_d-csHD8uhyc%2F-Mga5RQcQ-qOjhTSbtcd%2Fimage.png?alt=media\&token=3f15ee24-5e5c-4db8-9dcc-f6ad676d0007)



* Hit start and we'll be running

![](https://561482365-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdOcy1ba9EGn2GQ7ELK%2F-Mga5GIg_d-csHD8uhyc%2F-Mga5TpIR0H5yruRAyPp%2Fimage.png?alt=media\&token=7e732a01-fa84-4d17-b5dc-7ccf4b1d82f4)

* Once done, hit stop and download the capture for analysis

![](https://561482365-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdOcy1ba9EGn2GQ7ELK%2F-Mga5GIg_d-csHD8uhyc%2F-Mga5Zfic1UisXEM2kHi%2Fimage.png?alt=media\&token=027ba53a-a8f4-4cbd-b31a-c16656df2567)

![](https://561482365-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdOcy1ba9EGn2GQ7ELK%2F-Mga5GIg_d-csHD8uhyc%2F-Mga5kWDfyWbAQHx9mKm%2Fimage.png?alt=media\&token=21f18092-ea56-4f48-bee6-311f65d4800d)

#### Analysis

We can simply open the capture up with Wireshark and proceed with our analysis.

![](https://561482365-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdOcy1ba9EGn2GQ7ELK%2F-Mga5GIg_d-csHD8uhyc%2F-Mga5rElEdtiaWkGq-h3%2Fimage.png?alt=media\&token=e9bf116e-c0d6-4a0c-b4be-38cb9e4b21e9)

### DWall

![](https://561482365-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdOcy1ba9EGn2GQ7ELK%2F-Mga5GIg_d-csHD8uhyc%2F-Mga5tsyBD9xnkLcRzD6%2Fimage.png?alt=media\&token=2ac60aba-2cb5-487a-b990-d8cfc0aa8dc0)

DWall is similar to TCPdump, but it focuses on web! DWall display's Plaintext **HTTP** URLs, Cookies, POST DATA, and images from browsing clients. This has a similar issue to TCPdump. We will only be able to see insecure traffic!

#### Demo

![](https://561482365-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdOcy1ba9EGn2GQ7ELK%2F-Mga5GIg_d-csHD8uhyc%2F-Mga5vfkF6LNgNpvdloe%2Fimage.png?alt=media\&token=0da1bbcc-2cee-4a46-b8e0-db2901d6cb88)

* Hit start listening to start capturing web traffic from clients

![](https://561482365-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdOcy1ba9EGn2GQ7ELK%2F-Mga5GIg_d-csHD8uhyc%2F-Mga6-SVLTwwx0_uizRf%2Fimage.png?alt=media\&token=b8e7e325-fe99-4631-ba9a-55e7984386e0)

* As the Clients browse insecure sites, their data would be relayed to us on this page (as shown below)

**Client View**

![](https://561482365-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdOcy1ba9EGn2GQ7ELK%2F-Mga5GIg_d-csHD8uhyc%2F-Mga64GjkMQNFnkX7mrb%2Fimage.png?alt=media\&token=b9a75df4-dd70-40f0-bad9-b0d14de5a1d3)

**Wifi 🍍 View**

![](https://561482365-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdOcy1ba9EGn2GQ7ELK%2F-Mga5GIg_d-csHD8uhyc%2F-Mga67kQq8ancBk4nPDQ%2Fimage.png?alt=media\&token=e6fae5f6-bfe8-461b-9f34-f0580bee44e5)

### DNSMasq Spoof

![](https://561482365-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdOcy1ba9EGn2GQ7ELK%2F-Mga5GIg_d-csHD8uhyc%2F-Mga6CcFtQtC-IAvnXZF%2Fimage.png?alt=media\&token=37a29aed-52f7-48e9-8eaa-3fc989698db5)

This module forges replies to arbitrary DNS queries using DNSMasq.

#### Demo

![](https://561482365-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdOcy1ba9EGn2GQ7ELK%2F-Mga5GIg_d-csHD8uhyc%2F-Mga6GGWZarg4_KQrcSX%2Fimage.png?alt=media\&token=82e05743-b24b-4cd3-811c-9a5374b85f69)

* Hit Start to run the spoofer

![](https://561482365-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdOcy1ba9EGn2GQ7ELK%2F-Mga5GIg_d-csHD8uhyc%2F-Mga6NMFYf3xXmp7E-cZ%2Fimage.png?alt=media\&token=28dfd404-0237-4277-98bb-c3523522c6d5)

* Add a custom host entry to redirect hosts

![](https://561482365-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdOcy1ba9EGn2GQ7ELK%2F-Mga5GIg_d-csHD8uhyc%2F-Mga6Pb0hOvCN0gxvbou%2Fimage.png?alt=media\&token=82158265-d054-41a9-8f59-1a4d4c0b2415)

I'll be adding a fake entry for `example.com`. `example.com` is an actual site that people can access on the web. The real site looks like the following:

![](https://561482365-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdOcy1ba9EGn2GQ7ELK%2F-Mga5GIg_d-csHD8uhyc%2F-Mga6S4JwNG98-Q9Y4Dv%2Fimage.png?alt=media\&token=92818e54-0b33-41ed-8424-94845ce2aac5)

Now that we have pointed it to a different IP address containing our "evil portal", let's see what happens to the clients connected to our rogue network.

#### Live DNS Attack

Here we can see one of the rogue network's clients navigating to `example.com` but its totally different from what the actual website is. This shows that an attacker/man-in-the-middle is able to easily reply falsely to your DNS queries and this is highly likely to end up as a phishing attack.

{% embed url="https://gfycat.com/repentantquarrelsomeanemonecrab" %}

## Conclusion

Those were some of the ways the community modules could be used in a lab environment!
