mirror of
https://github.com/BishopFox/sliver
synced 2026-06-08 10:29:05 +00:00
f83dc42a64
servicesListHandler called err.Error() unconditionally after service.ListServices(). On a healthy Windows host ListServices returns nil error, causing a nil pointer dereference that crashed the implant. serviceDetailHandler in the same file already guards correctly with if err != nil. Apply the same pattern to servicesListHandler by extracting response construction into a buildServicesResp helper with a proper nil check. Verified on Windows 11 VM: unfixed helper panics with "runtime error: invalid memory address or nil pointer dereference" on the nil-error path; fixed helper passes. Fixes #1989
implant
Overview
Top-level tooling for building and maintaining Sliver implant payloads. Provides build pipelines, dependency vendoring, and shared entrypoints. Runtime components handle generate for implant-side implant features.
Go Files
generate.go– Implements top-level implant build wiring invoked from the server/client tooling.implant.go– Entry point for compiling implants and exposing shared build helpers.
Sub-packages
scripts/– Helper scripts and utilities for implant vendor management and automation. Includes tooling for syncing nested vendored dependencies.sliver/– Core Go implementation of the Sliver implant runtime and supporting subsystems. Houses communications, task execution, and platform abstraction layers.