256 byte password with a repeat inside
#1
I'm having trouble with this one. I have an ancient piece of software that takes a user password, manipulates it, then calculates the SHA1 hash. The manipulation is as follows:

  1. Repeat the uppercase alphabet from A to Z until we have a string of length 255 bytes.
  2. Append a null char so the string is now 256 bytes.
  3. Overwrite the first n bytes of the string (string[0]) with the user password of length n.
  4. Overwrite the middle n bytes starting at string[29] with the user password.
  5. Calculate the SHA1 hash of the 256 byte string.

I've created a hex charset mask that follows everything I need, but it's the repeating password inside the string that is tripping me up. With the mask attack an 8 char password is suddenly 16 chars to hashcat. Is there a way to crack this without writing a module? Thanks!
Reply


Messages In This Thread
256 byte password with a repeat inside - by siddhartha - 10-01-2021, 05:12 PM