kleo Posted November 14, 2017 Share Posted November 14, 2017 (edited) Wifite2 WiFi Pineapple Setup Simple setup to use Wifite2 on your WiFi Pineapple. Credits to the contributors of Wifite2. Requirements: 1. Mounted flashdrive on the WiFi Pineapple. (We won't be using an sdcard due to a kernel bug, still present on the latest version 2.0.2, pointed out by Zylla, https://www.wifipineapple.com/bugs/511) 2. Flashdrive format script by Zylla: Mirror: https://gist.github.com/kbeflo/8c85c084e9c5ae86b3367716a463e793 3. Mount flashdrive on boot # Mount flashdrive on boot # create mount.sh at /root/ mount /dev/sdb1 /sd swapon /dev/sdb2 # include these lines at /etc/rc.local sleep 5 ./root/mount.sh Wifite2: Github: https://github.com/derv82/wifite2 opkg update # tetra opkg install git git-http coreutils-stty git clone git://github.com/derv82/wifite2.git cd wifite2/ ./Wifite.py # nano with sd card opkg install --dest sd git git-http coreutils-stty cd /sd/ git clone git://github.com/derv82/wifite2.git cd wifite2/ ./Wifite.py Edited February 25, 2018 by kbeflo 2 1 Quote Link to comment Share on other sites More sharing options...
Just_a_User Posted November 14, 2017 Share Posted November 14, 2017 Nice, thanks for this kbeflo! will give it a try later. 1 Quote Link to comment Share on other sites More sharing options...
maximusgoliath Posted November 18, 2017 Share Posted November 18, 2017 First of all, thank you for your work! Any Idea what I‘ve might be missing here: root@Pineapple:~# cd /sd root@Pineapple:/sd# cd wifite2/ root@Pineapple:/sd/wifite2# ls LICENSE README.md Wifite.py py runtests.sh root@Pineapple:/sd/wifite2# ./Wifite.py -ash: ./Wifite.py: not found Quote Link to comment Share on other sites More sharing options...
Zylla Posted November 18, 2017 Share Posted November 18, 2017 1 hour ago, maximusgoliath said: First of all, thank you for your work! Any Idea what I‘ve might be missing here: root@Pineapple:~# cd /sd root@Pineapple:/sd# cd wifite2/ root@Pineapple:/sd/wifite2# ls LICENSE README.md Wifite.py py runtests.sh root@Pineapple:/sd/wifite2# ./Wifite.py -ash: ./Wifite.py: not found Try "chmod +x Wifite2.py" or "python Wifite.py" Quote Link to comment Share on other sites More sharing options...
maximusgoliath Posted November 18, 2017 Share Posted November 18, 2017 python Wifite.py worked! Thank you! Quote Link to comment Share on other sites More sharing options...
maximusgoliath Posted November 18, 2017 Share Posted November 18, 2017 But it won't work on my Nano. Tried interface 1,2,3 and 9 always the same exception occurs: [+] looking for wireless interfaces PHY Interface Driver Chipset ----------------------------------------------------------------------- 1. phy1 wlan2 Atheros AR9271 ath9k 2. phy2 wlan1 Atheros AR9271 ath9k 3. phy0 wlan0-1 Atheros AR9330 ath9k 4. phyX IEEE Unknown Unknown (MONITOR MODE NOT SUPPORTED) 5. phyX 802.11bgn Unknown Unknown (MONITOR MODE NOT SUPPORTED) 6. phyX Mode:Master Unknown Unknown (MONITOR MODE NOT SUPPORTED) 7. phyX Tx-Power=17 Unknown Unknown (MONITOR MODE NOT SUPPORTED) 8. phyX dBm Unknown Unknown (MONITOR MODE NOT SUPPORTED) 9. phy0 wlan0 Atheros AR9330 ath9k [+] select interface (1-9): 9 [+] enabling monitor mode on wlan0... enabled mon0 [+] Scanning. Found 0 target(s), 0 client(s). Ctrl+C when ready [!] Error: Airodump exited unexpectedly! Command ran: airodump-ng mon0 -a -w /tmp/wifiteRpkuXu/airodump --write-interval 1 --output-format pcap,csv [!] Full stack trace below [!] Traceback (most recent call last): [!] File "Wifite.py", line 201, in <module> [!] w.main() [!] File "Wifite.py", line 39, in main [!] self.run() [!] File "Wifite.py", line 83, in run [!] s = Scanner() [!] File "/sd/wifite2/py/Scanner.py", line 38, in __init__ [!] % ' '.join(airodump.pid.command)) [!] Exception: Airodump exited unexpectedly! Command ran: airodump-ng mon0 -a -w /tmp/wifiteRpkuXu/airodump --write-interval 1 --output-format pcap,csv [!] Exiting [!] disabling monitor mode on mon0... disabled mon0 [!] putting interface wlan0 up... done [!] restarting NetworkManager... restarted Quote Link to comment Share on other sites More sharing options...
Zylla Posted November 20, 2017 Share Posted November 20, 2017 On 18.11.2017 at 6:07 PM, maximusgoliath said: But it won't work on my Nano. Tried interface 1,2,3 and 9 always the same exception occurs: [+] looking for wireless interfaces PHY Interface Driver Chipset ----------------------------------------------------------------------- 1. phy1 wlan2 Atheros AR9271 ath9k 2. phy2 wlan1 Atheros AR9271 ath9k 3. phy0 wlan0-1 Atheros AR9330 ath9k 4. phyX IEEE Unknown Unknown (MONITOR MODE NOT SUPPORTED) 5. phyX 802.11bgn Unknown Unknown (MONITOR MODE NOT SUPPORTED) 6. phyX Mode:Master Unknown Unknown (MONITOR MODE NOT SUPPORTED) 7. phyX Tx-Power=17 Unknown Unknown (MONITOR MODE NOT SUPPORTED) 8. phyX dBm Unknown Unknown (MONITOR MODE NOT SUPPORTED) 9. phy0 wlan0 Atheros AR9330 ath9k [+] select interface (1-9): 9 [+] enabling monitor mode on wlan0... enabled mon0 [+] Scanning. Found 0 target(s), 0 client(s). Ctrl+C when ready [!] Error: Airodump exited unexpectedly! Command ran: airodump-ng mon0 -a -w /tmp/wifiteRpkuXu/airodump --write-interval 1 --output-format pcap,csv [!] Full stack trace below [!] Traceback (most recent call last): [!] File "Wifite.py", line 201, in <module> [!] w.main() [!] File "Wifite.py", line 39, in main [!] self.run() [!] File "Wifite.py", line 83, in run [!] s = Scanner() [!] File "/sd/wifite2/py/Scanner.py", line 38, in __init__ [!] % ' '.join(airodump.pid.command)) [!] Exception: Airodump exited unexpectedly! Command ran: airodump-ng mon0 -a -w /tmp/wifiteRpkuXu/airodump --write-interval 1 --output-format pcap,csv [!] Exiting [!] disabling monitor mode on mon0... disabled mon0 [!] putting interface wlan0 up... done [!] restarting NetworkManager... restarted Holy moly, that's alot of interfaces! Have you upgraded your version of aircrack-ng on the Pineapple? This output looks alot like the bogus output you get after upgrading to another version of aircrack-ng, not using the airmon-ng customized for the Pineapples. Quote Link to comment Share on other sites More sharing options...
maximusgoliath Posted November 21, 2017 Share Posted November 21, 2017 Oh, you are right...I updated it in a foolish attempt. I made Factory Reset and now everything is working fine. Sorry about the that... Quote Link to comment Share on other sites More sharing options...
Rinilyn Posted January 12, 2018 Share Posted January 12, 2018 (edited) i tried interface 8 and 9 (monitor mode should work),i get such error. @kbeflo what is stty: not found? Edited January 12, 2018 by Rinilyn Quote Link to comment Share on other sites More sharing options...
kleo Posted January 12, 2018 Author Share Posted January 12, 2018 (edited) @Rinilyn have you installed `coreutils-stty`? Please follow the setup guide I made. Might consider a fresh reset. Edited January 12, 2018 by kbeflo Quote Link to comment Share on other sites More sharing options...
Rinilyn Posted January 12, 2018 Share Posted January 12, 2018 its installed yes. i think it might be some sym linking issues maybe? Quote Link to comment Share on other sites More sharing options...
Rinilyn Posted January 15, 2018 Share Posted January 15, 2018 (edited) i really need this working man. this is everything i did after a fresh reset. @kbeflo ( i sym linked git too). i also tried other interfaces after the pictures. same results. Edited January 15, 2018 by Rinilyn Quote Link to comment Share on other sites More sharing options...
Zylla Posted January 15, 2018 Share Posted January 15, 2018 2 minutes ago, Rinilyn said: i really need this working man. this is everything i did after a fresh reset. @kbeflo ( i sym linked git too). i also tried other interfaces after the pictures. same results. The issue with Wifite2 in the first screenshot comes from not having installed coreutils-stty. In the second screenshot i can see you're installing it. So i'm a bit puzzled. Does it happen after installing coreutils-stty? And by the way, i saw you drew a red line around some errors in the second screenshot. Those are not actual errors that are causing the Nano to misbehave. Those errors appear on every package you try to install with OPKG on the Nano. I guess the overlay filesystem is fooling opkg to think that something is wrong, when actually it's not. So every line that contains: .prerm / .postinst / .list / .control can safely be ignored on the Nano. Nothing is actually wrong. Quote Link to comment Share on other sites More sharing options...
Rinilyn Posted January 15, 2018 Share Posted January 15, 2018 (edited) 21 minutes ago, Zylla said: The issue with Wifite2 in the first screenshot comes from not having installed coreutils-stty. In the second screenshot i can see you're installing it. So i'm a bit puzzled. Does it happen after installing coreutils-stty? And by the way, i saw you drew a red line around some errors in the second screenshot. Those are not actual errors that are causing the Nano to misbehave. Those errors appear on every package you try to install with OPKG on the Nano. I guess the overlay filesystem is fooling opkg to think that something is wrong, when actually it's not. So every line that contains: .prerm / .postinst / .list / .control can safely be ignored on the Nano. Nothing is actually wrong. The red lines arentt errors, they are the commands that i typed(im just trying to show him that i followed steps). Coreutils gets installed but wifite still wont run and “see” it. This is the same session with wifite happening AFTER installing coreutils and sym linking. .controls arent errors, im am sym linking them (i was desperate i tried everything). I sometimes feel my nano is different than everyone ? Edited January 15, 2018 by Rinilyn Quote Link to comment Share on other sites More sharing options...
Zylla Posted January 16, 2018 Share Posted January 16, 2018 17 hours ago, Rinilyn said: The red lines arentt errors, they are the commands that i typed(im just trying to show him that i followed steps). Coreutils gets installed but wifite still wont run and “see” it. This is the same session with wifite happening AFTER installing coreutils and sym linking. .controls arent errors, im am sym linking them (i was desperate i tried everything). I sometimes feel my nano is different than everyone ? There's no need to sym-link those files, as the error-messages is a "false-positive". (Due to the reasons i explained above with the overlay filesystem.) You will get those error messages with any IPK you try to install on the Nano, but they can safely be ignored. The installed IPK still works. That being said, i just tested Wifite2 on my Nano. (factory settings with usb-stick mounted as /sd) Here's my process step-by step, for the nano. And it works flawlessly: opkg update ; opkg install coreutils-stty -d sd mkdir -p /sd/gits ; cd /sd/gits git clone git@github.com:derv82/wifite2 python wifite2/Wifite.py Results: Quote Link to comment Share on other sites More sharing options...
kleo Posted February 8, 2018 Author Share Posted February 8, 2018 (edited) Updated requirements @Rinilyn quoting you for your reliable setup. On 1/8/2018 at 11:48 PM, Rinilyn said: What you need: # Wifi Pineapple Nano Connected To a Pc with Internet # USB Hub # A Regular Usb Drive # A Third Compatible Radio( Prefer RALINK USB WIFI RT5370) -Go To http://172.16.42.1:1471 and navigate to Advanced and backup whats in Fstab. -Remove your sd card if its there,Go to Configuration and Perform a Factory reset. -Meanwhile,plug in your USB drive to your PC and Format your USB to (ext4+swap partition). You can use an App such as PartitionGURU to accomplish that. -Connect your Pineapple back to PC, Navigate to http://172.16.42.1:1471 and after setting up your fresh pineapple, Go to Configuration and edit Fstab to: 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' Then, Format your SD card also in configuration, Save Fstab again. To make sure everything is working,try downloading a module and check if it recognises the sd card Open your favorite SSH tool and SSH into your pineapple and type: 1. fdisk -l 2. Check if your thumb drive is listed 3. mount -t ext4 /dev/sdb1 /sd/ Your Pineapple now thinks the USB drive is an SD Card. Edited February 8, 2018 by kbeflo 1 Quote Link to comment Share on other sites More sharing options...
Rinilyn Posted February 8, 2018 Share Posted February 8, 2018 (edited) @kbefloNano users must do these also: Sym link git: ln -s /sd/usr/bin/git /usr/bin/git ln -s /sd/usr/bin/git-shell /usr/bin/git-shell ln -s /sd/usr/bin/git-upload-pack /usr/bin/git-upload-pack ln -s /sd/usr/bin/git-upload-archive /usr/bin/git-upload-archive ln -s /sd/usr/bin/git-receive-pack /usr/bin/git-receive-pack Sym Link stty: ln -s /sd/usr/bin/stty /usr/bin/stty otherwise he will get the errors i had previously mentioned above. Edited February 8, 2018 by Rinilyn 1 Quote Link to comment Share on other sites More sharing options...
kleo Posted February 24, 2018 Author Share Posted February 24, 2018 (edited) I didn't see @Zylla's format script I will prefer this instead on initial setup. Edited February 24, 2018 by kbeflo Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.