Initial commit with project setup and basic structure established.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
// 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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user