27 lines
617 B
Go
27 lines
617 B
Go
// Local Management Agent is a Windows-only, local network management helper.
|
|
//
|
|
// Build for Windows x64:
|
|
//
|
|
// GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o localagent.exe .
|
|
//
|
|
// The binary is a normal console application. A CMD window appears on launch
|
|
// and prints the listen address. Press Ctrl+C to stop.
|
|
package main
|
|
|
|
import (
|
|
"tea.chunkbyte.com/kato/go-worm/lib/agent"
|
|
"tea.chunkbyte.com/kato/go-worm/lib/helpers"
|
|
)
|
|
|
|
func main() {
|
|
a, err := agent.New()
|
|
if err != nil {
|
|
helpers.Log.Fatalf("%v", err)
|
|
}
|
|
defer a.Close()
|
|
|
|
if err := a.Serve(); err != nil {
|
|
helpers.Log.Fatalf("%v", err)
|
|
}
|
|
}
|