
Skript in Go, das eine Liste von Passwörtern auf Basis ihrer Entropie und schwacher Passwörter aus einem Wörterbuch analysiert. Nützlich für Penetrationstests und Phishing-Kampagnen.
Skript in Go, das eine Liste von Passwörtern analysiert.
Sie können die Binärdatei direkt von den Releases herunterladen. Wenn Sie sie lieber manuell kompilieren möchten, beachten Sie die folgenden Schritte.
git clone https://github.com/am0nt31r0/Password-Analysis.git
cd Password-Analysis
go build -ldflags "-w -s" -o pwdAnalysis
└─$ tree go
go/
├── bin
│ ├── pwdAnalysis
├── src
| ├── github.com
│ └── Xe
│ └── x
│ └── entropy
│ ├── doc.go
│ ├── shannon.go
│ └── shannon_test.go
| ├── Password Analysis
| ├── pw_analysis.go
Das Skript benötigt zwei txt-Dateien, um erfolgreich ausgeführt zu werden. Die erste enthält die zu analysierenden Passwörter – ein Passwort pro Zeile – und die zweite muss ein Wörterbuch schwacher Passwörter sein, wie rockyou.txt.
Der zur Klassifizierung der Passwörter verwendete Entropie-Score ist derselbe, der von KeePassXC verwendet wird: https://keepassxc.org/blog/2020-08-15-keepassxc-password-healthcheck/
Laden Sie den Entropie-Quellcode in Ihr src-Verzeichnis herunter:
└─$ tree src
src
├── github.com
│ └── Xe
│ └── x
│ └── entropy
│ ├── doc.go
│ ├── shannon.go
│ └── shannon_test.go
pwdAnalysis pwds.txt rockyou.txt
[+] Password Analysis Software
Starting password analysis of: pwds.txt
Using rockyou.txt as dictionary of comparison.
PASSWORD LENGTH ENTROPY STRENGTH
12345 a 7 21 Poor
user123 7 21 Bad - Dictionary
passwordstrong 14 56 Weak
thisIsit? 9 27 Poor
saQWE1 6 18 Poor
sa#X#2 34 9 27 Poor
QWE123!"# $sds1 15 60 Weak
123456789 9 36 Bad - Dictionary
QWE123!"# $sds1zxczxc4"3r1 a 28 140 Excelent
C3kGUJeV98c234_34 17 68 Strong
Statistics:
- Total passwords analysed: 10.
- Number of excelent passwords: 1.
- Number of strong passwords: 1.
- Number of weak passwords: 2.
- Number of poor passwords: 4.
- Number of bad passwords: 0.
- Number of bad passwords contained in the dictionary: 2.
- The smaller password has the size of 6 characters.
- The biggest password has the size of 28 characters.
- The average size is 12.