'Recon AP & Client' does not produce any results

Device: NANO
Type: Bug
Status: Closed

Nothing is produced after "AP & Client" scan from under Recon.

ethernet adapter list follows:

root@Pineapple:~# ifconfig
br-lan Link encap:Ethernet HWaddr xxxxxxxxxx
eth0 Link encap:Ethernet HWaddr xxxxxxxxxx
lo Link encap:Local Loopback
wlan0 Link encap:Ethernet HWaddr xxxxxxxxxx
>>> wlan0-1 Link encap:Ethernet HWaddr xxxxxxxxxx

So in order to fix this hardcoded clientInterface at /pineapple/modules/Recon/api/module.php should be replaced to wlan0-1 like:
—— from
class Recon extends SystemModule
private $apInterface = "wlan0";
private $clientInterface = "wlan1";
—— to
class Recon extends SystemModule
private $apInterface = "wlan0";
private $clientInterface = "wlan0-1";

This variable should not be hardcoded but located at runtime. One of the solutions: "ifconfig |grep wlan|tail -n 1|grep -o '^[^ ]*'"


2016/07/14 05:47
Also after "wlan1mon", "wlan1" replacement to "wlan0-1mon", "wlan0" in:
modules/Networking/api/module.php: if ($interface == "'wlan1mon'") {
modules/PineAP/api/PineAPHelper.php: $iface = exec('/sbin/ifconfig -a | grep wlan1mon | head -n1 | awk \'{print $1}\'');
modules/PineAP/api/PineAPHelper.php: exec('airmon-ng start wlan1');
modules/PineAP/api/PineAPHelper.php: $iface = 'wlan1mon';
modules/PineAP/executable/executable: os.system("if ! ifconfig -a | grep -q wlan1mon; then airmon-ng start wlan1 &>/dev/null; fi;")
modules/PineAP/executable/executable: os.system("echo 'pinejector wlan1mon'| at now &> /dev/null")

solved tons of issues.

Basically I got back my pineapple :)
2016/07/27 18:02

Wlan1 is the second interface and should be used for all monitor mode tasks. Wlan0-1 is the WPA2 management interface.
Recon mode is getting a re-write at the moment, and will be more reliable and detailed very soon.
2016/08/16 10:10
Thank you!

Add Comment:

Please log in to comment.