Skip to content

Instantly share code, notes, and snippets.

View Granitosaurus's full-sized avatar
🍯
🐝

Bernardas Ališauskas Granitosaurus

🍯
🐝
View GitHub Profile
#!/usr/bin/python
from getpass import getpass
import hashlib
import requests
import sys
import re
passd = getpass('Gimme your password: ')
hash = hashlib.sha1(passd).hexdigest().upper()
res = requests.get('https://api.pwnedpasswords.com/range/'+hash[0:5])