|
|
@ -53,15 +53,15 @@ var UId string
|
|
|
|
func main() {
|
|
|
|
func main() {
|
|
|
|
// Get command line arguments
|
|
|
|
// Get command line arguments
|
|
|
|
logLvl := flag.Int("log", 4, "allowed: 5 (debug), 4 (info), 3 (warning), 2 (error), 1 (fatal)")
|
|
|
|
logLvl := flag.Int("log", 4, "allowed: 5 (debug), 4 (info), 3 (warning), 2 (error), 1 (fatal)")
|
|
|
|
oldIP := flag.String("oldip", "", "IP before change")
|
|
|
|
oldIP := flag.String("oldip", "", "Force IP before change (optional)")
|
|
|
|
newIP := flag.String("newip", "", "IP after change")
|
|
|
|
newIP := flag.String("newip", "", "Force IP after change (optional)")
|
|
|
|
oldMAC := flag.String("oldmac", "", "MAC before change")
|
|
|
|
oldMAC := flag.String("oldmac", "", "Force MAC before change (optional)")
|
|
|
|
newMAC := flag.String("newmac", "", "MAC after change")
|
|
|
|
newMAC := flag.String("newmac", "", "Force MAC after change (optional)")
|
|
|
|
passthrough := flag.Bool("passthrough", false, "Whether to pass every traffic through")
|
|
|
|
passthrough := flag.Bool("passthrough", false, "Whether to pass every traffic through")
|
|
|
|
sockMain := flag.String("smain", "/run/vde/sw_main.sock", "Main switch sock path, - for stdin/out")
|
|
|
|
sockMain := flag.String("smain", "/run/vde/sw_main.sock", "Main switch sock path, - for stdin/out")
|
|
|
|
sockProxy := flag.String("sproxy", "/run/vde/sw_proxy1.sock", "Proxy switch sock path")
|
|
|
|
sockProxy := flag.String("sproxy", "/run/vde/sw_proxy1.sock", "Proxy switch sock path")
|
|
|
|
pidFile := flag.String("pidfile", "", "Location to write the pid to")
|
|
|
|
pidFile := flag.String("pidfile", "", "Location to write the pid to (optional)")
|
|
|
|
logFile := flag.String("logfile", "", "Location to write output to")
|
|
|
|
logFile := flag.String("logfile", "", "Location to write output to (optional)")
|
|
|
|
wireshark := flag.Bool("wireshark", false, "Whether to write all traffic to /tmp")
|
|
|
|
wireshark := flag.Bool("wireshark", false, "Whether to write all traffic to /tmp")
|
|
|
|
hostname := flag.String("hostname", "", "Set a windows hostname to filter for in binary payloads")
|
|
|
|
hostname := flag.String("hostname", "", "Set a windows hostname to filter for in binary payloads")
|
|
|
|
flag.Parse()
|
|
|
|
flag.Parse()
|
|
|
|