Jump to content

MANA Attack, for the Pineapple.


Recommended Posts

first time i tried the bash,it worked but then i did something else and i had to factory reset the pineapple. so i took the usb and removed everything and brought it back to Ext4 full size(im trying to make it back to brand new). i edited Fstab and made it like yours,i mounted the usb and retried your bash. Something is wrong. Output:

root@Pineapple:~# mount -t ext4 /dev/sdb1 /sd/

root@Pineapple:~# #!/bin/bash
root@Pineapple:~# #2018 - Zylla - (adde88@gmail.com)
root@Pineapple:~#  
root@Pineapple:~# [[ -f /tmp/usb_format.progress ]] && {
>   exit 0
> }
root@Pineapple:~#  
root@Pineapple:~# touch /tmp/usb_format.progress
root@Pineapple:~#  
root@Pineapple:~# umount /sd
root@Pineapple:~# swapoff /dev/sdb2
block: /dev/sdb2 is not a block device or file
root@Pineapple:~#  
root@Pineapple:~# sleep 2
root@Pineapple:~# cat /pineapple/modules/Advanced/formatSD/fdisk_options | fdisk /dev/sdb

The number of cylinders for this disk is set to 1882.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that the previous content
won't be recoverable.


The number of cylinders for this disk is set to 1882.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): Command action
   e   extended
   p   primary partition (1-4)
Partition number (1-4): First cylinder (1-1882, default 1): Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-1882, default 1882): 
Command (m for help): Command action
   e   extended
   p   primary partition (1-4)
Partition number (1-4): First cylinder (126-1882, default 126): Using default value 126
Last cylinder or +size or +sizeM or +sizeK (126-1882, default 1882): Using default value 1882

Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table
root@Pineapple:~# sleep 2
root@Pineapple:~#  
root@Pineapple:~# umount /sd
umount: can't umount /sd: Invalid argument
root@Pineapple:~# mkfs.ext4 /dev/sdb1
mke2fs 1.42.12 (29-Aug-2014)
/dev/sdb1 contains a ext4 file system
    created on Tue Jan  9 14:28:49 2018
Proceed anyway? (y,n) 
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, 1155072 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, 15425024 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, 2555904 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: 15.4 GB, 15483273216 bytes
255 heads, 63 sectors/track, 1882 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sdb1             126        1882    14113102+ 83 Linux
/dev/sdb2               1         125     1004031  83 Linux

Partition table entries are not in disk order
root@Pineapple:~# 
 

Edited by Rinilyn
Link to post
Share on other sites
  • Replies 446
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

MANA-Toolkit! Pineapple NANO + TETRA. (IPK installation-files, and source-files ready to compile with OpenWRT-SDK) MANA Toolkit includes a working version of SSLstrip2+dns2proxy for the Pineapples.

Sorry for not answering SBB's question. I didn't notice that someone had posted until RazerBlade did. I'll try to explain what's going on with those errors that you're getting. It is obviously re

This is under development. So the only thing the startup-script will do at the moment is to behave as a normal AP would on wlan1, (with the mana patches) It will try to fool clients that are probing

Posted Images

5 hours ago, Rinilyn said:

 sd card got swap now lol,oops

If you're trying to mount the usb-memory stick you should remove the SD-card from the device.
The issue you had with the format script is solved by removing the partitions manually first, then launch the script.
You should also download/write the script, intead of copy/pasting the lines from the pastebin into the terminal. (Should be executable and run from bash)
Another solution is to format the partitions manually on a Linux PC with gParted, sdb1=ext4   and sdb2 = swap

Edited by Zylla
Link to post
Share on other sites

Hello!

Im trying to get this to work on my nano, using a USB Mem stick as SD card. But i cant figure out why its not working. Ive red other people having simular issues, but i have not find a solution.

this is the output:

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

Device seems to be: ONLINE.
RTNETLINK answers: File exists
Configuration file: /sd/etc/mana-toolkit/hostapd-mana.conf
MANA: SSID Filter enabled. File /etc/mana-toolkit/ssid_filter set.
Using interface wlan1 with hwaddr 00:c0:ce:21:92:4e and ssid "MANA"
wlan1: interface state UNINITIALIZED->ENABLED
wlan1: AP-ENABLED
RTNETLINK answers: Invalid argument

hostapd-mana  is running with pid: 5373

DHCP Server  is running with pid: 5396

SSLstrip+  is running with pid: 5451

DNS2Proxy  is running with pid: 5453

Exiting! (Error code: 6)
SSLsplit was not launched correctly.

Mana Toolkit  has been shutdown.

root@Pineapple:/# opkg install sslsplit --dest sd
Package sslsplit (0.4.11-1) installed in sd is up to date.

i have red the forums many times, but i cant get it to work. I have tried factory reset and install everything all over again many times but its the same result.

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 '/mnt'
    option device '/dev/sda1'
    option fstype 'auto'
    option options 'rw,sync'
    option enabled '1'
root@Pineapple:/sd/modules/test# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    2.4M    340.0K      2.1M  14% /
/dev/root                12.3M     12.3M         0 100% /rom
tmpfs                    29.8M    480.0K     29.4M   2% /tmp
/dev/mtdblock3            2.4M    340.0K      2.1M  14% /overlay
overlayfs:/overlay        2.4M    340.0K      2.1M  14% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sdb1                13.0G     76.2M     12.3G   1% /sd

 

I have installed the module, but not with git. When i git clone i get this output:

Cloning into 'ManaToolkit'...
warning: templates not found /usr/share/git-core/templates
fatal: Unable to find remote helper for 'https'

one related question about sslsplit and one side question about git :)

Any ideas? thanks!

 

Link to post
Share on other sites
29 minutes ago, UberMaske said:

Hello!

Im trying to get this to work on my nano, using a USB Mem stick as SD card. But i cant figure out why its not working. Ive red other people having simular issues, but i have not find a solution.

this is the output:


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

Device seems to be: ONLINE.
RTNETLINK answers: File exists
Configuration file: /sd/etc/mana-toolkit/hostapd-mana.conf
MANA: SSID Filter enabled. File /etc/mana-toolkit/ssid_filter set.
Using interface wlan1 with hwaddr 00:c0:ce:21:92:4e and ssid "MANA"
wlan1: interface state UNINITIALIZED->ENABLED
wlan1: AP-ENABLED
RTNETLINK answers: Invalid argument

hostapd-mana  is running with pid: 5373

DHCP Server  is running with pid: 5396

SSLstrip+  is running with pid: 5451

DNS2Proxy  is running with pid: 5453

Exiting! (Error code: 6)
SSLsplit was not launched correctly.

Mana Toolkit  has been shutdown.

root@Pineapple:/# opkg install sslsplit --dest sd
Package sslsplit (0.4.11-1) installed in sd is up to date.

i have red the forums many times, but i cant get it to work. I have tried factory reset and install everything all over again many times but its the same result.

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 '/mnt'
    option device '/dev/sda1'
    option fstype 'auto'
    option options 'rw,sync'
    option enabled '1'

root@Pineapple:/sd/modules/test# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    2.4M    340.0K      2.1M  14% /
/dev/root                12.3M     12.3M         0 100% /rom
tmpfs                    29.8M    480.0K     29.4M   2% /tmp
/dev/mtdblock3            2.4M    340.0K      2.1M  14% /overlay
overlayfs:/overlay        2.4M    340.0K      2.1M  14% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sdb1                13.0G     76.2M     12.3G   1% /sd

 

I have installed the module, but not with git. When i git clone i get this output:


Cloning into 'ManaToolkit'...
warning: templates not found /usr/share/git-core/templates
fatal: Unable to find remote helper for 'https'

one related question about sslsplit and one side question about git :)

Any ideas? thanks!

 

Allright. My original plan when i launched this project was to have it for experienced/developers, that knew their way around.
I had no idea it would be this popular. :)
So i've done some thinking. Considering how many people are experiencing this issue i'll be creating a setup-script that also automatically takes care of mounting the memory-stick (if the user wants it, or is already using it)

Now. Back to your issue. I'm looking at your fstab. Edit it to make it look like this:

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'
    
config swap
	option device '/dev/sdb2'
	option enabled '1'

As you can see: the only changes i made was to edit your mount-point from  /mnt to /sd  (The nano needs to think that /sd is your sd-card)
I also added another config section specifically for your swap partition.
Now, i've presumed your memory-stick has been named as sdb, and that sdb1 is ext4, and sdb2 is a swap partition. (It's been named sdb on every nano i've seen so far)
Remember to take our your sd-card.
I would also recommend a factory-reset before you make these changes.

  • Like 1
Link to post
Share on other sites

Hello! thank you for your quick reply. however i have tried to edit fstab like you said earlier without succsess. I tried again with the same results, doing a factory reset before format the usb stick and installing everything all over again using the fstab config you provided.

Exiting! (Error code: 6)
SSLsplit was not launched correctly

 

Link to post
Share on other sites
6 hours ago, UberMaske said:

Hello! thank you for your quick reply. however i have tried to edit fstab like you said earlier without succsess. I tried again with the same results, doing a factory reset before format the usb stick and installing everything all over again using the fstab config you provided.

Exiting! (Error code: 6)
SSLsplit was not launched correctly

 

Sorry for a late reply this time. Time zones is a b*tch, so i was sleeping.
How did you setup the partitions on your memory stick? Manually? (We just need to confirm that /sd is being mounted to the stick)
Could you post me the output from dmesg after booting your Nano with the memory.stick inserted and the sd-card taken out?

Edited by Zylla
Link to post
Share on other sites

Hello! I used your format script on a unformated usb stick.

Here is dmesg:

root@Pineapple:~# dmesg 
[    0.000000] Linux version 3.18.84 (@02fc9f092662) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 unknown) ) #14 Mon Dec 25 22:24:59 UTC 2017
[    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 80363cf0, 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: 60880K/65536K available (2515K kernel code, 148K rwdata, 536K rodata, 248K init, 188K bss, 4656K reserved, 0K cma-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.430000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.450000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.450000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.470000] msgmni has been set to 118
[    0.470000] io scheduler noop registered
[    0.470000] io scheduler deadline registered (default)
[    0.480000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.480000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a AR933X UART
[    0.490000] console [ttyATH0] enabled
[    0.500000] bootconsole [early0] disabled
[    0.510000] m25p80 spi0.0: found mx25l12805d, expected m25p80
[    0.520000] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.520000] 5 tp-link partitions found on MTD device spi0.0
[    0.530000] Creating 5 MTD partitions on "spi0.0":
[    0.530000] 0x000000000000-0x000000020000 : "u-boot"
[    0.540000] 0x000000020000-0x00000013a07c : "kernel"
[    0.540000] 0x00000013a07c-0x000000ff0000 : "rootfs"
[    0.550000] mtd: device 2 (rootfs) set to be root filesystem
[    0.550000] 1 squashfs-split partitions found on MTD device rootfs
[    0.560000] 0x000000d80000-0x000000ff0000 : "rootfs_data"
[    0.570000] 0x000000ff0000-0x000001000000 : "art"
[    0.570000] 0x000000020000-0x000000ff0000 : "firmware"
[    0.600000] 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: 248K
[    2.830000] init: Console is alive
[    2.840000] init: - watchdog -
[    5.450000] usbcore: registered new interface driver usbfs
[    5.460000] usbcore: registered new interface driver hub
[    5.460000] usbcore: registered new device driver usb
[    5.520000] SCSI subsystem initialized
[    5.530000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.540000] ehci-platform: EHCI generic platform driver
[    5.540000] ehci-platform ehci-platform: EHCI Host Controller
[    5.550000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[    5.560000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[    5.580000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[    5.580000] hub 1-0:1.0: USB hub found
[    5.580000] hub 1-0:1.0: 1 port detected
[    5.590000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.600000] ohci-platform: OHCI generic platform driver
[    5.610000] uhci_hcd: USB Universal Host Controller Interface driver
[    5.620000] usbcore: registered new interface driver usb-storage
[    5.910000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    5.970000] init: - preinit -
[    6.350000] hub 1-1:1.0: USB hub found
[    6.350000] hub 1-1:1.0: 4 ports detected
[    6.570000] random: procd urandom read with 11 bits of entropy available
[    6.990000] usb 1-1.1: new high-speed USB device number 3 using ehci-platform
[    7.410000] mount_root: loading kmods from internal overlay
[    7.930000] jffs2: notice: (326) jffs2_build_xattr_subsystem: complete building xattr subsystem, 13 of xdatum (0 unchecked, 13 orphan) and 13 of xref (0 dead, 13 orphan) found.
[    7.950000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[    7.960000] block: extroot: not configured
[    8.040000] jffs2: notice: (323) jffs2_build_xattr_subsystem: complete building xattr subsystem, 13 of xdatum (0 unchecked, 13 orphan) and 13 of xref (0 dead, 13 orphan) found.
[    8.160000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[    8.170000] block: extroot: not configured
[    8.180000] mount_root: switching to jffs2 overlay
[    8.240000] procd: - early -
[    8.240000] procd: - watchdog -
[    9.110000] procd: - ubus -
[   10.150000] procd: - init -
[   12.080000] usb 1-1.1: device descriptor read/64, error -145
[   12.440000] usb 1-1.2: new high-speed USB device number 4 using ehci-platform
[   12.580000] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[   12.600000] scsi host0: usb-storage 1-1.2:1.0
[   12.700000] usb 1-1.3: new high-speed USB device number 5 using ehci-platform
[   13.860000] scsi 0:0:0:0: Direct-Access     Generic  STORAGE DEVICE   0933 PQ: 0 ANSI: 6
[   13.870000] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   13.880000] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[   13.890000] scsi host1: usb-storage 1-1.3:1.0
[   14.900000] scsi 1:0:0:0: Direct-Access     SanDisk  Ultra Fit        1.00 PQ: 0 ANSI: 6
[   14.910000] sd 1:0:0:0: [sdb] 30031250 512-byte logical blocks: (15.3 GB/14.3 GiB)
[   14.920000] sd 1:0:0:0: [sdb] Write Protect is off
[   14.920000] sd 1:0:0:0: [sdb] Mode Sense: 43 00 00 00
[   14.920000] sd 1:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   14.960000]  sdb: sdb1 sdb2
[   14.960000] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[   15.910000] Loading modules backported from Linux version v4.4-rc5-1913-gc8fdf68
[   15.910000] Backport generated by backports.git backports-20151218-0-g2f58d9d
[   16.090000] ath: EEPROM regdomain: 0x0
[   16.090000] ath: EEPROM indicates default country code should be used
[   16.090000] ath: doing EEPROM country->regdmn map search
[   16.090000] ath: country maps to regdmn code: 0x3a
[   16.090000] ath: Country alpha2 being used: US
[   16.090000] ath: Regpair used: 0x3a
[   16.100000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   16.100000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[   16.120000] usb 1-1.1: ath9k_htc: Firmware ath9k_htc/htc_9271-1.4.0.fw requested
[   16.130000] usbcore: registered new interface driver ath9k_htc
[   16.270000] RPC: Registered named UNIX socket transport module.
[   16.280000] RPC: Registered udp transport module.
[   16.280000] RPC: Registered tcp transport module.
[   16.290000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   16.320000] tun: Universal TUN/TAP device driver, 1.6
[   16.330000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[   16.380000] usbcore: registered new interface driver rt2800usb
[   16.390000] usbcore: registered new interface driver rtl8187
[   16.420000] usbcore: registered new interface driver rtl8192cu
[   16.460000] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   16.460000] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   16.480000] usbcore: registered new interface driver cdc_acm
[   16.490000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[   16.500000] usbcore: registered new interface driver cdc_wdm
[   16.530000] nf_conntrack version 0.5.0 (955 buckets, 3820 max)
[   16.600000] usbcore: registered new interface driver ums-alauda
[   16.610000] usbcore: registered new interface driver ums-cypress
[   16.620000] usbcore: registered new interface driver ums-datafab
[   16.630000] usbcore: registered new interface driver ums-freecom
[   16.630000] usbcore: registered new interface driver ums-isd200
[   16.640000] usbcore: registered new interface driver ums-jumpshot
[   16.650000] usbcore: registered new interface driver ums-karma
[   16.660000] usbcore: registered new interface driver ums-sddr09
[   16.670000] usbcore: registered new interface driver ums-sddr55
[   16.680000] usbcore: registered new interface driver ums-usbat
[   16.710000] usbcore: registered new interface driver usbserial
[   16.720000] usbcore: registered new interface driver usbserial_generic
[   16.720000] usbserial: USB Serial support registered for generic
[   16.800000] xt_time: kernel timezone is -0000
[   16.810000] usbcore: registered new interface driver asix
[   16.820000] usbcore: registered new interface driver ax88179_178a
[   16.830000] usbcore: registered new interface driver cdc_ether
[   16.850000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   16.880000] usb 1-1.1: ath9k_htc: Transferred FW: ath9k_htc/htc_9271-1.4.0.fw, size: 51008
[   16.900000] usbcore: registered new interface driver pl2303
[   16.910000] usbserial: USB Serial support registered for pl2303
[   16.920000] PPP generic driver version 2.4.2
[   16.930000] NET: Registered protocol family 24
[   16.940000] usbcore: registered new interface driver qmi_wwan
[   16.940000] usbcore: registered new interface driver rndis_host
[   16.950000] usbcore: registered new interface driver sierra_net
[   16.980000] usbcore: registered new interface driver option
[   16.980000] usbserial: USB Serial support registered for GSM modem (1-port)
[   17.120000] ath9k_htc 1-1.1:1.0: ath9k_htc: HTC initialized with 33 credits
[   17.410000] ath9k_htc 1-1.1:1.0: ath9k_htc: FW Version: 1.4
[   17.410000] ath9k_htc 1-1.1:1.0: FW RMW support: On
[   17.420000] ath: EEPROM regdomain: 0x0
[   17.420000] ath: EEPROM indicates default country code should be used
[   17.420000] ath: doing EEPROM country->regdmn map search
[   17.420000] ath: country maps to regdmn code: 0x3a
[   17.420000] ath: Country alpha2 being used: US
[   17.420000] ath: Regpair used: 0x3a
[   17.440000] ieee80211 phy1: Atheros AR9271 Rev:1
[   19.470000] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[   19.480000] scsi host2: usb-storage 1-1.2:1.0
[   20.480000] scsi 2:0:0:0: Direct-Access     Generic  STORAGE DEVICE   0933 PQ: 0 ANSI: 6
[   20.480000] sd 2:0:0:0: Attached scsi generic sg0 type 0
[   20.490000] sd 2:0:0:0: [sda] Attached SCSI removable disk
[   24.790000] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: 
[   25.140000] Adding 1001452k swap on /dev/sdb2.  Priority:-1 extents:1 across:1001452k 
[   31.870000] device eth0 entered promiscuous mode
[   34.220000] eth0: link up (100Mbps/Full duplex)
[   34.370000] br-lan: port 1(eth0) entered forwarding state
[   34.370000] br-lan: port 1(eth0) entered forwarding state
[   35.120000] random: nonblocking pool is initialized
[   36.370000] br-lan: port 1(eth0) entered forwarding state
[   38.700000] device wlan0 entered promiscuous mode
[   38.730000] eth0: link down
[   38.810000] br-lan: port 2(wlan0) entered forwarding state
[   38.820000] br-lan: port 2(wlan0) entered forwarding state
[   38.900000] device wlan0-1 entered promiscuous mode
[   38.900000] br-lan: port 3(wlan0-1) entered forwarding state
[   38.910000] br-lan: port 3(wlan0-1) entered forwarding state
[   39.650000] br-lan: port 1(eth0) entered disabled state
[   39.650000] br-lan: port 3(wlan0-1) entered disabled state
[   40.820000] br-lan: port 2(wlan0) entered forwarding state
[   40.820000] eth0: link up (100Mbps/Full duplex)
[   40.870000] br-lan: port 1(eth0) entered forwarding state
[   40.870000] br-lan: port 1(eth0) entered forwarding state
[   41.580000] br-lan: port 3(wlan0-1) entered forwarding state
[   41.590000] br-lan: port 3(wlan0-1) entered forwarding state
[   42.870000] br-lan: port 1(eth0) entered forwarding state
[   43.590000] br-lan: port 3(wlan0-1) entered forwarding state
root@Pineapple:~# 

 

Link to post
Share on other sites

Hello everybody. I apologize immediately for a possibly stupid question. I installed mana on my pineapple tetra, and it seems that it works (logs, i can see connections) , but it seems that something is wrong, when i connect to mana wifi, the browser sees the mitm attack and does not have the acces to use the Internet (say - u connection isn't safety, or some thing like this). I think that maybe the problem is that the components work incorrectly, please tell me how to fix it.

Link to post
Share on other sites
14 hours ago, mazi said:

Hello everybody. I apologize immediately for a possibly stupid question. I installed mana on my pineapple tetra, and it seems that it works (logs, i can see connections) , but it seems that something is wrong, when i connect to mana wifi, the browser sees the mitm attack and does not have the acces to use the Internet (say - u connection isn't safety, or some thing like this). I think that maybe the problem is that the components work incorrectly, please tell me how to fix it.

Hey! Not a stupid question at all! :)
First. This means that the attack is working.
This is a "good" thing per se. It means that your browser has detected the sslstrip+dns2proxy attack.
Our browsers today are updated and "patched" against this attack, by using a local dns-cache. (Rendering the dns2proxy stuff useless).
BUT not every device, and every piece of software is updated! Alot of devices and common used software are vulnerable to this attack.

Link to post
Share on other sites
11 minutes ago, justabug said:

hey guys i love to play with my pineapple :-), but maybe its possible to make a modul or minimum a install script. this didn't work for me also. -.-

The module, and the install script is both working. :)
You just need to follow the instructions to the point.
I also recommend you read through this forum, as alot of problems people have had have been discussed multiple times.
That being said i'll gladly help you if you provide me enough information about the problem, and logs (dmesg + logread after issues occurred).

Link to post
Share on other sites

[UPDATE: SD-CARD BUG]

I want to report something about the "SD-card bug" we've all been experiencing with our Pineapple NANO's.
I will also be adding this information to the bug-report i previously sent to Hak5 a while ago.

I've iterated multiple times in this thread: "Each and every SD-card i've tried on my NANO have had this bug. (More than ten different cards, from different vendors)"
This has forced everyone with the bug to use the Nano's USB port to mount a memory-stick to the /sd directory, and as swap.

Yesterday i did some more testing on my NANO.
Instead of adding a USB memory-stick, or a USB-hub as i usually do, I added a USB SD-card reader.
Into it i insterted the same SD-cards which previously have been experiencing the bug.
Voìla! No problems!
image.png.0e1fdc3fc8669b679b103e78c8db7965.png
 

Soooo... What the **** is going on here?!
Checking dmesg when i inserted the card-reader gives this:

[  300.210000] usb 1-1.3: new high-speed USB device number 5 using ehci-platform
[  300.350000] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[  300.360000] scsi host1: usb-storage 1-1.3:1.0
[  301.360000] scsi 1:0:0:0: Direct-Access     Generic- SD/MMC/MS PRO    1.00 PQ: 0 ANSI: 4
[  301.370000] sd 1:0:0:0: Attached scsi generic sg1 type 0
[  302.050000] sd 1:0:0:0: [sdb] 15187968 512-byte logical blocks: (7.77 GB/7.24 GiB)
[  302.050000] sd 1:0:0:0: [sdb] Write Protect is off
[  302.060000] sd 1:0:0:0: [sdb] Mode Sense: 2f 00 00 00
[  302.060000] sd 1:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[  302.070000]  sdb: sdb1 sdb2
[  302.080000] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[  302.310000] EXT4-fs (sdb1): recovery complete
[  302.310000] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts:
[  302.460000] Adding 1004364k swap on /dev/sdb2.  Priority:-1 extents:1 across:1004364k

Here's the output from lsusb. It appears to be a Realtek controller: (My device is number #5.  Number #4 is the internal Genesys Logilink CR0012 SD-card reader.)

Bus 001 Device 005: ID 0bda:0153 Realtek Semiconductor Corp. Mass Storage Device
Bus 001 Device 004: ID 05e3:0745 Genesys Logic, Inc.
Bus 001 Device 003: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
Bus 001 Device 002: ID 058f:6254 Alcor Micro Corp. USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lsmod output when device is inserted. And lsmod after disconnecting device

I'm not sure what conclusions to draw from this...
I still think/hope that the issue lies within the kernel somwhere, as someone with a Raspberry Pi had the same problem with the same kernel-version.
I sincerely hope that's the case, and that it's not a hardware issue. (Considering the amount of people who's affected by this problem!)
Some people are even using their Pineapple Nano unaware of this problem happening in the background!
Which makes me believe that this problem is actually affecting each and every Pineapple Nano, or a batch of them.

The bug can easily be triggered by issuing these commands in the terminal, when you're using the internal SD-card as it's supposed to be used:
(check dmesg afterwards to see if anything happened)

opkg update ; opkg install badblocks
badblocks -e 100 -v /dev/sdcard/sd1

 

PS.
I'm trying to compile kernel version 4.4.110 for the Nano/Tetra at the moment, just to test if it fixes the problem.
But i have very little time to dedicate to this at the moment, so progress is steady, but slow.
I'll keep you guys updated.
Peace!  \o/

Edited by Zylla
  • Like 2
Link to post
Share on other sites
9 hours ago, Zylla said:

I'm not sure what conclusions to draw from this...

I still think/hope that the issue lies within the kernel somwhere, as someone with a Raspberry Pi had the same problem with the same kernel-version.
I sincerely hope that's the case, and that it's not a hardware issue. (Considering the amount of people who's affected by this problem!)
Some people are even using their Pineapple Nano unaware of this problem happening in the background!
Which makes me believe that this problem is actually affecting each and every Pineapple Nano, or a batch of them.

The bug can easily be triggered by issuing these commands in the terminal, when you're using the internal SD-card as it's supposed to be used:
(check dmesg afterwards to see if anything happened)


opkg update ; opkg install badblocks
badblocks -e 100 -v /dev/sdcard/sd1

 

So I have never noticed a problem with my sd card or how my nano ran with it, but after running badblocks it shows 100 of 100 badblocks and stopped it saying "Too many bad blocks, aborting test"  So im guessing that ive also got the SD-card bug and have never noticed it.

Ive recently noticed that it was a problem when I switched logging to /sd instead of /tmp.  when reading PineAP log it would freeze the device if the log was to big.

Edited by b0N3z
Link to post
Share on other sites
15 hours ago, b0N3z said:

So I have never noticed a problem with my sd card or how my nano ran with it, but after running badblocks it shows 100 of 100 badblocks and stopped it saying "Too many bad blocks, aborting test"  So im guessing that ive also got the SD-card bug and have never noticed it.

Ive recently noticed that it was a problem when I switched logging to /sd instead of /tmp.  when reading PineAP log it would freeze the device if the log was to big.

I check dmesg before and after running the badblocks scan to confirm it. IF you have messages like THIS in you dmesg, then you are experiencing the bug : 
 

[ 102.440000] usb 1-1.2: USB disconnect, device number 4
[ 102.450000] sd 0:0:0:0: [sda]
[ 102.450000] Result: hostbyte=0x01 driverbyte=0x00
[ 102.450000] sd 0:0:0:0: [sda] CDB:
[ 102.460000] cdb[0]=0x28: 28 00 00 1e ab 60 00 00 f0 00
[ 102.460000] blk_update_request: I/O error, dev sda, sector 2009952
[ 102.470000] sd 0:0:0:0: [sda]
[ 102.470000] Result: hostbyte=0x01 driverbyte=0x00
[ 102.480000] sd 0:0:0:0: [sda] CDB:
[ 102.480000] cdb[0]=0x28: 28 00 00 1e ac 50 00 00 10 00
[ 102.490000] blk_update_request: I/O error, dev sda, sector 2010192
[ 102.490000] Aborting journal on device sda1-8.
[ 102.500000] JBD2: Error -5 detected when updating journal superblock for sda1-8.
[ 102.520000] Buffer I/O error on dev sda1, logical block 153, async page read
[ 102.520000] Buffer I/O error on dev sda1, logical block 153, async page read
[ 102.540000] Buffer I/O error on dev sda1, logical block 153, async page read
[ 102.540000] Buffer I/O error on dev sda1, logical block 154, async page read
[ 102.560000] Buffer I/O error on dev sda1, logical block 154, async page read
[ 102.560000] Buffer I/O error on dev sda1, logical block 154, async page read
[ 102.580000] Buffer I/O error on dev sda1, logical block 154, async page read
[ 102.580000] Buffer I/O error on dev sda1, logical block 155, async page read
[ 102.610000] Buffer I/O error on dev sda1, logical block 155, async page read
[ 102.610000] Buffer I/O error on dev sda1, logical block 155, async page read
[ 104.880000] usb 1-1.2: new high-speed USB device number 5 using ehci-platform
[ 105.000000] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[ 105.020000] scsi host1: usb-storage 1-1.2:1.0
[ 106.020000] scsi 1:0:0:0: Direct-Access Generic STORAGE DEVICE 0933 PQ: 0 ANSI: 6
[ 106.020000] sd 1:0:0:0: Attached scsi generic sg0 type 0
[ 106.330000] sd 1:0:0:0: [sdb] 15187968 512-byte logical blocks: (7.77 GB/7.24 GiB)
[ 106.330000] sd 1:0:0:0: [sdb] Write Protect is off
[ 106.340000] sd 1:0:0:0: [sdb] Mode Sense: 21 00 00 00
[ 106.340000] sd 1:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 106.360000] sdb: sdb1 sdb2
[ 106.370000] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[ 106.750000] EXT4-fs error (device sda1): ext4_put_super:797: Couldn't clean up the journal
[ 106.760000] EXT4-fs (sda1): Remounting filesystem read-only
[ 106.780000] EXT4-fs (sdb1): couldn't mount as ext3 due to feature incompatibilities
[ 106.790000] EXT4-fs (sdb1): couldn't mount as ext2 due to feature incompatibilities
[ 106.820000] EXT4-fs (sdb1): recovery complete
[ 106.830000] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[ 107.050000] Adding 1004364k swap on /dev/sdcard/sd2. Priority:-2 extents:1 across:1004364k

 

Link to post
Share on other sites
14 hours ago, Zylla said:

I check dmesg before and after running the badblocks scan to confirm it. IF you have messages like THIS in you dmesg, then you are experiencing the bug : 
 


[ 102.440000] usb 1-1.2: USB disconnect, device number 4
[ 102.450000] sd 0:0:0:0: [sda]
[ 102.450000] Result: hostbyte=0x01 driverbyte=0x00
[ 102.450000] sd 0:0:0:0: [sda] CDB:
[ 102.460000] cdb[0]=0x28: 28 00 00 1e ab 60 00 00 f0 00
[ 102.460000] blk_update_request: I/O error, dev sda, sector 2009952
[ 102.470000] sd 0:0:0:0: [sda]
[ 102.470000] Result: hostbyte=0x01 driverbyte=0x00
[ 102.480000] sd 0:0:0:0: [sda] CDB:
[ 102.480000] cdb[0]=0x28: 28 00 00 1e ac 50 00 00 10 00
[ 102.490000] blk_update_request: I/O error, dev sda, sector 2010192
[ 102.490000] Aborting journal on device sda1-8.
[ 102.500000] JBD2: Error -5 detected when updating journal superblock for sda1-8.
[ 102.520000] Buffer I/O error on dev sda1, logical block 153, async page read
[ 102.520000] Buffer I/O error on dev sda1, logical block 153, async page read
[ 102.540000] Buffer I/O error on dev sda1, logical block 153, async page read
[ 102.540000] Buffer I/O error on dev sda1, logical block 154, async page read
[ 102.560000] Buffer I/O error on dev sda1, logical block 154, async page read
[ 102.560000] Buffer I/O error on dev sda1, logical block 154, async page read
[ 102.580000] Buffer I/O error on dev sda1, logical block 154, async page read
[ 102.580000] Buffer I/O error on dev sda1, logical block 155, async page read
[ 102.610000] Buffer I/O error on dev sda1, logical block 155, async page read
[ 102.610000] Buffer I/O error on dev sda1, logical block 155, async page read
[ 104.880000] usb 1-1.2: new high-speed USB device number 5 using ehci-platform
[ 105.000000] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[ 105.020000] scsi host1: usb-storage 1-1.2:1.0
[ 106.020000] scsi 1:0:0:0: Direct-Access Generic STORAGE DEVICE 0933 PQ: 0 ANSI: 6
[ 106.020000] sd 1:0:0:0: Attached scsi generic sg0 type 0
[ 106.330000] sd 1:0:0:0: [sdb] 15187968 512-byte logical blocks: (7.77 GB/7.24 GiB)
[ 106.330000] sd 1:0:0:0: [sdb] Write Protect is off
[ 106.340000] sd 1:0:0:0: [sdb] Mode Sense: 21 00 00 00
[ 106.340000] sd 1:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 106.360000] sdb: sdb1 sdb2
[ 106.370000] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[ 106.750000] EXT4-fs error (device sda1): ext4_put_super:797: Couldn't clean up the journal
[ 106.760000] EXT4-fs (sda1): Remounting filesystem read-only
[ 106.780000] EXT4-fs (sdb1): couldn't mount as ext3 due to feature incompatibilities
[ 106.790000] EXT4-fs (sdb1): couldn't mount as ext2 due to feature incompatibilities
[ 106.820000] EXT4-fs (sdb1): recovery complete
[ 106.830000] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[ 107.050000] Adding 1004364k swap on /dev/sdcard/sd2. Priority:-2 extents:1 across:1004364k

 

I really wish I should replicate this bug. Neither my 16, 32, or 64 gig cards have any of these issues. 

@Foxtrotwas able to reproduce this with an 8gb card though.

I wonder if it's a bug with specific card sizes. What card size / manufacturer have you tried? 

Link to post
Share on other sites
6 hours ago, Sebkinne said:

II really wish I should replicate this bug. Neither my 16, 32, or 64 gig cards have any of these issues. 

@Foxtrotwas able to reproduce this with an 8gb card though.

I wonder if it's a bug with specific card sizes. What card size / manufacturer have you tried? 

I've tested 2GB, 4GB, 8GB, 16GB, and 32GB. I don't have a 64GB one or higher, sadly. So i haven't been able to test it.
I've attempted different vendors etc. Basicly the opposite issue, being unable to NOT replicate the issue. :S

I'm not sure if it's related or not, but in dmesg when i inserted my USB-SD card reader which managed to work great with my cards (described above in another post) i noticed that my internal SD-reader (Genesys) gets recognized as this:

[ 106.020000] scsi 1:0:0:0: Direct-Access Generic STORAGE DEVICE 0933 PQ: 0 ANSI: 6


 While inserting my USB-SD card reader (Realtek) it came with this: (same SD-cards)

[  301.360000] scsi 1:0:0:0: Direct-Access     Generic- SD/MMC/MS PRO    1.00 PQ: 0 ANSI: 4

I'm not sure if there's a difference in how these two "handles" the SD-card, or if it's worth looking into.

EDIT:
Added list of different SD-card vendors attempted:

  • (No vendor-name on card) - 2GB (serial#: SHSAKY2GB1351)  (Was previously used on my Pineapple MKV)
  • Kingston 8GB micro SD/HC
  • Samsung 16GB
  • SanDisk Extreme Pro SDHC 32GB 
    Also tested the Generic-SD/MMC/MS_PRO 128MB card being used on my RuberDucky, just to test it.

Each of the above SD-cards + a couple else i don't remember the vendor+size on has had the error, on all firmware versions.

Edited by Zylla
Added some vendors
Link to post
Share on other sites

I can replicate this on a Sandisk micro SD HC I class 10 8GB.

I have also tried using hdparm and get slightly more info, maybe its useful.

root@NANO:/dev# hdparm -Tt /dev/sdcard/sd1

/dev/sdcard/sd1:
read(2097152) returned 1187840 bytes
 Timing buffered disk reads: read() failed: Input/output error
BLKFLSBUF failed: No such device

The same card on my Ubuntu Machine : -

sudo hdparm -Tt /dev/mmcblk0p1 

/dev/mmcblk0p1:

 Timing cached reads:   3174 MB in  2.00 seconds = 1588.84 MB/sec
 Timing buffered disk reads:  42 MB in  3.05 seconds =  13.77 MB/sec

On the nano it indeed drops out and follows the chain sda -> sdb -> sdc -> sdd  -> etc...

Under normal use i haven't experienced this (knowingly).

Interestingly tho, unlike @Zylla it also fails when being run using a USB sd card reader using hdparm. But a USB disk/flash drive did not.

root@NANO:/dev# hdparm -Tt /dev/sdk1

/dev/sdk1:
read(2097152) returned 262144 bytes
 Timing buffered disk reads: read() failed: Input/output error

Internal storage benchmark : -

root@NANO:/dev# hdparm -Tt /dev/mtdblock3

/dev/mtdblock3:
 Timing cached reads:   144 MB in  2.00 seconds =  71.85 MB/sec
 Timing buffered disk reads:   2 MB in  0.03 seconds =  70.80 MB/sec

Interesting issue.

EDIT - - - -

I managed to get one to run without error, :S

root@NANO:/dev# hdparm -tT --verbose /dev/sdcard/sd1

/dev/sdcard/sd1:
 Timing cached reads:   138 MB in  2.01 seconds =  68.75 MB/sec
 Timing buffered disk reads:  66 MB in  3.05 seconds =  21.67 MB/sec

 

Edited by Just_a_User
Link to post
Share on other sites
2 hours ago, Just_a_User said:

Interestingly tho, unlike @Zylla it also fails when being run using a USB sd card reader using hdparm. But a USB disk/flash drive did not.

Could you post the stuff that gets outputted to dmesg at the point you insert the USB-SD card reader into the Nano?
I want to check something there.
Also, if you could post the device-id from lsusb it'd be a bit useful to correlate that info with mine. :)
EDIT: Thanks for the tip about hdparm, i'll try and see if i can get mine to output something useful!

Edited by Zylla
Link to post
Share on other sites

I just edited my post, after a complete power off for about 5 mins i gave it another go and it completed OK :S

10 minutes ago, Zylla said:

Could you post the stuff that gets outputted to dmesg at the point you insert the USB-SD card reader into the Nano?

72.620000] usb 1-1.3: new high-speed USB device number 6 using ehci-platform
[   72.750000] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[   72.770000] scsi host2: usb-storage 1-1.3:1.0
[   73.770000] scsi 2:0:0:0: Direct-Access     SanDisk  SDDR-113         1.00 PQ: 0 ANSI: 0
[   73.770000] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   74.160000] sd 2:0:0:0: [sdb] 15523840 512-byte logical blocks: (7.94 GB/7.40 GiB)
[   74.170000] sd 2:0:0:0: [sdb] Write Protect is off
[   74.180000] sd 2:0:0:0: [sdb] Mode Sense: 03 00 00 00
[   74.190000] sd 2:0:0:0: [sdb] No Caching mode page found
[   74.190000] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[   74.220000]  sdb: sdb1 sdb2
[   74.230000] sd 2:0:0:0: [sdb] Attached SCSI removable disk
 

11 minutes ago, Zylla said:

Also, if you could post the device-id from lsusb it'd be a bit useful to correlate that info with mine. :)

Bus 001 Device 006: ID 0781:a7a8 SanDisk Corp.

 

It still failed from the USB SD card reader

root@NANO:/dev# hdparm -tT --verbose /dev/sdb1

/dev/sdb1:
read(2097152) returned 16384 bytes
 Timing buffered disk reads: read(2097152) returned 159744 bytes

 

Link to post
Share on other sites

@Sebkinne
A thought just popped into my head.
I thought you'd be able to answer it. Perhaps this was a part of the dev. process while making the Nano, i'm not sure.

We usually use the "generic" version of the OpenWRT SDK. I reckon this is the version that Hak5 merged their hardware-id with?
SD-cards are using NAND flash for their storage. And one version of the OpenWRT-SDK is designed specifically for NAND. [link]
Could this have something to do with this issue?

Link to post
Share on other sites

@Zylla 

Its weird but i think i have found something i can repeat. It maybe coincidence but maybe not. will repeat some more to confirm.

Cold boot nano with properly formatted sd card in - USB port empty = fail hdparm test

Cold boot nano with properly formatted sd card in + RT chipset 5390 in client mode connected to AP = pass hdparm test

?????

EDIT repeated 3 times now and can confirm it seems consistent, will try some more when i get a min

Edited by Just_a_User
Link to post
Share on other sites

@Just_a_User
My USB-SD reader which worked had a Realtek Controller, and registered as this:

[  301.360000] scsi 1:0:0:0: Direct-Access     Generic- SD/MMC/MS PRO    1.00 PQ: 0 ANSI: 4

I'm struggling to find information about the controller inside that reader of yours. If you happen to find anything, or know anything, please let me know. :)
The internal one is a  Genesys Logilink CR0012.

EDIT: It appears that "ANSI: 4" is just the USB device-id. That's why the internal one displays as 6. It has device-id 6 among the USB devices.

Edited by Zylla
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.

  • Recently Browsing   0 members

    No registered users viewing this page.


×
×
  • Create New...