Skip to content

Instantly share code, notes, and snippets.

@0xIslamTaha
Created August 28, 2018 01:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0xIslamTaha/84cda211ef9f72ef316b35a3f05a6a22 to your computer and use it in GitHub Desktop.
Save 0xIslamTaha/84cda211ef9f72ef316b35a3f05a6a22 to your computer and use it in GitHub Desktop.
import crypt
from random import randint
SALT = '$6$wIzFEcUZ'
HASH = '$6$wIzFEcUZ$4cOcD5HtvTDHlb1maDoiT6wfWMz/tW2.R3ALRFOKdtRrn7bnHndKWMg33L1Hkkq5bX/l4/mor6M7GSguAKh5J.'
while True:
PW_PATTERN = "linux" + ''.join(["%s" % randint(0, 9) for num in range(0, 5)])
if crypt.crypt(PW_PATTERN, SALT) == HASH:
print(PW_PATTERN)
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment