Decoding multiple PMKID SSIDs
#1
I would like to take my capture file that has several PMKIDs in it, and decode the SSIDs before cracking them.

This is what I have done so far:

cut -f4 -d'*' pmkidfile | xxd -r -p

xxd properly decodes the SSIDs, but it appends all of the SSIDs together without line breaks. I.e.  SSID1SSID2SSID3, etc.

What is the better method to decode the SSIDs and list them on seperate lines?
Reply
#2
Ok with some trial and error I have found a way to do this with a for loop. It seems a bit excessive so I would be interested in an easier way of doing this. Here is the command

for line in $(cut -f4 -d'*' pmkidfile); do echo "$line">temp.txt; cat temp.txt | xxd -r -p; echo ; done
Reply
#3
wlanhcxinfo of https://github.com/ZerBea/hcxtools should be able to do all you need.
Reply
#4
When I run wlanhcxinfo -i file, I always get an error "file corrupt 0 records loaded"

The "file" is my original hcxdumptool capture that I have verified is good. I have tried multiple capture files.

I'm sure it's something simple, but what am I missing.
Reply
#5
Sorry, nevermind. I just figured out that I have to output the capture to a hccapx file first.
Reply