HCCAP format : retrieve bssid
#1
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 ?
#2
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.
#3
Works VERY well, thanks !