Azure AD cheatsheet for the CARTP course
- General
- Recon \ OSINT
- Initial access attacks
- Authenticated enumeration
- Privilege Escalation
- Cloud <-> On-Prem - Lateral Movement
- Persistence
- List of Microsoft portals https://msportals.io/
- Great resources
ls \\<COMPUTERNAME>\c$
-ErrorAction SilentlyContinue
$host.ui.RawUI.WindowTitle = "<NAME>"
$creds = get-credential
$password = ConvertTo-SecureString '<PASSWORD>' -AsPlainText -Force
$creds = New-Object System.Management.Automation.PSCredential('<USERNAME>', $password)
Get-Childitem -Path C:\ -Force -Include <FILENAME OR WORD TO SEARCH> -Recurse -ErrorAction SilentlyContinue
$sess = New-PSSession -Credential $creds -ComputerName <IP>
Invoke-Commannd -ScriptBlock {COMMAND} -Session $sess
Invoke-Commannd -Filepath <PATH TO SCRIPT> -Session $sess
Copy-Item -ToSession $sess -Path <PATH> -Destination <DEST> -verbose