Created
January 12, 2020 03:27
-
-
Save honor2016tw/c199d718e768443d3c18beb77fe52694 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #coding=utf-8 | |
| from Crypto.Hash import MD5 | |
| import sys | |
| target = sys.argv[1] | |
| count = 0 | |
| while 1: | |
| h = MD5.new() | |
| h.update('kaibro{}'.format(count)) | |
| res = h.hexdigest()[:5] | |
| if res == target: | |
| print count | |
| break | |
| count += 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment