Working with PineAP from the CLI
PineAP may be configured by the command line in addition to the web UI. This may be useful if you wish to script your WiFi Pineapple or text process log results.
As an example, we will list directed probe requests from nearby stations:
1
/etc/init.d/pineapd start
2
/usr/bin/pineap /tmp/pineap.conf logging on
3
/usr/bin/pineap /tmp/pineap.conf run_scan 0 2
4
/usr/bin/pineap /tmp/pineap.conf list_probes
Copied!
This will start PineAP, enable logging, run a continuous scan on both 2.4 and 5 GHz frequencies and list probe requests. The output may be parsed with standard text processing tools.
Keep in mind that run_scan accepts two arguments, duration (in seconds) and frequencies. In the example above, duration is set to 0 for a continuous scan, and frequencies is set to 2 for both 2.4 GHz and 5 GHz bands. This example is specific to the WiFi Pineapple TETRA, which features dual-band radios. The run_scan command would need to be modified for the single-band WiFi Pineapple NANO as run_scan 0 0.
For additional information, see the pineap CLI help for a list of commands
1
/usr/bin/pineap help
Copied!
1
Commands:
2
help
3
version
4
karma [on/off]
5
add_ssid [ssid]
6
add_ssid_file [file with list of ssids]
7
del_ssid [ssid]
8
del_ssid_file [file with list of ssids]
9
list_ssids
10
list_probes
11
capture_ssids [on/off]
12
connect_notifications [on/off]
13
disconnect_notifications [on/off]
14
beacon_responses [on/off]
15
broadcast_pool [on/off]
16
ssid_filter [black/white]
17
mac_filter [black/white]
18
beacon_interval [LOW/NORMAL/AGGRESSIVE]
19
beacon_response_interval [LOW/NORMAL/AGGRESSIVE]
20
set_source [mac]
21
set_target [mac]
22
logging [on/off]
23
deauth [mac] [bssid] [channel] [multiplier]
24
ap_channel [channel]
25
run_scan [duration in sec] [frequencies (0 for 2GHz, 1 for 5GHz, 2 for both)]
26
pause_scan
27
unpause_scan
28
stop_scan
29
clear_ssids
30
inject [file] [channel] [multiplier] [delay]
31
get_status
32
pause (channel hopping)
33
unpause (channel hopping)
34
handshake_capture_start [bssid] [channel]
35
handshake_capture_stop
Copied!
Copy link