Jump to content
oddysseus

Problems with PineAP Daemon Starting

Recommended Posts

I recently received the Pineapple NANO for Christmas.  I am connecting it to a Kali VM on a macbook Pro.  Reading the forums around here, it seems that many people have had success doing things this way.  I have been able to get the pineapple to successfully connect and successfully configure using the wp6.sh script.  It connects to the internet and I have no problems there.

I am able to use the pineapple for recon and pull a list of all access points in the area.  I can add them to my SSID Pool with no issues.  I am running Firmware version 1.1.3

Where I am having issues is when starting the PineAP Daemon.  I want to be able to spoof an access point, but when I attempt to start the PineAP Daemon by pressing the "Switch" button, it never turns to "Enabled" as I see in videos.  I press the button, receive the Pineapple loading icon for approximately 5 seconds and then it goes back to showing the PineAP Daemon as disabled.

Doing some reading it looks like the pineapple should have a wlan0 and a wlan1.  wlan1 runs recon while wlan0 runs the access point. 

My pineapple is not showing a wlan0 interface.  The interfaces I am seeing are below.

br-lan
eth0
lo
wlan1mon

How can I get PineAP working.  I would like to be able to spoof access points so clients can join the pineapple.

Thanks

Share this post


Link to post
Share on other sites
1 hour ago, Teabot 5000 said:

Try connecting to the pineapple over SSH and running "ifconfig wlan0 up"

 

Tried and received "No such device".  Is there a hardware button somewhere to turn the antenna on?  I know when setting it up for the first time it tells you to press the reset button once to turn it off during setup.

Share this post


Link to post
Share on other sites

After it boots can you run "iwconfig" and "dmesg" and see if there's any sign of wlan0? If it's not detected there could be a hardware issue or maybe a firmware issue. dmesg should show any errors that are happpening with the interface. You could try updating with the latest firmware and see if that makes any difference

Share this post


Link to post
Share on other sites

how are you powering the pineapple?  it needs a 5v2a power supply, anything less it acts funny.

Share this post


Link to post
Share on other sites

I have the pineapple plugged into the usb Y cable provided and the usb Y cable plugged in to on of my machines usb ports.

I have also tried plugging the other end of the y into a second usb port on my machine.  No change.  Here are the logs.

root@Pineapple:~# iwconfig
lo        no wireless extensions.
 
wlan1     IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm  
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
         
eth0      no wireless extensions.
 
br-lan    no wireless extensions.
 
