Skip to content

Convert user:pass back to hashcat.pot

Dustin Heywood edited this page Feb 26, 2021 · 2 revisions

Credit to sandw1ch:

sed -i '' "s/\\\\/\\\\\\\\\\\\\\\\/g" file.found;export IFS=$'\n';for i in `cat file.found`; do echo `grep $(echo $i|cut -d':' -f1): file.ntds|cut -d':' -f4`:`echo -n $i|cut -d':' -f2`; done

takes user:pass and creates hashcat.pot, tested on macos, probably doesn't work on linux, as its likely the bsd version of sed