Implement initial detection and data structures for suspicious artifacts

This commit is contained in:
Evan Hosinski
2025-10-10 15:35:17 -04:00
commit 10b1bb7ed6
26 changed files with 2382 additions and 0 deletions
@@ -0,0 +1,28 @@
package services
import "testing"
func TestDetect(t *testing.T) {
services := Detect()
for _, svc := range services {
t.Logf("-----")
t.Logf("Name: %s", svc.Name)
t.Logf("DisplayName: %s", svc.DisplayName)
t.Logf("ServiceTypeRaw: %d", svc.ServiceTypeRaw)
t.Logf("ServiceType: %s", svc.ServiceType)
t.Logf("StartTypeRaw: %d", svc.StartTypeRaw)
t.Logf("StartType: %s", svc.StartType)
t.Logf("ErrorControlRaw: %d", svc.ErrorControlRaw)
t.Logf("ErrorControl: %s", svc.ErrorControl)
t.Logf("BinaryPathName: %s", svc.BinaryPathName)
t.Logf("LoadOrderGroup: %s", svc.LoadOrderGroup)
t.Logf("TagId: %d", svc.TagId)
t.Logf("Dependencies: %v", svc.Dependencies)
t.Logf("ServiceStartName: %s", svc.ServiceStartName)
t.Logf("Password: %s", svc.Password)
t.Logf("Description: %s", svc.Description)
t.Logf("SidType: %d", svc.SidType)
t.Logf("DelayedAutoStart: %t", svc.DelayedAutoStart)
t.Logf("-----")
}
}