Skip to content

Latest commit

 

History

History
38 lines (21 loc) · 672 Bytes

README.md

File metadata and controls

38 lines (21 loc) · 672 Bytes

Use check password script

Block password change if it appears in haveibeenpwnd

install haveibeenpwnd with command : pip3 install haveibeenpwnd

Add script in /scripts

Add in smb.conf :

check password script = python3 /scripts/check_password_hibpwnd.py

Enable complexity :

samba-tool domain passwordsettings set --complexity=on

Restart Samba

Test

python3 /scripts/check_password_hibpwnd.py

Enter test password

Audit Existing Password

List user hashes then test them with haveibeenpwnd

Test

apt-get install python3-pycryptodome

python3 /scripts/audit_password.py