WiFi Pineapple NANO/TETRA Module API - Modules
ADVANCED
DESCRIPTION
The advanced module simplifies some more advanced processes like performing system upgrades and clearing system caches. For example, the following will clear the pineapple's caches:
Action | Description | Parameters |
---|---|---|
| Returns a JSON array of disk and memory usage | none |
| Clears system caches | none |
| Returns a list of USB devices connected ot the pineapple | none |
| Returns the contents of | none |
| Returns the contents of main.css | none |
| Overwrites |
|
| Overwrites the contents of main.css with a string |
|
| Fetches the list of upgrades and the description of each | none |
| Upgrades the pineapple to a specified firmare version (see output of |
|
| Tells whether a firmware download is complete or in progress and how many bytes have been downloaded | none |
| Upgrades using the image in /tmp/upgrade.bin | none |
| Returns the current firmware version on the pineapple | none |
CLIENTS
DESCRIPTION
The Clients module allows for the monitoring and management of connected clients. For example, the following would kick the client with the MAC address aa:bb:cc:dd:ee:ff
:
Action | Description | Parameters |
---|---|---|
| Returns a JSON array of connected clients | none |
| Kicks (disconnects) a connected client from the pineapple |
|
CONFIGURATION
DESCRIPTION
The configuration module allows for the modification of several pineapple configuration options such as timezone and landing page. The example below would set the landing page content to <b><i>Pineapples are yummy</i></b>
:
Action | Description | Parameters |
---|---|---|
| Retrieves the current timezone of the pineapple | none |
| Changes the pineapple's timezone |
|
| Gets the current landing page data | none |
| Changes the landing page content |
|
| Changes the password for the root user |
|
| Resets the pineapple (executes | none |
| Halts the pineapple | none |
| Reboots the pineapple | none |
| Shows whether the landing page is enabled or not | none |
| Enables the landing page | none |
| Disables the landing page | none |
DASHBOARD
DESCRIPTION
You can use the Dashboards API to return useful values such as CPU usage, total SSIDs, SSIDs discovered this session and uptime. For example, the following will get the bulletins:
Action | Description | Parameters |
---|---|---|
| Return an array containing | none |
| Return all landing page browser stats | none |
| Return bulletins | none |
FILTERS
DESCRIPTION
The filters module has API that will allow you manage all aspects of the Filter module externally, such as getting client data or adding clients. It is used like so:
Action | Description | Parameters |
---|---|---|
| Return an array of client filters. (Mode and Filters) | none |
| Return an array of SSID filters (Mode and Filters) | none |
| Toggle between whitelist and blacklist mode for client filtering | none |
| Toggle between whitelist and blacklist mode for SSID filtering | none |
| Add client to filter |
|
| Add SSID to filter |
|
| Remove client from filter |
|
| Remove SSID from filter |
|
LOGGING
DESCRIPTION
The Logging module provides easy access to the syslog, dmesg, PineAP and Reporting logs. To use these API functions, send your api request with the "module" set to "Logging":
Action | Description | Parameters |
---|---|---|
| Return the system log in full | none |
| Return the kernel log in full | none |
| Return the log from the Reporting module | none |
| Return the log from PineAP | none |
| Clear the PineAP log file | none |
| Return the location of the PineAP log | none |
| Set the location for PineAP logging |
|
MODULEMANAGER
DESCRIPTION
The Module Manager is responsible for installing, removing, and upgrading modules. It's API can be used to manage modules, as well as fetching the list of installed modules and getting available modules. To use them in your module, your request body would look like this:
Action | Description | Parameters |
---|---|---|
| Return an array of modules available for download | none |
| Return an array of modules currently installed | none |
| Download a specified module |
|
| Install a specified module |
|
| Remove a specified module |
|
| Check status of module download | none |
| Check status of module install | none |
| Check if the specified destination has the specified space free |
|
NETWORKING
DESCRIPTION
The Networking module API allows you to interface with the networking side of the WiFi Pineapple without having to write your own functions to manage interfaces, the DNS, and the routing table. As described above, you can use these actions in your own module like so:
Action | Description | Parameters |
---|---|---|
| Returns the routing table of the Pineapple | none |
| Restarts the DNS service on the Pineapple | none |
| Updates the routing table |
|
| Returns the hostname and ifconfig | none |
| Sets the hostname for the Pineapple |
|
| Resets the Wireless Configuration for the Pineapple | none |
| Returns an array of available network interfaces | none |
| Writes properties to the AP configuration |
|
| Returns an array of properties from the access point configuration. | none |
| Returns the MAC Addresses of each of the wireless interfaces | none |
| Sets the MAC address for a specified interface |
|
| Reset the specified interface's MAC address to the factory default. |
|
PINEAP
DESCRIPTION
The PineAP module provides an easy way to interface with the PineAP suite. For example, one might use the following to add an SSID to PineAP's pool:
Action | Description | Parameters |
---|---|---|
| Returns an array of the SSIDs in PineAP's pool | none |
| Clears the PineAP pool | none |
| Adds an SSID to the pool |
|
| Removes an SSID from the pool |
|
| Update PineAP's settings |
|
| Returns a dictionary with all the current PineAP settings | none |
| Deauth a list of clients from a station. Use this with caution. The misuse of this function may be illegal in some places.* |
|
| Enables PineAP | none |
| Disables PineAP | none |
| Makes the current configuration persist after reboots | none |
| Get a download link to the SSID pool (useful for client side modules) | none |
RECON
DESCRIPTION
The recon module allows for the detection of access points and clients within range of the pineapple. The following example would scan for nearby access points:
Action | Description | Parameters |
---|---|---|
| Starts a new scan |
|
| Get the status or results of a scan |
|
REPORTING
DESCRIPTION
The reporting module allows you to control the automatic reporting features of the pineapple. For example, the following would return report contents:
Action | Description | Parameters |
---|---|---|
| Gets the current reporting configuration | none |
| Gets the report contents | none |
| Gets the current email configuration for reporting | none |
| Changes the report configuration |
|
| Set which items get reported |
|
| Set the email configuration |
|
TRACKING
DESCRIPTION
Tracking allows you to create custom scripts for tracking clients. The following example would set a new tracking script:
Action | Description | Parameters |
---|---|---|
| Gets the current tracking script contents | none |
| Sets the current tracking script contents |
|
| Gets the current list of clients being tracked | none |
| Adds a MAC to tracking |
|
| Removes a MAC from tracking |
|
Last updated