
هذه الأداة تستخرج أرقام بطاقات الائتمان، NTLM (DCE-RPC، HTTP، SQL، LDAP، إلخ)، Kerberos (AS-REQ Pre-Auth etype 23)، HTTP Basic، SNMP، POP، SMTP، FTP، IMAP، إلخ من ملف pcap أو من واجهة حية.
يستخرج PCredz بيانات الاعتماد ورموز المصادقة من حركة مرور الشبكة (ملفات PCAP أو الالتقاط المباشر).
استخراج بيانات الاعتماد من حركة مرور IPv4 و IPv6 على حد سواء:
-m 5500-m 5600-m 7500logs/CredentialDump-Session.log-v)# Build the container
docker build -t pcredz .
# Run with current directory mounted
docker run --rm -v $(pwd):/data pcredz -f /data/capture.pcap
# For live capture (requires --net=host)
docker run --rm --net=host -v $(pwd):/data pcredz -i eth0 -v
ديبيان/أوبونتو:
sudo apt-get install python3-pip libpcap-dev
pip3 install pcapy-ng
Fedora/RHEL:
sudo dnf install python3-pip libpcap-devel
pip3 install pcapy-ng
Arch Linux:
sudo pacman -S python-pip libpcap
pip3 install pcapy-ng
# Parse a single PCAP file
./Pcredz -f capture.pcap
# Parse all PCAP files in a directory (recursive)
./Pcredz -d /path/to/pcap/directory/
# Live capture on an interface (requires root)
sudo ./Pcredz -i eth0
# Verbose mode (show duplicate credentials)
./Pcredz -f capture.pcap -v
# Custom output directory
./Pcredz -f capture.pcap -o /tmp/pcredz-output/
مطلوب (اختر واحدًا):
-f FILE ملف PCAP لتحليله
-d DIR دليل لتحليله بشكل متكرر
-i INTERFACE واجهة للالتقاط المباشر
اختياري:
-v وضع الإسهاب (طباعة بيانات الاعتماد المكررة)
-t طباعة الطوابع الزمنية
-o DIR دليل الإخراج للسجلات (الافتراضي: ./)
-c تعطيل فحص بطاقات الائتمان
--disable PROTO تعطيل البروتوكول (يمكن استخدامه عدة مرات)
الخيارات: NTLM, HTTP, FTP, IRC, LDAP, SMTP, Kerberos, SNMP, MSSQL
--exclude-host IP استبعاد عنوان المضيف من الالتقاط (يمكن استخدامه عدة مرات)
-h عرض رسالة المساعدة
يتم حفظ جميع بيانات الاعتماد في دليل logs/:
logs/
├── NTLMv1.txt # تجزئات NTLMv1 (hashcat -m 5500)
├── NTLMv2.txt # تجزئات NTLMv2 (hashcat -m 5600)
├── MSKerb.txt # تجزئات Kerberos (hashcat -m 7500)
├── HTTP-Basic.txt # بيانات اعتماد HTTP الأساسية
├── HTTP-PasswordFields.txt # حقول نماذج HTTP ومفاتيح API
├── FTP-Plaintext.txt # بيانات اعتماد FTP
├── IRC-Plaintext.txt # بيانات اعتماد IRC
├── SMTP-Plaintext.txt # بيانات اعتماد SMTP
├── LDAP-Simple.txt # بيانات اعتماد LDAP Simple Bind
├── MSSQL-Plaintext.txt # بيانات اعتماد MSSQL
└── SNMPv1.txt # سلاسل مجتمع SNMP
بالإضافة إلى سجل الجلسة:
CredentialDump-Session.log # الجلسة الكاملة مع الطوابع الزمنية
./Pcredz -f capture.pcap
# Output:
# 192.168.1.10:445 > 192.168.1.20:1024
# NTLMv2 complete hash is: admin::DOMAIN:1122334455667788:ABC123...
# Use with hashcat:
hashcat -m 5600 logs/NTLMv2.txt wordlist.txt
sudo ./Pcredz -i eth0 -v
# Captures and displays credentials in real-time
# Press Ctrl+C to stop
# Process all PCAPs in a directory tree
./Pcredz -d /forensics/network-captures/
# Parsing /forensics/network-captures/day1/morning.pcap...
# Parsing /forensics/network-captures/day1/afternoon.pcap...
# ...
# Disable specific protocols (reduce noise)
./Pcredz -f capture.pcap --disable HTTP --disable SNMP
# Only capture NTLM hashes
./Pcredz -f capture.pcap --disable HTTP --disable FTP --disable IRC \
--disable LDAP --disable SMTP --disable Kerberos --disable SNMP --disable MSSQL
# Focus on cleartext credentials only
./Pcredz -f capture.pcap --disable NTLM --disable Kerberos
# Exclude your own IP during live capture (common use case)
sudo ./Pcredz -i eth0 --exclude-host 192.168.1.50 -v
# Exclude multiple hosts
./Pcredz -f capture.pcap --exclude-host 192.168.1.100 --exclude-host 10.0.0.5
# Pentesting: capture target credentials, not your own
sudo ./Pcredz -i eth0 --exclude-host $(hostname -I | awk '{print $1}') -v
الأداء النموذجي على الأجهزة الحديثة:
pip3 install pcapy-ng
# If that fails:
pip3 install --break-system-packages pcapy-ng
يتطلب الالتقاط المباشر صلاحيات الجذر:
sudo ./Pcredz -i eth0
-v) لرؤية كل النشاطوجدت خطأ أو تريد إضافة ميزة؟ المساهمات مرحب بها!
GNU General Public License v3.0
Laurent Gaffie