Skip to content

Instantly share code, notes, and snippets.

@n1nj4sec
n1nj4sec / extract_and_scramble_hashcat_hash.sh
Created March 28, 2022 08:24 — forked from loren-osborn/extract_and_scramble_hashcat_hash.sh
script to extract (and then scramble) macOS user password hash from system .plist file
#!/bin/bash
extractOsXUserHash() {
xmlOfUsertPlist="$( \
plutil -convert xml1 - -o - \
)"
if [ -z "$xmlOfUsertPlist" ] ; then \
1>&2 echo "No input detected"
exit 127
fi