Persistence

Windows User Administration

Add User on Local Computer

net user /add $USERNAME *

Change Local User Password

net user $USERNAME *

Add New User Account to Domain

net user $USERNAME * /ADD /DOMAIN

Add User to Local Group

net localgroup $GROUPNAME $USERNAME /add

Add user to Remote Desktop User Group

net group "Remote Desktop User" $USERNAME /add

Add user to Domain Group

net group $GROUPNAME $USERNAME /add /domain

Powershell Add Firewall Rule

New-NetFirewallRule -Action Allow -DisplayName Pentester-C2 -RemoteAddress

For persistence section: https://ss64.com/nt/net-config.html

Last updated