Skip to content

Instantly share code, notes, and snippets.

@eraserhd
Created October 22, 2012 14:53
Show Gist options
  • Select an option

  • Save eraserhd/3931870 to your computer and use it in GitHub Desktop.

Select an option

Save eraserhd/3931870 to your computer and use it in GitHub Desktop.
ALL the words
#!/bin/bash
while read word
do
printf 'Trying:%s\n' "$word"
openssl pkcs12 -info -in ../prod_eriemobile.p12 -password pass:"$word" 2>/dev/null </dev/null
done
text = File.open('/tmp/words.txt', 'r') {|f| f.read}
words = text.split(/\s+/)
File.open('/tmp/out.txt', 'w') {|f| f.write words.join("\n")}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment