Jump to content

MANA Attack, for the Pineapple.


Zylla

Recommended Posts

I'm fairly new to this, so sorry in advance for the new blood questions:

I can't seem to see the directory /sd when I tried the fixes you mentioned above and I am getting some opkg download errors.

Thanks in advance for your help!

Quote

root@Pineapple:~# bash /pineapple/modules/ManaToolkit/scripts/dependencies.sh in
stall sd
--2017-05-12 15:46:40--  https://github.com/adde88/hostapd-mana-openwrt/raw/master/bin/ar71xx/packages/base/asleap_2.2-1_ar71xx.ipk
Resolving github.com... failed: Unknown host.
wget: unable to resolve host address 'github.com'
--2017-05-12 15:46:41--  https://github.com/adde88/hostapd-mana-openwrt/raw/master/bin/ar71xx/packages/base/hostapd-mana_2.6-3_ar71xx.ipk
Resolving github.com... failed: Unknown host.
wget: unable to resolve host address 'github.com'
Downloading https://www.wifipineapple.com/nano/packages/Packages.gz.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/base/Packages.gz.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/Packages.gz.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/management/Packages.gz.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/routing/Packages.gz.
Collected errors:
 * opkg_download: Failed to download https://www.wifipineapple.com/nano/packages/Packages.gz, wget returned 4.
 * opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/base/Packages.gz, wget returned 4.
 * opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/Packages.gz, wget returned 4.
 * opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/management/Packages.gz, wget returned 4.
 * opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/routing/Packages.gz, wget returned 4.
