From 93946bcac2ab6d444da229e3429d7e744ca832b3 Mon Sep 17 00:00:00 2001 From: Ice3man543 Date: Tue, 20 Oct 2020 02:02:39 +0530 Subject: [PATCH] Linter fix --- .golangci.yml | 1 - v2/internal/runner/options.go | 30 +++++++++++++++--------------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 576ead96..917ad0fe 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -59,7 +59,6 @@ linters: - bodyclose - deadcode - dogsled - - dupl - errcheck - exhaustive - gochecknoinits diff --git a/v2/internal/runner/options.go b/v2/internal/runner/options.go index b9fecf29..a42715f2 100644 --- a/v2/internal/runner/options.go +++ b/v2/internal/runner/options.go @@ -13,20 +13,6 @@ import ( // Options contains the configuration options for tuning // the template requesting process. type Options struct { - Templates multiStringFlag // Signature specifies the template/templates to use - ExcludedTemplates multiStringFlag // Signature specifies the template/templates to exclude - CustomHeaders requests.CustomHeaders // Custom global headers - Severity string // Filter templates based on their severity and only run the matching ones. - Target string // Target is a single URL/Domain to scan usng a template - Targets string // Targets specifies the targets to scan using templates. - Output string // Output is the file to write found subdomains to. - ProxyURL string // ProxyURL is the URL for the proxy server - ProxySocksURL string // ProxySocksURL is the URL for the proxy socks server - TemplatesDirectory string // TemplatesDirectory is the directory to use for storing templates - Threads int // Thread controls the number of concurrent requests to make. - Timeout int // Timeout is the seconds to wait for a response from the server. - Retries int // Retries is the number of times to retry the request - RateLimit int // Rate-Limit of requests per specified target Debug bool // Debug mode allows debugging request/responses for the engine Silent bool // Silent suppresses any extra text and only writes found URLs on screen. Version bool // Version specifies if we should just show version and exit @@ -39,8 +25,22 @@ type Options struct { TemplateList bool // List available templates Stdin bool // Stdin specifies whether stdin input was given to the process StopAtFirstMatch bool // Stop processing template at first full match (this may break chained requests) - BulkSize int // Number of targets analyzed in parallel for each template NoMeta bool // Don't display metadata for the matches + BulkSize int // Number of targets analyzed in parallel for each template + Threads int // Thread controls the number of concurrent requests to make. + Timeout int // Timeout is the seconds to wait for a response from the server. + Retries int // Retries is the number of times to retry the request + RateLimit int // Rate-Limit of requests per specified target + Severity string // Filter templates based on their severity and only run the matching ones. + Target string // Target is a single URL/Domain to scan usng a template + Targets string // Targets specifies the targets to scan using templates. + Output string // Output is the file to write found subdomains to. + ProxyURL string // ProxyURL is the URL for the proxy server + ProxySocksURL string // ProxySocksURL is the URL for the proxy socks server + TemplatesDirectory string // TemplatesDirectory is the directory to use for storing templates + Templates multiStringFlag // Signature specifies the template/templates to use + ExcludedTemplates multiStringFlag // Signature specifies the template/templates to exclude + CustomHeaders requests.CustomHeaders // Custom global headers } type multiStringFlag []string