From 2e6bbb5e1271db0e95106c19c463464d0d0616b0 Mon Sep 17 00:00:00 2001 From: TimWhite <36320909+timwhitez@users.noreply.github.com> Date: Wed, 15 Jun 2022 06:13:11 +0800 Subject: [PATCH] portsfile mistake (#354) * Update README.md * Update options.go Co-authored-by: Sandeep Singh --- README.md | 2 +- v2/pkg/runner/options.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1a631d1f..f1d183a6 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ PORT: -port, -p string ports to scan (80,443, 100-200 -top-ports, -tp string top ports to scan (default 100) -exclude-ports, -ep string ports to exclude from scan (comma-separated) - -ports-file, -pf string list of ports to exclude from scan (file) + -ports-file, -pf string list of ports to scan (file) -exclude-cdn, -ec skip full port scans for CDN's (only checks for 80,443) RATE-LIMIT: diff --git a/v2/pkg/runner/options.go b/v2/pkg/runner/options.go index e8891dba..fbdd57f3 100644 --- a/v2/pkg/runner/options.go +++ b/v2/pkg/runner/options.go @@ -84,7 +84,7 @@ func ParseOptions() *Options { flagSet.StringVarP(&options.Ports, "p", "port", "", "ports to scan (80,443, 100-200"), flagSet.StringVarP(&options.TopPorts, "tp", "top-ports", "", "top ports to scan (default 100)"), flagSet.StringVarP(&options.ExcludePorts, "ep", "exclude-ports", "", "ports to exclude from scan (comma-separated)"), - flagSet.StringVarP(&options.PortsFile, "pf", "ports-file", "", "list of ports to exclude from scan (file)"), + flagSet.StringVarP(&options.PortsFile, "pf", "ports-file", "", "list of ports to scan (file)"), flagSet.BoolVarP(&options.ExcludeCDN, "ec", "exclude-cdn", false, "skip full port scans for CDN's (only checks for 80,443)"), flagSet.BoolVarP(&options.OutputCDN, "cdn", "display-cdn", false, "display cdn in use"), )