From 2b403df227c4bd00bbf165eb8737b24cd5f65fe7 Mon Sep 17 00:00:00 2001 From: L Date: Fri, 9 Apr 2021 15:21:48 +0800 Subject: [PATCH] fix --- README.md | 2 +- mx1014.go | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 1f14a49..9d29843 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Target Example: Options: -p Ports Default port ranges. (Default is common ports - -ap Ports Append default ports + -ap Ports Append default ports -i File Target input from list -t Int The Number of Goroutine (Default is 256) -T Int TCP Connect Timeout (Default is 1014ms) diff --git a/mx1014.go b/mx1014.go index f8678f9..f5fc2ad 100644 --- a/mx1014.go +++ b/mx1014.go @@ -442,21 +442,21 @@ Options: func init() { - flag.StringVar(&portRanges, "p", rawCommonPorts, "Ports Default port ranges. (Default is common ports") + flag.StringVar(&portRanges, "p", rawCommonPorts, " Ports Default port ranges. (Default is common ports") flag.StringVar(&addPort, "ap", "", "Ports Append default ports") - flag.IntVar(&numOfgoroutine, "t", 256, "Int The Number of Goroutine (Default is 256)") - flag.IntVar(&timeout, "T", 1014, "Int TCP Connect Timeout (Default is 1014ms)") - flag.StringVar(&infile, "i", "", "File Target input from list") - flag.StringVar(&outfile, "o", "", "File Output file path") - flag.BoolVar(&order, "r", false, " Scan in import order") - flag.BoolVar(&udpmode, "u", false, " UDP spray") - flag.BoolVar(&echoMode, "e", false, " Echo mode (TCP needs to be manually)") - flag.BoolVar(&closedMode, "c", false, " Allow display of closed ports (Only TCP)") - flag.IntVar(&autoDiscard, "a", 1014, "Int Too many filtered, Discard the host (Default is 1014)") - flag.BoolVar(&forceScan, "A", false, " Disable auto disable") - flag.StringVar(&senddata, "d", "%port%\n", "Str Specify Echo mode data (Default is \"%port%\\n\")") - flag.IntVar(&progressDelay, "D", 5, "Int Progress Bar Refresh Delay (Default is 5s)") - flag.BoolVar(&verbose, "v", false, " Verbose mode") + flag.IntVar(&numOfgoroutine, "t", 256, " Int The Number of Goroutine (Default is 256)") + flag.IntVar(&timeout, "T", 1014, " Int TCP Connect Timeout (Default is 1014ms)") + flag.StringVar(&infile, "i", "", " File Target input from list") + flag.StringVar(&outfile, "o", "", " File Output file path") + flag.BoolVar(&order, "r", false, " Scan in import order") + flag.BoolVar(&udpmode, "u", false, " UDP spray") + flag.BoolVar(&echoMode, "e", false, " Echo mode (TCP needs to be manually)") + flag.BoolVar(&closedMode, "c", false, " Allow display of closed ports (Only TCP)") + flag.IntVar(&autoDiscard, "a", 1014, " Int Too many filtered, Discard the host (Default is 1014)") + flag.BoolVar(&forceScan, "A", false, " Disable auto disable") + flag.StringVar(&senddata, "d", "%port%\n", " Str Specify Echo mode data (Default is \"%port%\\n\")") + flag.IntVar(&progressDelay, "D", 5, " Int Progress Bar Refresh Delay (Default is 5s)") + flag.BoolVar(&verbose, "v", false, " Verbose mode") flag.Usage = usage }