root@Pineapple:~# dmesg
[    0.000000] Linux version 3.18.36 (openwrt@651d0feeed27) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r49403) ) #40 Fri Oct 28 05:42:22 UTC 2016
[    0.000000] MyLoader: sysp=8a14b024, boardp=44b65156, parts=b69f8d32
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR9330 rev 1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x03ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x03ffffff]
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x03ffffff]
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 80355cf0, node_mem_map 81000000
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line:  board=PINEAPPLE-NANO  console=ttyATH0,115200 rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 60944K/65536K available (2467K kernel code, 126K rwdata, 528K rodata, 260K init, 188K bss, 4592K reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
[    0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.080000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.100000] NET: Registered protocol family 16
[    0.100000] MIPS: machine is WiFi Pineapple NANO
[    0.380000] Switched to clocksource MIPS
[    0.380000] NET: Registered protocol family 2
[    0.390000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.390000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.400000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.400000] TCP: reno registered
[    0.410000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.410000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.420000] NET: Registered protocol family 1
[    0.420000] PCI: CLS 0 bytes, default 32
[    0.420000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.440000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.440000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.450000] msgmni has been set to 119
[    0.460000] io scheduler noop registered
[    0.460000] io scheduler deadline registered (default)
[    0.470000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.470000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a AR933X UART
[    0.480000] console [ttyATH0] enabled
[    0.490000] bootconsole [early0] disabled
[    0.500000] m25p80 spi0.0: found mx25l12805d, expected m25p80
[    0.500000] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.520000] 5 tp-link partitions found on MTD device spi0.0
[    0.520000] Creating 5 MTD partitions on "spi0.0":
[    0.520000] 0x000000000000-0x000000020000 : "u-boot"
[    0.530000] 0x000000020000-0x000000134f84 : "kernel"
[    0.540000] 0x000000134f84-0x000000ff0000 : "rootfs"
[    0.540000] mtd: device 2 (rootfs) set to be root filesystem
[    0.550000] 1 squashfs-split partitions found on MTD device rootfs
[    0.550000] 0x000000dc0000-0x000000ff0000 : "rootfs_data"
[    0.560000] 0x000000ff0000-0x000001000000 : "art"
[    0.560000] 0x000000020000-0x000000ff0000 : "firmware"
[    0.590000] libphy: ag71xx_mdio: probed
[    1.190000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
[    1.200000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    1.200000] TCP: cubic registered
[    1.200000] NET: Registered protocol family 17
[    1.210000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    1.220000] 8021q: 802.1Q VLAN Support v1.8
[    1.230000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    1.240000] Freeing unused kernel memory: 260K (8036f000 - 803b0000)
[    2.620000] init: Console is alive
[    2.620000] init: - watchdog -
[    5.290000] usbcore: registered new interface driver usbfs
[    5.300000] usbcore: registered new interface driver hub
[    5.300000] usbcore: registered new device driver usb
[    5.360000] SCSI subsystem initialized
[    5.370000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.380000] ehci-platform: EHCI generic platform driver
[    5.380000] ehci-platform ehci-platform: EHCI Host Controller
[    5.390000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[    5.400000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[    5.420000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[    5.420000] hub 1-0:1.0: USB hub found
[    5.420000] hub 1-0:1.0: 1 port detected
[    5.430000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.440000] ohci-platform: OHCI generic platform driver
[    5.450000] uhci_hcd: USB Universal Host Controller Interface driver
[    5.460000] usbcore: registered new interface driver usb-storage
[    5.690000] init: - preinit -
[    5.800000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    6.390000] random: procd urandom read with 10 bits of entropy available
[    6.390000] hub 1-1:1.0: USB hub found
[    6.400000] hub 1-1:1.0: 4 ports detected
[    6.670000] mount_root: loading kmods from internal overlay
[    6.970000] usb 1-1.1: new high-speed USB device number 3 using ehci-platform
[    7.080000] jffs2: notice: (325) jffs2_build_xattr_subsystem: complete building xattr subsystem, 6 of xdatum (0 unchecked, 6 orphan) and 6 of xref (0 dead, 6 orphan) found.
[    7.100000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[    7.110000] block: extroot: not configured
[    7.170000] jffs2: notice: (322) jffs2_build_xattr_subsystem: complete building xattr subsystem, 6 of xdatum (0 unchecked, 6 orphan) and 6 of xref (0 dead, 6 orphan) found.
[    7.250000] usb 1-1.2: new high-speed USB device number 4 using ehci-platform
[    7.330000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[    7.340000] block: extroot: not configured
[    7.340000] mount_root: switching to jffs2 overlay
[    7.380000] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    7.400000] scsi host0: usb-storage 1-1.2:1.0
[    7.420000] procd: - early -
[    7.420000] procd: - watchdog -
[    8.320000] procd: - ubus -
[    8.440000] scsi 0:0:0:0: Direct-Access     Generic  STORAGE DEVICE   0933 PQ: 0 ANSI: 6
[    8.450000] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    9.330000] procd: - init -
[   11.690000] Loading modules backported from Linux version v4.4-rc5-1913-gc8fdf68
[   11.690000] Backport generated by backports.git backports-20151218-0-g2f58d9d
[   11.850000] ath: EEPROM regdomain: 0x0
[   11.850000] ath: EEPROM indicates default country code should be used
[   11.850000] ath: doing EEPROM country->regdmn map search
[   11.850000] ath: country maps to regdmn code: 0x3a
[   11.850000] ath: Country alpha2 being used: US
[   11.850000] ath: Regpair used: 0x3a
[   11.860000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   11.860000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[   11.880000] usb 1-1.1: ath9k_htc: Firmware ath9k_htc/htc_9271-1.4.0.fw requested
[   11.880000] usbcore: registered new interface driver ath9k_htc
[   12.020000] RPC: Registered named UNIX socket transport module.
[   12.030000] RPC: Registered udp transport module.
[   12.030000] RPC: Registered tcp transport module.
[   12.040000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   12.090000] tun: Universal TUN/TAP device driver, 1.6
[   12.100000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[   12.150000] usbcore: registered new interface driver rt2800usb
[   12.160000] usbcore: registered new interface driver rtl8187
[   12.190000] usbcore: registered new interface driver rtl8192cu
[   12.260000] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   12.280000] usbcore: registered new interface driver cdc_acm
[   12.280000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[   12.300000] usbcore: registered new interface driver cdc_wdm
[   12.330000] nf_conntrack version 0.5.0 (956 buckets, 3824 max)
[   12.370000] usbcore: registered new interface driver ums-alauda
[   12.380000] usbcore: registered new interface driver ums-cypress
[   12.380000] usbcore: registered new interface driver ums-datafab
[   12.390000] usbcore: registered new interface driver ums-freecom
[   12.400000] usbcore: registered new interface driver ums-isd200
[   12.410000] usbcore: registered new interface driver ums-jumpshot
[   12.410000] usbcore: registered new interface driver ums-karma
[   12.420000] usbcore: registered new interface driver ums-sddr09
[   12.430000] usbcore: registered new interface driver ums-sddr55
[   12.440000] usbcore: registered new interface driver ums-usbat
[   12.460000] usbcore: registered new interface driver usbserial
[   12.460000] usbcore: registered new interface driver usbserial_generic
[   12.470000] usbserial: USB Serial support registered for generic
[   12.530000] xt_time: kernel timezone is -0000
[   12.530000] usbcore: registered new interface driver asix
[   12.540000] usbcore: registered new interface driver ax88179_178a
[   12.550000] usbcore: registered new interface driver cdc_ether
[   12.560000] usb 1-1.1: ath9k_htc: Transferred FW: ath9k_htc/htc_9271-1.4.0.fw, size: 51008
[   12.570000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.600000] usbcore: registered new interface driver pl2303
[   12.600000] usbserial: USB Serial support registered for pl2303
[   12.610000] PPP generic driver version 2.4.2
[   12.620000] NET: Registered protocol family 24
[   12.630000] usbcore: registered new interface driver qmi_wwan
[   12.640000] usbcore: registered new interface driver rndis_host
[   12.650000] usbcore: registered new interface driver sierra_net
[   12.660000] usbcore: registered new interface driver option
[   12.670000] usbserial: USB Serial support registered for GSM modem (1-port)
[   12.810000] ath9k_htc 1-1.1:1.0: ath9k_htc: HTC initialized with 33 credits
[   13.050000] ath9k_htc 1-1.1:1.0: ath9k_htc: FW Version: 1.4
[   13.050000] ath9k_htc 1-1.1:1.0: FW RMW support: On
[   13.060000] ath: EEPROM regdomain: 0x0
[   13.060000] ath: EEPROM indicates default country code should be used
[   13.060000] ath: doing EEPROM country->regdmn map search
[   13.060000] ath: country maps to regdmn code: 0x3a
[   13.060000] ath: Country alpha2 being used: US
[   13.060000] ath: Regpair used: 0x3a
[   13.070000] ieee80211 phy1: Atheros AR9271 Rev:1
[   22.450000] device eth0 entered promiscuous mode
[   25.070000] eth0: link up (100Mbps/Full duplex)
[   26.920000] br-lan: port 1(eth0) entered forwarding state
[   26.930000] br-lan: port 1(eth0) entered forwarding state
[   28.930000] br-lan: port 1(eth0) entered forwarding state

[   57.890000] random: nonblocking pool is initialized

 

Share this post


Link to post
Share on other sites
2 hours ago, oddysseus said:

I see no mention of wlan0 in any logs.  Does this mean that I received a device that is potentially defective?  

There is something about phy0, though:

 
[   11.860000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   11.860000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[   11.880000] usb 1-1.1: ath9k_htc: Firmware ath9k_htc/htc_9271-1.4.0.fw requested

Try a factory reset if you haven't already.

 

Also post the contents of /etc/config/wireless and logread

Edited by Foxtrot

Share this post


Link to post
Share on other sites

After doing a factory reset wlan0 appeared.  However I had to run the wp6.sh script so that the pineapple can get an internet connection to the pineapple to download modules.  After running the wp6.sh script using the guided option, wlan0 is now gone again.  Not sure why running the script kills wlan0.

Share this post


Link to post
Share on other sites

I"m setting things up on a kali vm.  Hardware wise I'm on a macbook pro 2016.  I figured it would be easier setting it up in a vm versus doing it on a mac.

Share this post


Link to post
Share on other sites

Try this script instead of the wp6 one

#!/bin/bash

IFACE_IN=$1
IFACE_EX=$2
GW=$3

ifconfig $IFACE_IN up
ifconfig $IFACE_IN 172.16.42.42 netmask 255.255.255.0

route del default gw Pineapple.lan
route add default gw $GW netmask 0.0.0.0

echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -t nat -A POSTROUTING -o $IFACE_EX -j MASQUERADE
iptables -A FORWARD -i $IFACE_EX -o $IFACE_IN -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i $IFACE_IN -o $IFACE_EX -j ACCEPT

Run that about 10 seconds after connecting the Pineapple. Use like "sudo ./script <pineapple_interface> <computer_wifi_interface> <wifi_router_address>"

I wrote that to give my nano internet access through my laptop. It basically turns the laptop into a NAT box for the nano. The script doesn't do anything to the pineapple so hopefully it'll work for you without causing any issues.

Share this post


Link to post
Share on other sites

I recently bought the Wifi Pineapple nano and am facing the same issue. I was able to setup my pineapple and install the latest firmware which is 2.1.2, every time i try to scan using recon it shows a blue box saying "Notice: In order to use recon, PineAP must be enabled" with a button below saying "Start PineAP" when i click it the notice would disappear but when i try to start the scan it reappears. I have enabled "Autostart PineAP" but am not able to enable PineAP Daemon, and below the "Save PineAP settings" button, a blue box says "Notice: In order to use some of these features, PineAP must first be enabled" and I am not able to scan or create a SSID pool. Any help would be greatly appreciated. 

Share this post


Link to post
Share on other sites
10 minutes ago, Proclus said:

Any help would be greatly appreciated. 

I would just do a firmware recovery (not factory reset) to ensure its comletly reset/factory fresh.https://www.wifipineapple.com/pages/faq

Also, you are using it with an SD card inserted right?

Edited by Just_a_User

Share this post


Link to post
Share on other sites
27 minutes ago, Proclus said:

No I am not using an SD card with it but am using it with my laptop running Windows 10.

Then its possibly full, the nano really should be used with a micro SD card in it and set up correctly.

If you can connect via SSH and run "df -h" you will see if all the storage is full.

Edited by Just_a_User

Share this post


Link to post
Share on other sites

I have connected a 16GB SD card to it but it still is giving me the same problem as I stated before. 

Share this post


Link to post
Share on other sites
2 hours ago, Proclus said:

I have connected a 16GB SD card to it but it still is giving me the same problem as I stated before. 

did you format the card using the USB dropdown on the Advanced page? also its prob going to need resetting to clear the data that filled it up.

Edited by Just_a_User

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...