Created
August 28, 2018 01:47
-
-
Save 0xIslamTaha/84cda211ef9f72ef316b35a3f05a6a22 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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