Skip to content

Commit f1e0a11

Browse files
authored
Update README.md
1 parent 3a06571 commit f1e0a11

File tree

1 file changed

+44
-4
lines changed

1 file changed

+44
-4
lines changed

README.md

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ When running the script, you will have the option to choose the letter count and
2727
Python3 Password.py
2828
```
2929

30+
>[!IMPORTANT]
31+
>Keep in mind that for it to work you need to install hashlib and requests to work
32+
3033
## You will choose [1] Strong, [2] Weak or [3] Have i been pwned
3134

3235
```sh
@@ -79,7 +82,7 @@ v.1.0.2
7982
[2] Weak
8083
[3] Have i been pwned
8184
82-
Strong or Weak Passwords: 1
85+
Strong, Weak or Have i been pwned: 1
8386
8487
--------------
8588
[!] Strong
@@ -183,7 +186,7 @@ v.1.0.2
183186
[2] Weak
184187
[3] Have i been pwned
185188
186-
Strong or Weak Passwords: 1
189+
Strong, Weak or Have i been pwned: 1
187190
188191
--------------
189192
[!] Strong
@@ -234,9 +237,46 @@ Quantity: 20
234237
}
235238
```
236239
237-
### So that's it, take advantage of your strong passwords. Goodbye.
240+
# Have i been pwned
241+
242+
```sh
238243

239-
<br>
244+
print("Have I Been Pwned")
245+
Password = Password
246+
hash_password = hashlib.sha1(Password.encode('utf-8')).hexdigest().upper()
247+
url = f"https://api.pwnedpasswords.com/range/{hash_password[:5]}"
248+
req = requests.get(url)
249+
hashes = req.text.split('\n')
250+
pwned = False
251+
for hash in hashes:
252+
if hash.startswith(hash_password[5:]):
253+
pwned = True
254+
break
255+
if pwned:
256+
print("[!] Yes, your password has been pwned.")
257+
else:
258+
print("[!] No, your password has not been pwned.")
259+
time.sleep(2)
260+
```
261+
262+
### You can now put an option to verify a specific password of yours that you may or may not have already leaked on the dark web
263+
264+
```sh
265+
266+
Strong, Weak or Have i been pwned: 3
267+
268+
/\ /\ __ ___ ___
269+
/ |_| \_____ ___ __ ____ |__|\_ |__ ____ ____ ____ ______ __ _ __ ____ ____ __| _/
270+
/ \__ \ \ \/ // __ \ | | | __ \_/ __ \_/ __ \ / \ \____ \ \/ \/ // \_/ __ \ / __ |
271+
\ _ // __ \_\ /\ ___/_| | | \_\ \ ___/_ ___/_ | \| |_\ \ /| | \ ___/_ /_/ |
272+
\ | | /(____ / \_/ \___ /|__| |___ /\___ /\___ /___| /| ___/ \/\_/ |___| /\___ /____ |
273+
\/ \/ \/ \/ \/ \/ \/ \/ |__| \/ \/ \/
274+
275+
276+
Put your PASSWORD:
277+
278+
```
279+
### So that's it, take advantage of your strong passwords. Goodbye.
240280
241281
License & Copyright
242282
-----------------------

0 commit comments

Comments
 (0)