10-24-2019, 03:08 PM
Awesome. That's exactly what I was looking for. Thank you.
Since I have the MACs in a file this was my command:
for WLAN_MAC in $(cat macs.txt); do ETH_MAC=`printf '%x' $(( 0x$WLAN_MAC - 1 ))`; echo $ETH_MAC | cut -c 3-; done > macpasswords.txt
Would you mind explaining what the '%x' is there for in the printf syntax?
Since I have the MACs in a file this was my command:
for WLAN_MAC in $(cat macs.txt); do ETH_MAC=`printf '%x' $(( 0x$WLAN_MAC - 1 ))`; echo $ETH_MAC | cut -c 3-; done > macpasswords.txt
Would you mind explaining what the '%x' is there for in the printf syntax?