# 🍍📟 Payloads: Hello World - WiFi Pineapple Pager

Source: https://www.youtube.com/watch?v=nO25wR0BkGw
Recap page: https://rapidrecap.app/video/nO25wR0BkGw
Generated: 2025-12-19T18:32:12.703+00:00

---
## Quick Overview

The video demonstrates how to create and execute a custom payload for the WiFi Pineapple Pager using Bash and Duckyscript, showing that payloads must reside in a specific directory structure (/root/payloads/user/category/unique_name/payload.sh) and how to verify functionality by logging output and triggering an alert.

**Key Points:**
- Custom payloads for the WiFi Pineapple Pager are shell scripts (e.g., payload.sh) placed in the directory structure /root/payloads/user/category/unique_name/
- The presenter created a 'HelloWorld' payload within the 'example' category under the 'user' directory to test the concept.
- The sample payload included metadata fields like Title, Description, Author (Hak5Darren), and Version (1), and a 'LOG "Hello, World!"' statement.
- The payload was made executable using 'chmod +x payload.sh' after creation.
- Executing the payload successfully produced the 'Hello, World!' log message on the Pager screen, confirming the payload structure works.
- The 'ALERT_RINGTONE' command allows payloads to raise a modal alert with a custom message, demonstrating event triggering based on payload execution.
- The presenter encourages community involvement via https://community.hak5.org for sharing creative payload ideas.

![Screenshot at 00:19: The terminal displays the creation of a 'HelloWorld' payload script, illustrating the fundamental structure and metadata required for a functional Pager payload.](https://ss.rapidrecap.app/screens/nO25wR0BkGw/00-00-19.png)

**Context:** This tutorial focuses on extending the functionality of the WiFi Pineapple Pager device, a hardware tool used for wireless network auditing. The core concept revolves around creating and deploying custom 'payloads'—small executable scripts—that leverage the device's underlying Linux foundation and specific scripting languages like Bash and Duckyscript, allowing users to automate tasks beyond the default firmware features.

## Detailed Analysis

The video walks through the process of creating a custom, executable payload for the WiFi Pineapple Pager. The presenter emphasizes that payloads are simple shell scripts, typically placed in the specific directory structure: /root/payloads/user/category/unique_name/payload.sh. The demonstration involves navigating to the /root/payloads/user directory, creating a new category directory named 'example', and then creating the payload script, 'payload.sh', inside a subdirectory named 'HelloWorld'. The script header includes necessary metadata fields: #!/bin/bash, Title, Description, Author, and Version. The core logic demonstrated is simple: logging a message using 'LOG "This is a log line"' and triggering an alert using 'ALERT "Hello, World!"'. After creating and saving the file using nano, the script is made executable via 'chmod +x payload.sh'. Upon running the payload on the Pager interface, the device successfully displayed the log message ('Starting Hello World', 'This is a log line', 'Payload Complete') and confirmed that the alert function works by popping up a modal alert displaying 'Hello, World!'. The presenter concludes by directing viewers to the Hak5 community forum for sharing new payload ideas.

### Payload Directory Structure

- Payloads reside in /root/payloads/user/category/unique_name/payload.sh
- The presenter creates a 'HelloWorld' payload in /root/payloads/user/example/HelloWorld/payload.sh
- Payloads must be executable.

### Payload Script Content

- The required script starts with #!/bin/bash
- Metadata fields like Title, Description, Author, and Version must be included
- The script demonstrates logging with LOG and triggering alerts with ALERT.

### Execution and Verification

- The script is made executable using chmod +x payload.sh
- Running the payload shows 'Starting Hello World' and 'Payload Complete' on the device screen
- The ALERT command successfully triggers a modal pop-up on the Pager interface.

### Available Commands

- The presenter lists numerous available commands by running 'ls
- grep "^A-Z"' in /usr/bin, showing functions like ALERT_RINGTONE, PINEAPPLE_MAC_FILTER_ADD, and various WIFI management commands.

![Screenshot at 00:02: Presenter holding up the yellow WiFi Pineapple Pager device.](https://ss.rapidrecap.app/screens/nO25wR0BkGw/00-00-02.png)
![Screenshot at 00:20: Terminal output showing the directory structure listing available payload directories: alerts, recon, user.](https://ss.rapidrecap.app/screens/nO25wR0BkGw/00-00-20.png)
![Screenshot at 03:53: Terminal session showing navigation into the payload structure and creation of the 'HelloWorld' directory.](https://ss.rapidrecap.app/screens/nO25wR0BkGw/00-03-53.png)
![Screenshot at 04:28: The 'payload.sh' script being edited in nano, showing the metadata section and the 'LOG "Hello, World!"' command.](https://ss.rapidrecap.app/screens/nO25wR0BkGw/00-04-28.png)
![Screenshot at 06:04: The Pager device displaying the successful execution output: 'Starting Hello World', 'This is a log line', and '\[+\] Payload Complete!'.](https://ss.rapidrecap.app/screens/nO25wR0BkGw/00-06-04.png)
