Skip to content

Instantly share code, notes, and snippets.

@honor2016tw
Created January 12, 2020 03:27
Show Gist options
  • Select an option

  • Save honor2016tw/c199d718e768443d3c18beb77fe52694 to your computer and use it in GitHub Desktop.

Select an option

Save honor2016tw/c199d718e768443d3c18beb77fe52694 to your computer and use it in GitHub Desktop.
#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