10-09-2018, 08:40 PM
You don't need to use JTR to reformat the hash string. Let's say you have a pbkdf2 hash in passlib format (plaintext is "password"):
You can easily reformat it with awk:
Example:
Code:
$pbkdf2-sha256$29000$9t7be09prfXee2/NOUeotQ$Y.RDnnq8vsezSZSKy1QNy6xhKPdoBIwc.0XDdRm9sJ8
You can easily reformat it with awk:
Code:
gawk '{sub(/^.*-/,"")}$1=$1' FS=\$ OFS=:
Example:
Code:
epixoip@precision:~$ echo '$pbkdf2-sha256$29000$9t7be09prfXee2/NOUeotQ$Y.RDnnq8vsezSZSKy1QNy6xhKPdoBIwc.0XDdRm9sJ8' | gawk '{sub(/^.*-/,"")}$1=$1' FS=\$ OFS=:
sha256:29000:9t7be09prfXee2/NOUeotQ:Y.RDnnq8vsezSZSKy1QNy6xhKPdoBIwc.0XDdRm9sJ8