Documentation
¶
Overview ¶
Package cli implements the xpc cobra command tree.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
Execute runs the CLI and returns a process exit code per the docs/ARCHITECTURE.md exit-code table.
Types ¶
type AuthError ¶
type AuthError struct {
// contains filtered or unexported fields
}
AuthError is a sentinel for HMAC / fingerprint / cert failures; mapExitCode returns 4.
type ConnectionError ¶
type ConnectionError struct {
// contains filtered or unexported fields
}
ConnectionError is a sentinel for transport-level failures; mapExitCode returns 3.
func (*ConnectionError) Unwrap ¶
func (e *ConnectionError) Unwrap() error
type Globals ¶
type Globals struct {
ProfileName string
HostFlag string
PortFlag int
OutputMode string // text | json | table
Verbose bool
Timeout time.Duration
DryRun bool
DebugARCP bool
// contains filtered or unexported fields
}
Globals are populated from cobra flags at the root level and consumed by every subcommand.
type Process ¶
type Process struct {
Name string `json:"name"`
PID int `json:"pid"`
SessionID string `json:"session_id,omitempty"`
MemoryKB int `json:"memory_kb,omitempty"`
Status string `json:"status,omitempty"`
Username string `json:"username,omitempty"`
Title string `json:"window_title,omitempty"`
}
Process is the minimal per-row shape returned by `tasklist /v /fo csv`.
type RegEntry ¶
type RegEntry struct {
Key string `json:"key"`
Name string `json:"name"`
Type string `json:"type"`
Data string `json:"data"`
}
RegEntry is a single registry value pulled from `reg query` output.
type RemoteError ¶
type RemoteError struct {
ExitCode int
// contains filtered or unexported fields
}
RemoteError is a sentinel for failures reported by the remote agent; mapExitCode returns ExitCode (or 5 if zero).
func (*RemoteError) Unwrap ¶
func (e *RemoteError) Unwrap() error
type UsageError ¶
type UsageError struct {
// contains filtered or unexported fields
}
UsageError is a sentinel for invalid CLI usage; mapExitCode returns 2.
func (*UsageError) Unwrap ¶
func (e *UsageError) Unwrap() error
Source Files
¶
- agent.go
- agent_lifecycle.go
- bat.go
- boot.go
- bootstrap.go
- completion.go
- configure.go
- cp.go
- daemon.go
- dbg.go
- dial.go
- dll.go
- dump.go
- edit.go
- env.go
- evt.go
- exec.go
- fetch.go
- fs.go
- ghidra.go
- ida.go
- info.go
- inj.go
- mcp.go
- migrate.go
- net.go
- profile.go
- ps.go
- py.go
- reg.go
- root.go
- run.go
- send.go
- session.go
- shim.go
- shot.go
- snap.go
- svc.go
- trace.go
- tun.go
- version.go
- watch.go