Collected errors:
 * resolve_pkg_dest_list: Unknown dest name: `sd'.
ln: /etc/mana-toolkit: File exists
cp: can't stat '/etc/mana-toolkit/hostapd-mana.conf': No such file or directory
/pineapple/modules/ManaToolkit/scripts/dependencies.sh: line 53: /etc/init.d/stunnel: No such file or directory
/pineapple/modules/ManaToolkit/scripts/dependencies.sh: line 54: /etc/init.d/stunnel: No such file or directory

 

 

Link to comment
Share on other sites

  • Replies 445
  • Created
  • Last Reply
On 12.5.2017 at 5:51 PM, HotSenpai said:

I can't seem to see the directory /sd when I tried the fixes you mentioned above and I am getting some opkg download errors.

 

What fixes specifically are you talking about?
It also looks like your Pineapple don't have internet access, therefore it cannot reach github.com to download the packages. (Make sure you are sharing your internet to the Nano)
Are you using a SD-card or a USB-stick? Since you said that you are unable to find the /sd directory

Link to comment
Share on other sites

  • 2 weeks later...
On 4/23/2017 at 7:34 AM, kbeflo said:

1. Remove sdcard

2. Format thumb drive to ext4 on your computer

3. Plug the thumb drive to the Pineapple

4. fdisk -l

5. Check if your thumb drive is listed

6. mount -t ext4 /dev/sdb1 /sd/

root@Pineapple:~# fdisk -l

Disk /dev/mtdblock0: 0 MB, 131072 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock0 doesn't contain a valid partition table

Disk /dev/mtdblock1: 1 MB, 1134080 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock1 doesn't contain a valid partition table

Disk /dev/mtdblock2: 15 MB, 15446016 bytes
255 heads, 63 sectors/track, 1 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock2 doesn't contain a valid partition table

Disk /dev/mtdblock3: 2 MB, 2293760 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock3 doesn't contain a valid partition table

Disk /dev/mtdblock4: 0 MB, 65536 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock4 doesn't contain a valid partition table

Disk /dev/mtdblock5: 16 MB, 16580608 bytes
255 heads, 63 sectors/track, 2 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock5 doesn't contain a valid partition table

Disk /dev/sdb: 8178 MB, 8178892800 bytes
108 heads, 38 sectors/track, 3892 cylinders
Units = cylinders of 4104 * 512 = 2101248 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sdb1               1        3893     7986176  83 Linux
root@Pineapple:~# mount -t ext4 /dev/sdb1 /sd/
mount: mounting /dev/sdb1 on /sd/ failed: No such file or directory
root@Pineapple:~#

 

I've been working on this and searching through the this thread quite a bit. Finally started seeing the posts that no matter what type of card you are using it wont be able to handle the installation. So I've got my USB stick formated to ext4 but when I follow those directions this is all I get. I would imagine its something dumb that I'm doing wrong but I just can't see it. Anyone have insight?

Link to comment
Share on other sites

12 hours ago, kbeflo said:

mkdir /sd/

Thanks for the response, I attempted that but it says the file exists. I modified the fstab file like I saw up above but that doesn't seem to help either. If I try

mount -t ext4 /dev/sdb1 /sd I still get No such file or directory

cd /sd will take me to the directory but I've also tried rm -r /sd and recreating it

fdisk -l still shows the USB on /dev/sdb1

   Device Boot      Start         End      Blocks  Id System
/dev/sdb1               1        3893     7986176  83 Linux

Heres my fstab 

config 'global'
    option    anon_swap    '0'
    option    anon_mount    '0'
    option    auto_swap    '1'
    option    auto_mount    '1'
    option    delay_root    '5'
    option    check_fs    '0'

config 'mount'
    option    target        '/sd'
    option    device        '/dev/sdb1'
    option    fstype        'auto'
    option    options        'rw,sync'
    option    enabled        '1'

Is it possible to move these files to the SD card with say an adapter or something? I was reading above that it's pointless if you have to use the USB to install to. So does that mean it can be installed successfully but cant function as intended? If that's the case I have a raspi pi collecting dust I'd rather try to get working.

 

Link to comment
Share on other sites

59 minutes ago, KDWIP said:

Is it possible to move these files to the SD card with say an adapter or something? I was reading above that it's pointless if you have to use the USB to install to. So does that mean it can be installed successfully but cant function as intended? If that's the case I have a raspi pi collecting dust I'd rather try to get working.

Installation on a SD-card seems to "not always be working." 
I'm actually not 100% sure if everyone will experience the kernel-bug, but i'm fairly certain that they will.
I therefore removed my sd-card totally, and used a memory-stick mounted as /sd/

It seems like you're doing everything correctly.
Like @kbeflo i was going to suggest that you try creatig the /sd dir.
But it looks like that didn't work. Which is a bit strange.
Also, you should create a swap-partition. 

Perhaps try a factory-reset? :)

Link to comment
Share on other sites

Just now, Zylla said:

Installation on a SD-card seems to "not always be working." 
I'm actually not 100% sure if everyone will experience the kernel-bug, but i'm fairly certain that they will.
I therefore removed my sd-card totally, and used a memory-stick mounted as /sd/

It seems like you're doing everything correctly.
Like @kbeflo i was going to suggest that you try creatig the /sd dir.
But it looks like that didn't work. Which is a bit strange.
Also, you should create a swap-partition. 

Perhaps try a factory-reset? :)

K, I'll give it a shot. Also is git not suppose to work on the nano? I see it all over guides but it just throws me an error like the command doesn't exist. opkg install git-all doesn't seem to make things any better.

Link to comment
Share on other sites

10 minutes ago, KDWIP said:

K, I'll give it a shot. Also is git not suppose to work on the nano? I see it all over guides but it just throws me an error like the command doesn't exist. opkg install git-all doesn't seem to make things any better.

Git works perfectly on the Nano and Tetra.
opkg install git git-http --dest sd

Link to comment
Share on other sites

6 minutes ago, Zylla said:

Git works perfectly on the Nano and Tetra.
opkg install git git-http --dest sd

Ah that's what I was jacking up. My linux is so rusty and I never seem to have time to keep at it. I appreciate you guys taking the time to respond to me.

Link to comment
Share on other sites

Finally got it to go, must of been my formatting on the USB drive. Had to run a mkfs.ext4 /dev/sdb1 to get it to work. Once I did that and rebooted it mounted automatically. Just waiting for the install to finish now. Seems to take around an hour. Is this normal? I was also thinking about trying an SD adapter to the USB port to see if it will install any differently but I doubt I'm the first person to think of that.  

 

Link to comment
Share on other sites

14 minutes ago, KDWIP said:

Finally got it to go, must of been my formatting on the USB drive. Had to run a mkfs.ext4 /dev/sdb1 to get it to work. Once I did that and rebooted it mounted automatically. Just waiting for the install to finish now. Seems to take around an hour. Is this normal? I was also thinking about trying an SD adapter to the USB port to see if it will install any differently but I doubt I'm the first person to think of that.  

 

That sd-adapter on the usb-port could actually work, depending on where this bug is exactly, and depending on the chipset of your sd-card reader.
If that adapter uses the same "kernel-drivers" as the embedded one i can guarantee that it willl be the same.
If it uses another driver it gets more interesting. But i'm de-railing a bit. (It could be worth testing to debug this sd-card issue)


If it where me i'd just use a normal memory-stick. Installation on that takes a couple of minutes, which it also should on a normal sd-card installation without any bugs.
To check if you are getting any of these bugs while installing on a sd-card, just type dmesg in the terminal after the install.
If any bugs are happening it should show-up in the output.

Link to comment
Share on other sites

1 hour ago, Zylla said:

That sd-adapter on the usb-port could actually work, depending on where this bug is exactly, and depending on the chipset of your sd-card reader.
If that adapter uses the same "kernel-drivers" as the embedded one i can guarantee that it willl be the same.
If it uses another driver it gets more interesting. But i'm de-railing a bit. (It could be worth testing to debug this sd-card issue)


If it where me i'd just use a normal memory-stick. Installation on that takes a couple of minutes, which it also should on a normal sd-card installation without any bugs.
To check if you are getting any of these bugs while installing on a sd-card, just type dmesg in the terminal after the install.
If any bugs are happening it should show-up in the output.

This is what it reads my adapter as
 

Bus 001 Device 005: ID 05e3:0723 Genesys Logic, Inc. GL827L SD/MMC/MS Flash Card Reader

I can get it to mount and it will display

 > /dev/sdb1 on /sd type ext4 (rw,sync,relatime,data=ordered)

But then after I try to install it will fail saying read only and if I do a mount again it will show

 > /dev/sdb1 on /sd type ext4 (ro,sync,relatime,data=ordered)

There isn't much to this adapter, no switch or anything for read only. Tried a dmesg but its just been sitting there not reporting.

Ran it again to get the dmesg

[    7.350000] block: extroot: not configured
[    7.350000] mount_root: switching to jffs2 overlay
[    7.410000] procd: - early -
[    7.410000] procd: - watchdog -
[    8.140000] procd: - ubus -
[    9.160000] procd: - init -
[   12.070000] usb 1-1.1: device descriptor read/64, error -145
[   12.430000] usb 1-1.2: new high-speed USB device number 4 using ehci-platform
[   12.550000] Loading modules backported from Linux version v4.4-rc5-1913-gc8fd                                                                                                                                                             f68
[   12.550000] Backport generated by backports.git backports-20151218-0-g2f58d9d
[   12.570000] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[   12.600000] scsi host0: usb-storage 1-1.2:1.0
[   12.690000] usb 1-1.3: new high-speed USB device number 5 using ehci-platform
[   12.830000] ath: EEPROM regdomain: 0x0
[   12.830000] ath: EEPROM indicates default country code should be used
[   12.830000] ath: doing EEPROM country->regdmn map search
[   12.830000] ath: country maps to regdmn code: 0x3a
[   12.830000] ath: Country alpha2 being used: US
[   12.830000] ath: Regpair used: 0x3a
[   12.840000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   12.840000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[   12.890000] usb 1-1.1: ath9k_htc: Firmware ath9k_htc/htc_9271-1.4.0.fw reques                                                                                                                                                             ted
[   12.900000] usbcore: registered new interface driver ath9k_htc
[   13.170000] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[   13.180000] usb-storage 1-1.3:1.0: Quirks match for vid 05e3 pid 0723: 8000
[   13.180000] scsi host1: usb-storage 1-1.3:1.0
[   13.220000] RPC: Registered named UNIX socket transport module.
[   13.220000] RPC: Registered udp transport module.
[   13.220000] RPC: Registered tcp transport module.
[   13.230000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   14.010000] scsi 0:0:0:0: Direct-Access     Generic  STORAGE DEVICE   0933 PQ                                                                                                                                                             : 0 ANSI: 6
[   14.030000] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   14.050000] tun: Universal TUN/TAP device driver, 1.6
[   14.050000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[   14.100000] usbcore: registered new interface driver rt2800usb
[   14.130000] usbcore: registered new interface driver rtl8187
[   14.230000] scsi 1:0:0:0: Direct-Access     Generic  STORAGE DEVICE   9451 PQ                                                                                                                                                             : 0 ANSI: 0
[   14.250000] usbcore: registered new interface driver rtl8192cu
[   14.620000] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   14.620000] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   14.640000] usbcore: registered new interface driver cdc_acm
[   14.640000] cdc_acm: USB Abstract Control Model driver for USB modems and ISD                                                                                                                                                             N adapters
[   14.670000] usbcore: registered new interface driver cdc_wdm
[   14.700000] nf_conntrack version 0.5.0 (956 buckets, 3824 max)
[   14.740000] sd 1:0:0:0: [sdb] 122454016 512-byte logical blocks: (62.6 GB/58.                                                                                                                                                             3 GiB)
[   14.750000] sd 1:0:0:0: [sdb] Write Protect is off
[   14.750000] sd 1:0:0:0: [sdb] Mode Sense: 03 00 00 00
[   14.750000] sd 1:0:0:0: [sdb] No Caching mode page found
[   14.750000] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[   14.790000]  sdb: sdb1 sdb2
[   14.800000] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[   14.820000] usb 1-1.1: ath9k_htc: Transferred FW: ath9k_htc/htc_9271-1.4.0.fw                                                                                                                                                             , size: 51008
[   14.830000] ath9k_htc 1-1.1:1.0: ath9k_htc: HTC initialized with 33 credits
[   14.860000] usbcore: registered new interface driver ums-alauda
[   14.870000] usbcore: registered new interface driver ums-cypress
[   14.880000] usbcore: registered new interface driver ums-datafab
[   14.900000] usbcore: registered new interface driver ums-freecom
[   14.910000] usbcore: registered new interface driver ums-isd200
[   14.910000] usbcore: registered new interface driver ums-jumpshot
[   14.920000] usbcore: registered new interface driver ums-karma
[   14.970000] usbcore: registered new interface driver ums-sddr09
[   14.980000] usbcore: registered new interface driver ums-sddr55
[   14.980000] usbcore: registered new interface driver ums-usbat
[   15.020000] usbcore: registered new interface driver usbserial
[   15.030000] usbcore: registered new interface driver usbserial_generic
[   15.030000] usbserial: USB Serial support registered for generic
[   15.180000] xt_time: kernel timezone is -0000
[   15.190000] usbcore: registered new interface driver asix
[   15.200000] usbcore: registered new interface driver ax88179_178a
[   15.220000] usbcore: registered new interface driver cdc_ether
[   15.230000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   15.290000] usbcore: registered new interface driver pl2303
[   15.290000] usbserial: USB Serial support registered for pl2303
[   15.300000] PPP generic driver version 2.4.2
[   15.310000] NET: Registered protocol family 24
[   15.320000] usbcore: registered new interface driver qmi_wwan
[   15.330000] usbcore: registered new interface driver rndis_host
[   15.350000] ath9k_htc 1-1.1:1.0: ath9k_htc: FW Version: 1.4
[   15.350000] ath9k_htc 1-1.1:1.0: FW RMW support: On
[   15.360000] ath: EEPROM regdomain: 0x0
[   15.360000] ath: EEPROM indicates default country code should be used
[   15.360000] ath: doing EEPROM country->regdmn map search
[   15.360000] ath: country maps to regdmn code: 0x3a
[   15.360000] ath: Country alpha2 being used: US
[   15.360000] ath: Regpair used: 0x3a
[   15.360000] usbcore: registered new interface driver sierra_net
[   15.380000] ieee80211 phy1: Atheros AR9271 Rev:1
[   15.390000] usbcore: registered new interface driver option
[   15.400000] usbserial: USB Serial support registered for GSM modem (1-port)
[   19.360000] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[   19.370000] scsi host2: usb-storage 1-1.2:1.0
[   20.370000] scsi 2:0:0:0: Direct-Access     Generic  STORAGE DEVICE   0933 PQ                                                                                                                                                             : 0 ANSI: 6
[   20.370000] sd 2:0:0:0: Attached scsi generic sg0 type 0
[   20.390000] sd 2:0:0:0: [sda] Attached SCSI removable disk
[   23.100000] EXT4-fs warning (device sdb1): ext4_clear_journal_err:4667: Files                                                                                                                                                             ystem error recorded from previous mount: IO failure
[   23.110000] EXT4-fs warning (device sdb1): ext4_clear_journal_err:4668: Marki                                                                                                                                                             ng fs in need of filesystem check.
[   23.150000] EXT4-fs (sdb1): warning: mounting fs with errors, running e2fsck                                                                                                                                                              is recommended
[   23.270000] EXT4-fs (sdb1): recovery complete
[   23.280000] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts:
[   27.670000] device eth0 entered promiscuous mode
[   30.060000] random: nonblocking pool is initialized
[   32.820000] eth0: link up (100Mbps/Full duplex)
[   33.350000] br-lan: port 1(eth0) entered forwarding state
[   33.360000] br-lan: port 1(eth0) entered forwarding state
[   34.190000] device wlan0 entered promiscuous mode
[   34.190000] br-lan: port 2(wlan0) entered forwarding state
[   34.200000] br-lan: port 2(wlan0) entered forwarding state
[   34.600000] device wlan0-1 entered promiscuous mode
[   34.620000] br-lan: port 3(wlan0-1) entered forwarding state
[   34.620000] br-lan: port 3(wlan0-1) entered forwarding state
[   35.140000] eth0: link down
[   35.360000] br-lan: port 1(eth0) entered forwarding state
[   35.500000] br-lan: port 3(wlan0-1) entered disabled state
[   35.550000] br-lan: port 1(eth0) entered disabled state
[   36.200000] br-lan: port 2(wlan0) entered forwarding state
[   37.290000] eth0: link up (100Mbps/Full duplex)
[   37.290000] br-lan: port 1(eth0) entered forwarding state
[   37.300000] br-lan: port 1(eth0) entered forwarding state
[   38.660000] br-lan: port 3(wlan0-1) entered forwarding state
[   38.660000] br-lan: port 3(wlan0-1) entered forwarding state
[   39.300000] br-lan: port 1(eth0) entered forwarding state
[   39.490000] wlan1: authenticate with 00:90:7f:2f:5e:c0
[   39.690000] wlan1: send auth to 00:90:7f:2f:5e:c0 (try 1/3)
[   39.690000] wlan1: authenticated
[   39.720000] wlan1: associate with 00:90:7f:2f:5e:c0 (try 1/3)
[   39.730000] wlan1: RX AssocResp from 00:90:7f:2f:5e:c0 (capab=0x431 status=0                                                                                                                                                              aid=5)
[   39.760000] wlan1: associated
[   40.660000] br-lan: port 3(wlan0-1) entered forwarding state
[   65.510000] sd 1:0:0:0: [sdb]
[   65.520000] Result: hostbyte=0x00 driverbyte=0x08
[   65.520000] sd 1:0:0:0: [sdb]
[   65.520000] Sense Key : 0x3 [current]
[   65.530000] sd 1:0:0:0: [sdb]
[   65.530000] ASC=0x47 ASCQ=0x1
[   65.530000] sd 1:0:0:0: [sdb] CDB:
[   65.540000] cdb[0]=0x2a: 2a 00 01 9f 00 00 00 00 f0 00
[   65.540000] blk_update_request: I/O error, dev sdb, sector 27197440
[  162.890000] sd 1:0:0:0: [sdb]
[  162.890000] Result: hostbyte=0x00 driverbyte=0x08
[  162.890000] sd 1:0:0:0: [sdb]
[  162.900000] Sense Key : 0x3 [current]
[  162.900000] sd 1:0:0:0: [sdb]
[  162.900000] ASC=0x47 ASCQ=0x1
[  162.900000] sd 1:0:0:0: [sdb] CDB:
[  162.910000] cdb[0]=0x2a: 2a 00 00 1e 90 20 00 00 08 00
[  162.910000] blk_update_request: I/O error, dev sdb, sector 2002976
[  162.920000] Buffer I/O error on dev sdb1, logical block 4, lost async page wr                                                                                                                                                             ite
[  163.910000] usb 1-1.3: reset high-speed USB device number 5 using ehci-platfo                                                                                                                                                             rm
[  164.200000] sd 1:0:0:0: [sdb]
[  164.200000] Result: hostbyte=0x00 driverbyte=0x08
[  164.200000] sd 1:0:0:0: [sdb]
[  164.210000] Sense Key : 0x6 [current]
[  164.210000] sd 1:0:0:0: [sdb]
[  164.210000] ASC=0x28 ASCQ=0x0
[  164.220000] sd 1:0:0:0: [sdb] CDB:
[  164.220000] cdb[0]=0x2a: 2a 00 06 9e 90 00 00 00 08 00
[  164.230000] blk_update_request: I/O error, dev sdb, sector 111054848
[  164.230000] Buffer I/O error on dev sdb1, logical block 13631488, lost async                                                                                                                                                              page write
[  164.240000] EXT4-fs error (device sdb1): ext4_find_entry:1289: inode #3407876                                                                                                                                                             : comm opkg: reading directory lblock 0
[  165.760000] EXT4-fs warning (device sdb1): __ext4_read_dirblock:1906: error -                                                                                                                                                             5 reading directory block (ino 3407876, block 0)
[  165.770000] Aborting journal on device sdb1-8.
[  165.780000] JBD2: Error -5 detected when updating journal superblock for sdb1                                                                                                                                                             -8.
[  165.780000] EXT4-fs error (device sdb1) in ext4_create:2247: IO failure
[  165.790000] EXT4-fs (sdb1): previous I/O error to superblock detected
[  165.800000] EXT4-fs error (device sdb1): ext4_find_entry:1289: inode #3407876                                                                                                                                                             : comm opkg: reading directory lblock 0
[  165.810000] EXT4-fs (sdb1): previous I/O error to superblock detected
[  165.810000] EXT4-fs (sdb1): previous I/O error to superblock detected
[  165.820000] EXT4-fs error (device sdb1): ext4_journal_check_start:56: Detecte                                                                                                                                                             d aborted journal
[  165.830000] EXT4-fs (sdb1): Remounting filesystem read-only
[  165.830000] EXT4-fs (sdb1): previous I/O error to superblock detected
[  165.840000] EXT4-fs error (device sdb1): ext4_find_entry:1289: inode #3407876                                                                                                                                                             : comm opkg: reading directory lblock 0
[  165.850000] EXT4-fs (sdb1): previous I/O error to superblock detected
[  165.890000] EXT4-fs error (device sdb1): ext4_find_entry:1289: inode #3407876                                                                                                                                                             : comm opkg: reading directory lblock 0
[  165.900000] EXT4-fs (sdb1): previous I/O error to superblock detected
[  181.480000] EXT4-fs error (device sdb1): ext4_find_entry:1289: inode #3407876                                                                                                                                                             : comm opkg: reading directory lblock 0
[  181.490000] EXT4-fs (sdb1): previous I/O error to superblock detected
[  181.500000] EXT4-fs error (device sdb1): ext4_find_entry:1289: inode #3407876                                                                                                                                                             : comm opkg: reading directory lblock 0
[  181.510000] EXT4-fs (sdb1): previous I/O error to superblock detected
[  181.520000] EXT4-fs error (device sdb1): ext4_find_entry:1289: inode #3407876                                                                                                                                                             : comm opkg: reading directory lblock 0
[  181.530000] EXT4-fs (sdb1): previous I/O error to superblock detected
[  181.540000] EXT4-fs error (device sdb1): ext4_find_entry:1289: inode #3407876                                                                                                                                                             : comm opkg: reading directory lblock 0
[  181.550000] EXT4-fs (sdb1): previous I/O error to superblock detected
[  181.680000] EXT4-fs error (device sdb1): ext4_find_entry:1289: inode #3407876                                                                                                                                                             : comm opkg: reading directory lblock 0
[  181.690000] EXT4-fs (sdb1): previous I/O error to superblock detected
[  183.580000] EXT4-fs error (device sdb1): ext4_find_entry:1289: inode #3407876                                                                                                                                                             : comm opkg: reading directory lblock 0
[  183.590000] EXT4-fs (sdb1): previous I/O error to superblock detected
[  183.600000] EXT4-fs error (device sdb1): ext4_find_entry:1289: inode #3407876                                                                                                                                                             : comm opkg: reading directory lblock 0
[  183.610000] EXT4-fs (sdb1): previous I/O error to superblock detected
[  183.610000] EXT4-fs error (device sdb1): ext4_find_entry:1289: inode #3407876                                                                                                                                                             : comm opkg: reading directory lblock 0
[  183.620000] EXT4-fs (sdb1): previous I/O error to superblock detected
[  183.680000] EXT4-fs error (device sdb1): ext4_find_entry:1289: inode #3407876                                                                                                                                                             : comm opkg: reading directory lblock 0
[  183.690000] EXT4-fs (sdb1): previous I/O error to superblock detected

I'm guessing its the same problem as just trying to use the card.

Link to comment
Share on other sites

On 26.5.2017 at 11:28 PM, KDWIP said:

I'm guessing its the same problem as just trying to use the card.

Yeah it looks like it. The device id of your sd-card reader is almost identical to the emdedded sd-card reader on my Nano.
Your ID: 05e3:0723
My ID: 05e3:0745

So it's most likely using the exact same drivers as it normally would.
You could try to format the sd-card again, for example by tweaking the same script that the web-interface uses when you format the embedded one.
It should be located here: /pineapple/modules/Advanced/formatSD/format_sd
Just replace all the references from /dev/sdcard/sd1 and /dev/sdcard/sd2 to: /dev/sdb1  and /dev/sdb2
sd2 = swap partition
sd1 = ext4 partition

This could be worth trying.

Link to comment
Share on other sites

3 hours ago, Zylla said:

Yeah it looks like it. The device id of your sd-card reader is almost identical to the emdedded sd-card reader on my Nano.
Your ID: 05e3:0723
My ID: 05e3:0745

So it's most likely using the exact same drivers as it normally would.
You could try to format the sd-card again, for example by tweaking the same script that the web-interface uses when you format the embedded one.
It should be located here: /pineapple/modules/Advanced/formatSD/format_sd
Just replace all the references from /dev/sdcard/sd1 and /dev/sdcard/sd2 to: /dev/sdb1  and /dev/sdb2
sd2 = swap partition
sd1 = ext4 partition

This could be worth trying.

Ok, I'll give that a try and post the results later today. 

Link to comment
Share on other sites

On 5/28/2017 at 7:54 AM, Zylla said:

Yeah it looks like it. The device id of your sd-card reader is almost identical to the emdedded sd-card reader on my Nano.
Your ID: 05e3:0723
My ID: 05e3:0745

So it's most likely using the exact same drivers as it normally would.
You could try to format the sd-card again, for example by tweaking the same script that the web-interface uses when you format the embedded one.
It should be located here: /pineapple/modules/Advanced/formatSD/format_sd
Just replace all the references from /dev/sdcard/sd1 and /dev/sdcard/sd2 to: /dev/sdb1  and /dev/sdb2
sd2 = swap partition
sd1 = ext4 partition

This could be worth trying.

Sorry just now getting around to this. I got inside and looked but I'm not 100% sure what I should modify in there. I see some entries at the bottom but I didn't wanna risk messing it up. This is what I see when I get inside the file.

root@Pineapple:~# vi /pineapple/modules/Advanced/formatSD/format_sd
#!/bin/bash
#2013 - WiFiPineapple.com

[[ -f /tmp/sd_format.progress ]] && {
  exit 0
}

#Function to find and reset the SD device
function reset_sd {
  DEVICE=$(find / -name idProduct -exec grep -l 0745 {} + | awk -F '/' '{ print
  echo $DEVICE  > /sys/bus/usb/drivers/usb/unbind
  sleep 2
  echo $DEVICE  > /sys/bus/usb/drivers/usb/bind
}


touch /tmp/sd_format.progress

reset_sd
sleep 5

umount /sd
swapoff /dev/sdcard/sd2
- /pineapple/modules/Advanced/formatSD/format_sd 1/39 2%
 

 

 

Link to comment
Share on other sites

I got it to load successfully on a USB drive (I think). So when I run it, it kicks my ssh to it and I'm unable to connect back to it. Is this a limitation since we aren't using the secondary radio in the USB slot? Or should this work fully without the use of the USB radio?

Link to comment
Share on other sites

I am aware of an issue regarding dnsmasq (the software that provides the client with an ip-address) on this toolkit.
It's not supposed to shutdown the already running process of dnsmasq (the one running on wlan0 - Managment AP)
It is also supposed to restart this service when stopping Mana, if it's not running. 
But it's not doing this correctly, and i haven't had time enough to push a fix yet. But i'll try to get it fixed soon. I know it's really annoying.

Link to comment
Share on other sites

So I have been running the MANA attack for a couple of hours. It first goes well but then a problem appears and the attacks stalls.

handle_probe_req: send failed
wlan1: AP-STA-DISCONNECTED c5:b3:01:24:8d:7c
Failed to set beacon parameters
wlan1: INTERFACE-DISABLED
Failed to set beacon parameters

Do you know the cause of the problems or could it be due to overheating but I doubt it. I have tried running the mana attack a couple of times and every time the attack is stopped by this problem.

Link to comment
Share on other sites

17 hours ago, RazerBlade said:

So I have been running the MANA attack for a couple of hours. It first goes well but then a problem appears and the attacks stalls.


handle_probe_req: send failed
wlan1: AP-STA-DISCONNECTED c5:b3:01:24:8d:7c
Failed to set beacon parameters
wlan1: INTERFACE-DISABLED
Failed to set beacon parameters

Do you know the cause of the problems or could it be due to overheating but I doubt it. I have tried running the mana attack a couple of times and every time the attack is stopped by this problem.

Interesting. I've never experienced this. If it happens again, please try to get the output from dmesg and logread aswell.
hostapd-mana does also have a "verbose/debug" setting, which is enabled by: -d (Add more D's to make it more verbose ->  -d, -dd, -ddd)
You would need to edit the launcher-script to make it launch in verbose-mode, but if you are having troubles editing it just shout out and i can help you.

Link to comment
Share on other sites

Ok. So I ran the attack again and got this error:

wlan1: STA 81:26:89:58:58:29 MLME: MLME-DEAUTHENTICATE.indication(81:26:89:58:58:29, 1)
wlan1: STA 81:26:89:58:58:29 MLME: MLME-DELETEKEYS.request(81:26:89:58:58:29)
Failed to set beacon parameters
wlan1: INTERFACE-DISABLED 
Failed to set beacon parameters

 

System log:

Mon Jun  5 12:08:43 2017 cron.err crond[1216]: time disparity of 60 minutes detected
Mon Jun  5 12:09:40 2017 user.info autossh[1344]: starting ssh (count 55)
Mon Jun  5 12:09:40 2017 user.info autossh[1344]: ssh child pid is 21160
Mon Jun  5 12:09:40 2017 user.info autossh[1344]: ssh exited with error status 255; restarting ssh

 

Dmesg log:

[    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.790000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    6.430000] random: procd urandom read with 10 bits of entropy available
[    6.430000] hub 1-1:1.0: USB hub found
[    6.440000] 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.090000] jffs2: notice: (325) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[    7.100000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[    7.120000] block: extroot: not configured
[    7.180000] jffs2: notice: (322) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[    7.220000] usb 1-1.2: new high-speed USB device number 4 using ehci-platform
[    7.340000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[    7.350000] block: extroot: not configured
[    7.350000] mount_root: switching to jffs2 overlay
[    7.370000] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    7.380000] scsi host0: usb-storage 1-1.2:1.0
[    7.430000] procd: - early -
[    7.430000] procd: - watchdog -
[    7.550000] usb 1-1.3: new high-speed USB device number 5 using ehci-platform
[    7.860000] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    7.870000] scsi host1: usb-storage 1-1.3:1.0
[    8.380000] procd: - ubus -
[    8.380000] scsi 0:0:0:0: Direct-Access     Generic  STORAGE DEVICE   0933 PQ: 0 ANSI: 6
[    8.700000] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    9.100000] scsi 1:0:0:0: Direct-Access     USB      Flash Disk       1100 PQ: 0 ANSI: 4
[    9.110000] sd 1:0:0:0: [sdb] 3915776 512-byte logical blocks: (2.00 GB/1.86 GiB)
[    9.120000] sd 1:0:0:0: [sdb] Write Protect is off
[    9.120000] sd 1:0:0:0: [sdb] Mode Sense: 43 00 00 00
[    9.120000] sd 1:0:0:0: [sdb] No Caching mode page found
[    9.120000] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[    9.150000]  sdb: unknown partition table
[    9.150000] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[    9.400000] procd: - init -
[   13.300000] Loading modules backported from Linux version v4.4-rc5-1913-gc8fdf68
[   13.310000] Backport generated by backports.git backports-20151218-0-g2f58d9d
[   13.350000] EXT4-fs (sdb): mounted filesystem with ordered data mode. Opts:
[   13.520000] ath: EEPROM regdomain: 0x0
[   13.520000] ath: EEPROM indicates default country code should be used
[   13.520000] ath: doing EEPROM country->regdmn map search
[   13.520000] ath: country maps to regdmn code: 0x3a
[   13.520000] ath: Country alpha2 being used: US
[   13.520000] ath: Regpair used: 0x3a
[   13.530000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   13.530000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[   13.550000] usb 1-1.1: ath9k_htc: Firmware ath9k_htc/htc_9271-1.4.0.fw requested
[   13.560000] usbcore: registered new interface driver ath9k_htc
[   13.700000] RPC: Registered named UNIX socket transport module.
[   13.700000] RPC: Registered udp transport module.
[   13.710000] RPC: Registered tcp transport module.
[   13.710000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   13.760000] tun: Universal TUN/TAP device driver, 1.6
[   13.760000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[   13.810000] usbcore: registered new interface driver rt2800usb
[   13.830000] usbcore: registered new interface driver rtl8187
[   13.880000] usbcore: registered new interface driver rtl8192cu
[   13.920000] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   13.920000] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   13.940000] usbcore: registered new interface driver cdc_acm
[   13.950000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[   13.960000] usbcore: registered new interface driver cdc_wdm
[   13.980000] nf_conntrack version 0.5.0 (956 buckets, 3824 max)
[   14.040000] usbcore: registered new interface driver ums-alauda
[   14.050000] usbcore: registered new interface driver ums-cypress
[   14.060000] usbcore: registered new interface driver ums-datafab
[   14.070000] usbcore: registered new interface driver ums-freecom
[   14.080000] usbcore: registered new interface driver ums-isd200
[   14.080000] usbcore: registered new interface driver ums-jumpshot
[   14.090000] usbcore: registered new interface driver ums-karma
[   14.100000] usbcore: registered new interface driver ums-sddr09
[   14.110000] usbcore: registered new interface driver ums-sddr55
[   14.120000] usbcore: registered new interface driver ums-usbat
[   14.140000] usbcore: registered new interface driver usbserial
[   14.150000] usbcore: registered new interface driver usbserial_generic
[   14.150000] usbserial: USB Serial support registered for generic
[   14.200000] usb 1-1.1: ath9k_htc: Transferred FW: ath9k_htc/htc_9271-1.4.0.fw, size: 51008
[   14.250000] xt_time: kernel timezone is -0000
[   14.260000] usbcore: registered new interface driver asix
[   14.270000] usbcore: registered new interface driver ax88179_178a
[   14.280000] usbcore: registered new interface driver cdc_ether
[   14.300000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   14.350000] usbcore: registered new interface driver pl2303
[   14.350000] usbserial: USB Serial support registered for pl2303
[   14.360000] PPP generic driver version 2.4.2
[   14.370000] NET: Registered protocol family 24
[   14.380000] usbcore: registered new interface driver qmi_wwan
[   14.390000] usbcore: registered new interface driver rndis_host
[   14.400000] usbcore: registered new interface driver sierra_net
[   14.430000] usbcore: registered new interface driver option
[   14.430000] usbserial: USB Serial support registered for GSM modem (1-port)
[   14.450000] ath9k_htc 1-1.1:1.0: ath9k_htc: HTC initialized with 33 credits
[   14.720000] ath9k_htc 1-1.1:1.0: ath9k_htc: FW Version: 1.4
[   14.720000] ath9k_htc 1-1.1:1.0: FW RMW support: On
[   14.720000] ath: EEPROM regdomain: 0x0
[   14.720000] ath: EEPROM indicates default country code should be used
[   14.720000] ath: doing EEPROM country->regdmn map search
[   14.720000] ath: country maps to regdmn code: 0x3a
[   14.720000] ath: Country alpha2 being used: US
[   14.720000] ath: Regpair used: 0x3a
[   14.730000] ieee80211 phy1: Atheros AR9271 Rev:1
[   24.090000] device eth0 entered promiscuous mode
[   26.720000] random: nonblocking pool is initialized
[   29.230000] device wlan0 entered promiscuous mode
[   29.300000] br-lan: port 2(wlan0) entered forwarding state
[   29.300000] br-lan: port 2(wlan0) entered forwarding state
[   31.160000] eth0: link up (100Mbps/Full duplex)
[   31.160000] br-lan: port 1(eth0) entered forwarding state
[   31.170000] br-lan: port 1(eth0) entered forwarding state
[   31.300000] br-lan: port 2(wlan0) entered forwarding state
[   33.170000] br-lan: port 1(eth0) entered forwarding state
[ 1324.940000] device wlan1 entered promiscuous mode
[ 3952.270000] hostapd-mana invoked oom-killer: gfp_mask=0x201da, order=0, oom_score_adj=0
[ 3952.270000] CPU: 0 PID: 4144 Comm: hostapd-mana Not tainted 3.18.36 #40
[ 3952.280000] Stack : 00000000 00000000 00000000 00000000 803b4292 0000003b 00000000 00000000
[ 3952.280000] 	  00000001 00000000 802ffa20 803565e3 00001030 803b34d0 81a0f790 00000000
[ 3952.280000] 	  803566d0 803567f4 00000000 800a35b4 00000006 80080410 00000000 00000000
[ 3952.280000] 	  80303050 819cbb84 00000000 00000000 00000000 00000000 00000000 00000000
[ 3952.280000] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 3952.280000] 	  ...
[ 3952.320000] Call Trace:
[ 3952.320000] [<80071038>] show_stack+0x50/0x84
[ 3952.320000] [<800cb0cc>] dump_header.isra.17+0x4c/0x13c
[ 3952.330000] [<800cb434>] oom_kill_process+0xc8/0x3c8
[ 3952.330000] [<800cbbd0>] out_of_memory+0x2f0/0x328
[ 3952.340000] [<800cedc8>] __alloc_pages_nodemask+0x628/0x68c
[ 3952.340000] [<800ca4e8>] filemap_fault+0x24c/0x438
[ 3952.350000] [<800e4898>] __do_fault+0x34/0x9c
[ 3952.350000] [<800e73cc>] do_read_fault.isra.99+0x194/0x230
[ 3952.360000] [<800e7b48>] handle_mm_fault+0x3f4/0x79c
[ 3952.360000] [<80075670>] __do_page_fault+0x130/0x390
[ 3952.370000] [<80060820>] ret_from_exception+0x0/0x10
[ 3952.370000]
[ 3952.370000] Mem-Info:
[ 3952.380000] Normal per-cpu:
[ 3952.380000] CPU    0: hi:   18, btch:   3 usd:   2
[ 3952.380000] active_anon:9288 inactive_anon:17 isolated_anon:0
[ 3952.380000]  active_file:454 inactive_file:522 isolated_file:0
[ 3952.380000]  unevictable:0 dirty:0 writeback:0 unstable:0
[ 3952.380000]  free:244 slab_reclaimable:345 slab_unreclaimable:1684
[ 3952.380000]  mapped:218 shmem:36 pagetables:171 bounce:0
[ 3952.380000]  free_cma:0
[ 3952.420000] Normal free:968kB min:984kB low:1228kB high:1476kB active_anon:37152kB inactive_anon:68kB active_file:1816kB inactive_file:2088kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:65536kB managed:61204kB mlocked:0kB dirty:0kB writeback:0kB mapped:872kB shmem:144kB slab_reclaimable:1380kB slab_unreclaimable:6736kB kernel_stack:600kB pagetables:684kB unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:23440 all_unreclaimable? yes
[ 3952.460000] lowmem_reserve[]: 0 0
[ 3952.460000] Normal: 164*4kB (UEMR) 23*8kB (R) 4*16kB (R) 0*32kB 1*64kB (R) 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 968kB
[ 3952.470000] 1016 total pagecache pages
[ 3952.480000] 0 pages in swap cache
[ 3952.480000] Swap cache stats: add 0, delete 0, find 0/0
[ 3952.480000] Free swap  = 0kB
[ 3952.490000] Total swap = 0kB
[ 3952.490000] 16384 pages RAM
[ 3952.490000] 0 pages HighMem/MovableOnly
[ 3952.500000] 1083 pages reserved
[ 3952.500000] [ pid ]   uid  tgid total_vm      rss nr_ptes swapents oom_score_adj name
[ 3952.510000] [  403]     0   403      223       29       4        0             0 ubusd
[ 3952.520000] [  481]     0   481      193       24       3        0             0 askfirst
[ 3952.520000] [ 1131]     0  1131      261       52       4        0             0 logd
[ 3952.530000] [ 1163]     0  1163      375       77       5        0             0 netifd
[ 3952.540000] [ 1201]     0  1201      198       28       3        0             0 atd
[ 3952.550000] [ 1216]     0  1216      346       35       4        0             0 crond
[ 3952.550000] [ 1227]     0  1227      945       88       4        0             0 nginx
[ 3952.560000] [ 1229]     0  1229     1057      271       4        0             0 nginx
[ 3952.570000] [ 1344]     0  1344      197       31       4        0             0 autossh
[ 3952.580000] [ 1439]     0  1439      465       63       3        0             0 hostapd
[ 3952.590000] [ 1492]     0  1492     2779      293       6        0             0 php-fpm
[ 3952.590000] [ 1506]     0  1506      820       65       5        0         -1000 sshd
[ 3952.600000] [ 1528]     0  1528      196       29       5        0             0 log_daemon
[ 3952.610000] [ 1586]     0  1586      346       34       3        0             0 ntpd
[ 3952.620000] [ 1686]     0  1686     1476       94       5        0             0 sshd
[ 3952.630000] [ 1689]     0  1689      347       32       3        0             0 ash
[ 3952.630000] [ 1697]     0  1697      345       29       5        0             0 ping
[ 3952.640000] [ 2294]     0  2294      448       80       3        0             0 launch-mana
[ 3952.650000] [ 2461]     0  2461      396       86       3        0             0 dnsmasq
[ 3952.660000] [ 2485]     0  2485      346       30       5        0             0 udhcpc
[ 3952.670000] [ 2495]     0  2495      346       30       5        0             0 udhcpc
[ 3952.670000] [ 2813]     0  2813      447       78       4        0             0 launch-mana
[ 3952.680000] [ 2861]     0  2861      396       85       3        0             0 dnsmasq
[ 3952.690000] [ 2885]     0  2885      346       31       5        0             0 udhcpc
[ 3952.700000] [ 4054]     0  4054     2846      407       6        0             0 php-fpm
[ 3952.710000] [ 4144]     0  4144      460      133       3        0             0 hostapd-mana
[ 3952.720000] [ 4145]     0  4145      345       36       3        0             0 tee
[ 3952.720000] [ 4159] 65534  4159      232       35       4        0             0 dnsmasq
[ 3952.730000] [ 4230]     0  4230     3444     1762       7        0             0 python
[ 3952.740000] [ 4232]     0  4232     3604     1574       7        0             0 python
[ 3952.750000] [ 4233]     0  4233     3421       92       7        0             0 sslsplit
[ 3952.760000] [ 4240]     0  4240     2939      504       6        0             0 php-fpm
[ 3952.760000] [ 4247]     0  4247     5479     3501       9        0             0 python
[ 3952.770000] [ 4293]     0  4293     2844      382       6        0             0 php-fpm
[ 3952.780000] [ 4601]     0  4601     2891      416       6        0             0 php-fpm
[ 3952.790000] [ 4602]     0  4602     2844      382       6        0             0 php-fpm
[ 3952.800000] [ 4841]     0  4841      802       26       2        0             0 ssh
[ 3952.800000] [ 4862]     0  4862      345       62       3        0             0 ntpd-hotplug
[ 3952.810000] Out of memory: Kill process 4247 (python) score 222 or sacrifice child
[ 3952.820000] Killed process 4247 (python) total-vm:21916kB, anon-rss:13940kB, file-rss:64kB
[ 3959.590000] device wlan1 left promiscuous mode

From the Dmesg log the problem seems to be out of memory. But still, MANA behaves kinda strange for me. Time to time the pineapple freezes and I am unable to contact it but I'm still connected to it. The probing and responses stop and suddenly it spits out like 100 in one second. Strange.

Link to comment
Share on other sites

Time for some more problems. I factory reseted my pineapple because it was just a buggy mess. I have tried to install MANA on a micro sd card now but when it downloads http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python-db_2.7.9-5_ar71xx.ipk. putty disconnects from the pineapple and it becomes unreachable. Sad that HAK5 have not fixed the sdcard issue yet.

Link to comment
Share on other sites

On 5.6.2017 at 0:18 PM, RazerBlade said:

Ok. So I ran the attack again and got this error:

From the Dmesg log the problem seems to be out of memory. But still, MANA behaves kinda strange for me. Time to time the pineapple freezes and I am unable to contact it but I'm still connected to it. The probing and responses stop and suddenly it spits out like 100 in one second. Strange.

The cause of your problems are related to memory. The  process reports an oom error, as well as the other issues you are describing.
There is however a quick fix! I noticed this in your dmesg output:

0 pages in swap cache
Swap cache stats: add 0, delete 0, find 0/0
Free swap  = 0kB
Total swap = 0kB

If you are running Mana Toolkit on the Nano without any swap, you WILL run into issues!
The processes that are launched are so memory and CPU intensive, that even with swap you will get latency issues. (Especially on the Nano!)
This problem is really apparent if several clients are connected. Especially when said clients are surfing the web. (More stuff to decrypt on the fly!)
This is why i put a limit into the hostapd-config regarding how many clients that it will accept simultaneously.

To fix your issue you need to create a swap partition on your usb-drive.

Link to comment
Share on other sites

On 5.6.2017 at 4:42 PM, RazerBlade said:

Time for some more problems. I factory reseted my pineapple because it was just a buggy mess. I have tried to install MANA on a micro sd card now but when it downloads http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python-db_2.7.9-5_ar71xx.ipk. putty disconnects from the pineapple and it becomes unreachable. Sad that HAK5 have not fixed the sdcard issue yet.

I'm not 100% sure if the SD-card issue will happen with everyone. (Though i have my suspicions) 
If i'm correct with it really being a bug within a kernel-module, then many people (maybe even everyone) will have this bug.
The problem is that it's really subtle/stealthy, which only makes the bug really evident when doing "lots of work". (Even wifite will trip my sd-card!)

To find out what's really happening you can launch two terminals. One where you are installing, and on the other one run this command:

tail -f | dmesg

This will show you the output from dmesg, live as it's happening. So you don't have to launch dmesg after the bug has happened.

Link to comment
Share on other sites

I've been messing around with trying to get it to work on an SD card. I've read everything you've said about the issue so really im just trying different things to see what outcomes I get. On this latest install it allows me to launch mana. First it will give me error code 6 sslsplit was not launched correctly. Then when ran again it will give me error code 9 net-creds was not launched correctly. 

This goes back and forth, sometimes its sslstrip sometimes its net-creds. Weird part is randomly it will act like its working before failing.

 

root@Pineapple:~# launch-mana
Mana Toolkit - Pineapple Edition!

Device seems to be: ONLINE.
RTNETLINK answers: File exists
tee: /pineapple/modules/ManaToolkit/log/hostapd-mana_output.log: No such file or                                                                                                                                                              directory
Configuration file: /sd/etc/mana-toolkit/hostapd-mana.conf
Using interface wlan1 with hwaddr 00:c0:ca:91:83:7a and ssid "MANA"
wlan1: interface state UNINITIALIZED->ENABLED
wlan1: AP-ENABLED
RTNETLINK answers: Invalid argument
/sd/usr/sbin/launch-mana: line 285: /pineapple/modules/ManaToolkit/log/Net-Creds                                                                                                                                                             /net-creds.log: No such file or directory
MANA - Directed probe request for foreign REMOVED
MANA - Attempting to generate response : REMOVED
MANA - Directed probe request for foreign REMOVED
MANA - Attempting to generate response : REMOVED
MANA - Attempting to generate Broadcast response : REMOVED
MANA - Attempting to generate Broadcast response : REMOVED
MANA - Attempting to generate Broadcast response : REMOVED
MANA - Directed probe request for foreign SSID REMOVED
MANA - Attempting to generate response : REMOVED

hostapd-mana  is running with pid: 7856

DHCP Server  is running with pid: 7881

SSLstrip+  is running with pid: 7948

DNS2Proxy  is running with pid: 7950

SSLsplit  is running with pid: 7951

Exiting! (Error code: 9)
Net-Creds was not launched correctly.

Mana Toolkit  has been shutdown.
 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...