From 972be2b0009d3a472874875ee396e29b61bde249 Mon Sep 17 00:00:00 2001 From: Simon Moser Date: Mon, 10 Jan 2022 16:29:38 +0100 Subject: [PATCH] Help message clarified --- README.md | 12 ++++++------ proxy/main.go | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 3a81f9d..5f9f1ea 100644 --- a/README.md +++ b/README.md @@ -38,19 +38,19 @@ Usage of ./proxy: -log int allowed: 5 (debug), 4 (info), 3 (warning), 2 (error), 1 (fatal) (default 4) -logfile string - Location to write output to + Location to write output to (optional) -newip string - IP after change + Force IP after change (optional) -newmac string - MAC after change + Force MAC after change (optional) -oldip string - IP before change + Force IP before change (optional) -oldmac string - MAC before change + Force MAC before change (optional) -passthrough Whether to pass every traffic through -pidfile string - Location to write the pid to + Location to write the pid to (optional) -smain string Main switch sock path, - for stdin/out (default "/run/vde/sw_main.sock") -sproxy string diff --git a/proxy/main.go b/proxy/main.go index 824a9d0..f1d77bd 100644 --- a/proxy/main.go +++ b/proxy/main.go @@ -53,15 +53,15 @@ var UId string func main() { // Get command line arguments logLvl := flag.Int("log", 4, "allowed: 5 (debug), 4 (info), 3 (warning), 2 (error), 1 (fatal)") - oldIP := flag.String("oldip", "", "IP before change") - newIP := flag.String("newip", "", "IP after change") - oldMAC := flag.String("oldmac", "", "MAC before change") - newMAC := flag.String("newmac", "", "MAC after change") + oldIP := flag.String("oldip", "", "Force IP before change (optional)") + newIP := flag.String("newip", "", "Force IP after change (optional)") + oldMAC := flag.String("oldmac", "", "Force MAC before change (optional)") + newMAC := flag.String("newmac", "", "Force MAC after change (optional)") 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") sockProxy := flag.String("sproxy", "/run/vde/sw_proxy1.sock", "Proxy switch sock path") - pidFile := flag.String("pidfile", "", "Location to write the pid to") - logFile := flag.String("logfile", "", "Location to write output to") + pidFile := flag.String("pidfile", "", "Location to write the pid to (optional)") + logFile := flag.String("logfile", "", "Location to write output to (optional)") 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") flag.Parse()