I'm trying to create a custom rule set to do hash cracking. I have a SHA1 hash and a rule set that was enforced to create the password.

The password must be of the form,

  • 6-8 characters
  • Every other letter changes case
  • Password "shifts" characters at least one degree and at most three
  • One odd number and one even number are at the beginning of the password
  • One special character and one punctuation character are appended to the end of the password

How can I defined a brute force attack in JohnTheRipper or similar hash cracking program? I've also attempted to write code to generate a wordlist of possible passwords, with no success.

Thanks!

link|improve this question
feedback

migrated from stackoverflow.com Nov 11 '11 at 23:27

This question came from our site for professional and enthusiast programmers.

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown