hashcat Forum
HCCAP format : retrieve bssid - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Deprecated; Previous versions (https://hashcat.net/forum/forum-29.html)
+--- Forum: General Help (https://hashcat.net/forum/forum-8.html)
+--- Thread: HCCAP format : retrieve bssid (/thread-1762.html)



HCCAP format : retrieve bssid - Mem5 - 11-17-2012

Hi,

I read the hccap format https://hashcat.net/wiki/hccap to try to retrieve ESSID ans BSSID from the command line.

Quote:Essid 0x00 to 0x23 the essid(name) of the access point
Bssid 0x24 to 0x29 the bssid(MAC) of the access point

I did :

Code:
cat file.hccap | cut -b 1-23 | head -n 1
it gives me the right essid.

But for bssid :
Code:
cat file.hccap | cut -b 24-29 | head -n 1
returns nothing.

Any help ?


RE: HCCAP format : retrieve bssid - M@LIK - 11-17-2012

To extract the ESSiD (using just head):
Code:
head -c36 hccap
Much more neater than piping twice
To extract the BSSiD (using just od):
Code:
od -j36 -N6 -tx1 hccap | grep -Eo "[a-f0-9 ]{17}$" | sed "s/ /:/g"
Note: grep and sed are only to parse the output, you can read od's output directly.

Works perfect for me.


RE: HCCAP format : retrieve bssid - Mem5 - 11-17-2012

Works VERY well, thanks !