Jump to content

PMKID Attack on WiFi Pineapples


Zylla
 Share

Recommended Posts

36 minutes ago, powermi said:

whats the best way to install the latest HCXDUMPTOOL on the Pineapple? WGET or GIT?

 

 

Just download the IPK and install it. 

wget, curl, git. They all get the job done. 

Link to comment
Share on other sites

  • 4 weeks later...

Hey @Zylla,

 

Finally booted up my Pineapples after a long time in the cupboard, and was looking to fix my PMKID module, however it looks like these packages are not supported by the new Pineapple firmware?

Collected errors:
 * pkg_hash_fetch_best_installation_candidate: Packages for hcxtools found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package hcxtools.
 * pkg_hash_fetch_best_installation_candidate: Packages for hcxdumptool found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package hcxdumptool.

I'm going to try to build the packages myself, but would be great if the main repo could be updated also please, when you have time 🙂

 

Thanks!

Link to comment
Share on other sites

Hey there!
I've been part of the closed beta team, so that i could have stuff ready for the release. So updated are coming asap.

Btw. hcxdumptool and hcxtools can now be found on the official openwrt repos. after i made a pull request to their github. BUT, they will not provide bleeding edge versions like i usually do on my repos.

Stay tuned and follow my github. I'll do my best to have stuff ready today. But i'm also currently debugging a HUGE issue with Reaver/Wash on the latest firmware.

Link to comment
Share on other sites

Disregard my last comment about it being available on the openwrt repos.
They've only included the tools for openwrt-18.06, not for openwrt-19.07. Sigh...

But, they should be available soon, if not already from the hak5 repos.

Edited by Zylla
Link to comment
Share on other sites

I would like to run a tetra headless, and have it automatically start hcxdumptool on startup, and use wlan0 & wlan1 simultaneously. I will have a USB wlan2 for management AP.

A few implementation questions:

1) Any tips on how best to script it to run on both radios at same time? (one radio hops through 5Ghz channels only, the other does 2.4Ghz channels only; or both radios are on the same band, and each radio hops through a limited range of channels such that the radios don't overlap each other).

1.1) Is there any difference in performance for wlan0 or wlan1, for 2.4Ghz vs 5Ghz? ie. would it be better to use one radio or the other for one band?

2) Is it reliable to dump the capture files directly to the built-in flash filesystem? (or is a USB flash drive recommended? or something else?) 

3) What is the best way to make the script start reliably & automatically every time the tetra boots? Also, with a log file that I can ssh in an run 'tail' on to see progress. And some resiliency. to restart the processes if they crash for some reason.

4) Should I expect any performance issues if capturing (hcxdumptool) from both radios at same time?

5) does the pineapple/openwrt hcxdumptool package support capturing GPS coordinates (from GPSd or something else?) with each PMKID captured? 

6) Is it possible to connect a USB Hub to the tetra's USB port to allow me to use a USB GPS dongle, and a wlan adapter at same time (or is there a better way to achieve that?)

7) Is there any easy way to get audible output from the tetra, that I could use as an indication that it was still successfully capturing (maybe I have it in a backpack while cycling around, and I just want some simple feedback via a headphone, to know its working)

8 ) Similar to qn#7, could the script flash an LED to indicate it was successfully capturing?

Link to comment
Share on other sites

  • 1 month later...

Hello

 

I've got this. Please help how to slove it

 

root@Pineapple:/# wget -qO- https://raw.githubusercontent.com/adde88/hcxtools-hc
xdumptool-openwrt/master/INSTALL.sh | bash -s -- -v -v
Installing/upgrading: hcxdumptool  and hcxtools.
Go grab a cup of coffee, this will take a while...

Downloading https://downloads.hak5.org/packages/mk6/1907/Packages.gz
Updated list of available packages in /var/opkg-lists/1907_pineapple
Downloading https://downloads.openwrt.org/releases/packages-19.07/mips_24kc/base /Packages.gz
Updated list of available packages in /var/opkg-lists/1907_base
Downloading https://downloads.openwrt.org/releases/packages-19.07/mips_24kc/pack ages/Packages.gz
Updated list of available packages in /var/opkg-lists/1907_packages
Downloading https://downloads.openwrt.org/releases/packages-19.07/mips_24kc/rout ing/Packages.gz
Updated list of available packages in /var/opkg-lists/1907_routing
Unknown package 'hcxtools'.
Unknown package 'hcxdumptool'.
Collected errors:
 * pkg_hash_fetch_best_installation_candidate: Packages for hcxtools found, but                 incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package hcxtools.
 * pkg_hash_fetch_best_installation_candidate: Packages for hcxdumptool found, b                ut incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package hcxdumptool.
Installation completed!
-Zylla <adde88@gmail.com>
root@Pineapple:/#

 

Link to comment
Share on other sites

18 minutes ago, rendezo said:

Hello

 

I've got this. Please help how to slove it

 

root@Pineapple:/# wget -qO- https://raw.githubusercontent.com/adde88/hcxtools-hc
xdumptool-openwrt/master/INSTALL.sh | bash -s -- -v -v
Installing/upgrading: hcxdumptool  and hcxtools.
Go grab a cup of coffee, this will take a while...

Downloading https://downloads.hak5.org/packages/mk6/1907/Packages.gz
Updated list of available packages in /var/opkg-lists/1907_pineapple
Downloading https://downloads.openwrt.org/releases/packages-19.07/mips_24kc/base /Packages.gz
Updated list of available packages in /var/opkg-lists/1907_base
Downloading https://downloads.openwrt.org/releases/packages-19.07/mips_24kc/pack ages/Packages.gz
Updated list of available packages in /var/opkg-lists/1907_packages
Downloading https://downloads.openwrt.org/releases/packages-19.07/mips_24kc/rout ing/Packages.gz
Updated list of available packages in /var/opkg-lists/1907_routing
Unknown package 'hcxtools'.
Unknown package 'hcxdumptool'.
Collected errors:
 * pkg_hash_fetch_best_installation_candidate: Packages for hcxtools found, but                 incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package hcxtools.
 * pkg_hash_fetch_best_installation_candidate: Packages for hcxdumptool found, b                ut incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package hcxdumptool.
Installation completed!
-Zylla <adde88@gmail.com>
root@Pineapple:/#

 

Install script hasn't been updated to the latest firmware. However, the IPK's are working when installing manually. 

I'll look into it right away. 

Thanks for posting the issue. 

Link to comment
Share on other sites

Important Update!
14. September 2019

I've updated the entire repo.(I created a separate branch to maintain compatibility with older firmware versions.)

The INSTALL.sh script will now install hcxdumptool and hcxtools from the official OpenWRT repos. if it's launched without any arguments.
It's not that long ago that my work got merged with OpenWRT , so this is pretty sweet!

However, those official packages are not bleeding-edge versions.
And both tools gets updated almost daily!

If you want to use the latest bleeding-edge version of both tools you can launch the INSTALL.sh script with the argument: -c or --custom 

Example:

./INSTALL.sh --custom

The install script will not work with older firmware versions at the moment.

Link to comment
Share on other sites

  • 3 weeks later...

Hi, I have Tetra.

I updated Firmware 2.6.1 and try install hcxdumptool, but when use this :

wget -qO- https://raw.githubusercontent.com/adde88/hcxtools-hcxdumptool-openwrt/master/INSTALL.sh | bash -s -- -v -v

nothing happened. So I tried this:

 wget -qO- https://github.com/adde88/hcxtools-hcxdumptool-openwrt/blob/openwrt-19.07/INSTALL.sh | bash -s -- -v -v

and the next error appeared:

bash: line 7: syntax error near unexpected token `newline'
bash: line 7: `<!DOCTYPE html>'

Then I tried :

wget https://github.com/adde88/hcxtools-hcxdumptool-openwrt/blob/openwrt-19.07/INSTALL.sh
chmod +x ./INSTALL.sh 
./INSTALL.sh 

the issue was :

./INSTALL.sh: line 8: syntax error: unexpected newline
After that I clone from git and copy to tetra https://github.com/adde88/hcxtools-hcxdumptool-openwrt, but when do ./INSTALL.sh nothing happened at all (((

Finally I done :

opkg install hcxdumptool hcxtools --force-overwrite

and  hcxdumptool 5.2.2 was installed.

Sorry, for long story, but I new in this and try my best to make it viable in my hand ))

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...

Pineapple Nano w/ micro sd card

OS: Kali.Linux.Rolling.2019.4

I have searched all over and have not been able to find an answer. Now to install this to an SD card on my nano what commands would I use for an install. Disk is /dev/sda /dev/sda1

SSH into pineapple then run what command?  

 

My apologies,  I just bought my first pineapple so I am a bit newer.  I appreciate the help. Thanks in advance!

Link to comment
Share on other sites

Figured it out.

Running the newest firmware of Pineapple 2.6.2

Tried the  ./INSTALL.sh  method.  Didnt get anywhere so I downloaded  the IPKs off of github directly and moved them to my Pineapple.

Just did the opkg install which worked.   

 

cd /sd/modules/

opkg install hcxdumptool-custom_5.2.2-2_mips_24kc.ip
k

 

I may be new but after a day of researched I figured it out lol.

Link to comment
Share on other sites

12 minutes ago, SpekIt said:

Figured it out.

Running the newest firmware of Pineapple 2.6.2

Tried the  ./INSTALL.sh  method.  Didnt get anywhere so I downloaded  the IPKs off of github directly and moved them to my Pineapple.

Just did the opkg install which worked.   

 


cd /sd/modules/

opkg install hcxdumptool-custom_5.2.2-2_mips_24kc.ip
k

 

I may be new but after a day of researched I figured it out lol.

I'll take a look at the install script and see what's causing problems. Thanks for reporting the problem. 😊 

Link to comment
Share on other sites

I've tweaked the script a bit, and updated the packages in the repo.

This script will install hcxdumptool and hcxtools from the default openwrt repos IF it's launched without any arguments.
To install the latest bleeding-edge versions (from my repo) you need to launch the script with the -c argument

Examples from terminal:

root@pineapple:~/hcxtools-hcxdumptool-openwrt$ ./INSTALL.sh
root@pineapple:~/hcxtools-hcxdumptool-openwrt$ ./INSTALL.sh -c

If you have any errors, try checking that the script is executable before reporting back. (chmod +x INSTALL.sh)

Edited by Zylla
Link to comment
Share on other sites

root@Pineapple:~# ./INSTALL.sh
Installing: hcxdumptool and hcxtools, original version from openwrt repos.
Downloading https://downloads.hak5.org/packages/mk6/1907/Packages.gz
Updated list of available packages in /var/opkg-lists/1907_pineapple
Downloading https://downloads.openwrt.org/releases/packages-19.07/mips_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/1907_base
Downloading https://downloads.openwrt.org/releases/packages-19.07/mips_24kc/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/1907_packages
Downloading https://downloads.openwrt.org/releases/packages-19.07/mips_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/1907_routing
Installing hcxdumptool (5.2.2-1) to root...
Downloading https://downloads.openwrt.org/releases/packages-19.07/mips_24kc/packages/hcxdumptool_5.2.2-1_mips_24kc.ipk
Installing hcxtools (5.2.2-1) to root...
Downloading https://downloads.openwrt.org/releases/packages-19.07/mips_24kc/packages/hcxtools_5.2.2-1_mips_24kc.ipk
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for hcxdumptool:
 *      libc
 * opkg_install_cmd: Cannot install package hcxdumptool.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for hcxtools:
 *      libc
 * opkg_install_cmd: Cannot install package hcxtools.
Finished installing hcxdumptool and hcxtools (original versions).
-@adde88

 

Link to comment
Share on other sites

16 minutes ago, rowie said:

root@Pineapple:~# ./INSTALL.sh
Installing: hcxdumptool and hcxtools, original version from openwrt repos.
Downloading https://downloads.hak5.org/packages/mk6/1907/Packages.gz
Updated list of available packages in /var/opkg-lists/1907_pineapple
Downloading https://downloads.openwrt.org/releases/packages-19.07/mips_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/1907_base
Downloading https://downloads.openwrt.org/releases/packages-19.07/mips_24kc/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/1907_packages
Downloading https://downloads.openwrt.org/releases/packages-19.07/mips_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/1907_routing
Installing hcxdumptool (5.2.2-1) to root...
Downloading https://downloads.openwrt.org/releases/packages-19.07/mips_24kc/packages/hcxdumptool_5.2.2-1_mips_24kc.ipk
Installing hcxtools (5.2.2-1) to root...
Downloading https://downloads.openwrt.org/releases/packages-19.07/mips_24kc/packages/hcxtools_5.2.2-1_mips_24kc.ipk
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for hcxdumptool:
 *      libc
 * opkg_install_cmd: Cannot install package hcxdumptool.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for hcxtools:
 *      libc
 * opkg_install_cmd: Cannot install package hcxtools.
Finished installing hcxdumptool and hcxtools (original versions).
-@adde88

 

Strange. What firmware version are you running on your Pineapple?
The version you're trying to install is the official releases from OpenWRT's repositories, which i can confirm is working on all firmware versions > 2.6.0

Link to comment
Share on other sites

19 hours ago, Zylla said:

Strange. What firmware version are you running on your Pineapple?
The version you're trying to install is the official releases from OpenWRT's repositories, which i can confirm is working on all firmware versions > 2.6.0

6.2.2

strange thing is that it works now after a factory reset. There are so many bugs with modules (and other things) since release of version 6.x

Link to comment
Share on other sites

2 hours ago, rowie said:

6.2.2

strange thing is that it works now after a factory reset. There are so many bugs with modules (and other things) since release of version 6.x

Glad you got it sorted out.
There's not any known issues with the latest firmware (2.6.2) afaik. The firmware is working perfectly fine for me, on both my Tetra and Nano.
However, some modules are deprecated, and needs to be updated by their authors to keep up with the changes in the firmware, as 2.6.0 contained a lot of changes!

Link to comment
Share on other sites

  • 3 weeks later...

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.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...