Advertisement
nerusskyhigh

Untitled

Oct 11th, 2021
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #!/usr/bin/env python3
  2. import hashlib
  3. import sys
  4.  
  5. target = sys.argv[1]
  6.  
  7. i = 0
  8. while True:
  9. h = hashlib.sha1(str(i).encode('ascii')).hexdigest()
  10. if h.endswith(target):
  11. print(i)
  12. break
  13.  
  14. i += 1
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement