Search the Community
Showing results for tags 'format'.
Found 3 results
I need help getting my sd card to work so i can download more than 2-3 modules on the pineapple nano. I own two wifi pineapple Nanos, both are running 2.6.2, I have 4 different sd cards (lexar 4gb, san disk 16gb, san disk 32gb and a delkin 64gb) I have a laptop running MAC OS Catalina, and Windows 10 through bootcamp, I also have a pc running windows 10 and kali linux. I have been unable to mount an sd card to either pineapple Nano. I have tried to format button in pineAP GUI (says successful but does not mount, the SD.org formatting application but does not work, and using linux command line to format usb disk. I was able to use Kali Linux to format the disk to EXT4. but when I use fdisk -l on the pineapple, I get no mass storage listed, Im not sure what I should do next. I followed a lot of similar troubleshoots in the forums about nano sd cards but so far, none have worked for me. Im starting to think Im special and not in a good way. From debug file: =============LSUSB========= Bus 001 Device 004: ID 05e3:0745 Genesys Logic, Inc. Logilink CR0012 Bus 001 Device 003: ID 0cf3:9271 Qualcomm Atheros Communications AR9271 802.11n Bus 001 Device 005: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter 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 ==============DF=========== Filesystem Size Used Available Use% Mounted on /dev/root 13.0M 13.0M 0 100% /rom tmpfs 29.1M 160.0K 28.9M 1% /tmp /dev/mtdblock3 1.3M 280.0K 1.0M 21% /overlay overlayfs:/overlay 1.3M 280.0K 1.0M 21% / tmpfs 512.0K 0 512.0K 0% /dev As you can see below fdisk -l returns nothing, and I have tried adjusting the fstab from default (this is just my most recent try) root@Pineapple:~# fdisk -l root@Pineapple:~# root@Pineapple:~# cd / root@Pineapple:/# ls bin lib pineapple root sys var dev mnt proc sbin tmp www etc overlay rom sd usr root@Pineapple:/# cd etc root@Pineapple:/etc# ls TZ inittab preinit banner iproute2 profile banner.failsafe localtime protocols board.d modules-boot.d rc.button board.json modules.d rc.common config mtab rc.d crontabs nginx rc.local device_info openwrt_release resolv.conf diag.sh openwrt_version services dnsmasq.conf opkg shadow e2fsck.conf opkg.conf shells ethers os-release ssh firewall.user passwd ssl fstab php.ini sysctl.conf group php7 sysctl.d hosts php7-fpm.conf sysupgrade.conf hotplug-preinit.json php7-fpm.d uci-defaults hotplug.d pineape urandom.seed hotplug.json pineapple usb-mode.json init.d ppp root@Pineapple:/etc# cat 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/sda1' option fstype 'ext4' option options 'rw,sync' option enabled '1' config 'swap' option device '/dev/sdcard/sda2' option enabled '1' root@Pineapple:/etc# cd config root@Pineapple:/etc/config# ls autossh firewall landingpage php7-fpm reporting system wireless dhcp fstab network pineap rtl_tcp ubootenv root@Pineapple:/etc/config# cat 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/sda1' option fstype 'ext4' option options 'rw,sync' option enabled '1' config 'swap' option device '/dev/sdcard/sda2' option enabled '1' root@Pineapple:/etc/config# cd / root@Pineapple:/# cd dev root@Pineapple:/dev# ls bus memory_bandwidth mtd3ro mtdblock3 ptmx ttyATH0 console mtd0 mtd4 mtdblock4 pts ttyS0 cpu_dma_latency mtd0ro mtd4ro mtdblock5 random urandom full mtd1 mtd5 network_latency sda watchdog gpiochip0 mtd1ro mtd5ro network_throughput sdcard zero gpiochip1 mtd2 mtdblock0 null sg0 kmsg mtd2ro mtdblock1 port shm log mtd3 mtdblock2 ppp tty root@Pineapple:/dev#
I just currently purchased the Hak5 Essentials Kit and currently setting up the pineapple nano. I have connected to wifi and able to see the modules available, but when I download one a prompt says, This module is developed by sebkinne, a third-party developer. Generally, module support can be found at forums.hak5.org. You do not have enough free space to install this module. Please insert an SD card and ensure that it is formatted correctly. I tried to reformat to ext /fat in disk utility, as I'm on a macpro. I am also running Virtual box with Backtrack5 and trying to make everything connect cohesively. Me being new to security and linux- doing this alone has proved to be somewhat difficult. I have saved the fstab- (which said downloaded successfully) also I clocked format card from the advanced options tab on the GUI and nothing happens. I apologize if there is a significant lack of information but I am eager to dial this in and learn what I need to use this awesome tool. Please advise and thanks for taking the time!
I've had two BashBunny payloads fail on me (USB_File_Exfiltration and SmartFileExtract_Exfiltration) when I ran them in the morning, after working on them for a full day trying to get them to work (the night before). Debugging the scripts on Windows, I found out that the date/time stamp formatting for the filename was causing the issue. The hour is left-padded with a space in the AM. I found the following hint for creating Windows Batch Script variables that are properly formatted with the date/time. My modified code to match the format in the payload scripts is below: @echo off for /f "tokens=2 delims==" %%a in ('wmic OS Get localdatetime /value') do set "dt=%%a" set "YY=%dt:~2,2%" & set "YYYY=%dt:~0,4%" & set "MM=%dt:~4,2%" & set "DD=%dt:~6,2%" set "HH=%dt:~8,2%" & set "Min=%dt:~10,2%" & set "Sec=%dt:~12,2%" set "datestamp=%YYYY%%MM%%DD%" & set "timestamp=%HH%%Min%%Sec%" & set "fullstamp=%YYYY%%MM%%DD%_%HH%%Min%%Sec%" echo datestamp: "%datestamp%" echo timestamp: "%timestamp%" echo fullstamp: "%fullstamp%" pause Here is the output: datestamp: "20190809" timestamp: "084546" fullstamp: "20190809_084546" Press any key to continue . . . And here is the link that helped me figure it out: How do I get current datetime on the Windows command line, in a suitable format for using in a filename? I hope this helps someone avoid the struggle I've been having the last two days.