The MIMIC Go API is an optional Update Wizard package, and requires the use of a recent version of the Go language.
MIMIC has been tested with Go version 1.5.4 on Linux and version 1.13.5 on Windows.
$go version go version go1.5.4 linux/amd64
$export GOPATH=/usr/local/mimic/golang
or on Windows
$export GOPATH=c:/apps/mimic1920B5/golang
$go get github.com/pborman/getopt/v2
The testapp.go program is an small test program to exercise the MIMIC API. Run it as follows:
$go run testapp.go 2019/12/06 15:46:49 TestApp: starting... 2019/12/06 15:46:49 client dump 2019/12/06 15:46:49 number of sessions 1 2019/12/06 15:46:49 session dump 2019/12/06 15:46:49 host 127.0.0.1 2019/12/06 15:46:49 port 9797 2019/12/06 15:46:49 sock 0xc000010010 2019/12/06 15:46:49 INFO: correctly prevented session.Connect from leaking connections 2019/12/06 15:46:49 TestApp: config file = agent.cfg 2019/12/06 15:46:49 TestApp: max agents = 20000 2019/12/06 15:46:49 TestApp: last agent = 13900 2019/12/06 15:46:49 TestApp: version = 19.20 2019/12/06 15:46:49 TestApp: num clients = 1 ...