Skip to content

Instantly share code, notes, and snippets.

@nerdfiles
Forked from stouset/stephen@touset.org
Created April 13, 2016 20:32
Show Gist options
  • Save nerdfiles/a04046190e526b96a98bd886ae5176b4 to your computer and use it in GitHub Desktop.
Save nerdfiles/a04046190e526b96a98bd886ae5176b4 to your computer and use it in GitHub Desktop.
Generate a rainbow table of all possible SSNs

seq -f “%09.0f” 000000000 999999999 | sed -e ‘s/^\(.\{3\}\)\(.\{2\}\)\(.\{4\}\)/\1-\2-\3/’ | parallel -j16 –pipe ‘ruby -r digest/md5 -n -e “\$_.chomp!; puts "%s %s" % [\$_, Digest::MD5.hexdigest(\$_)]”’ > ssns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment