From c06d6a6a57d1680722db5927dba20e9e3dbc006b Mon Sep 17 00:00:00 2001 From: zy9ard3 <67743789+zy9ard3@users.noreply.github.com> Date: Wed, 27 Mar 2024 20:57:47 +0530 Subject: [PATCH 1/2] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9bef2334..2011262e 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,7 @@ Flags: INPUT: -u, -list string[] target url / list to crawl -resume string resume scan using resume.cfg + -e, -exclude string[] exclude host matching specified filter ('cdn', 'private-ips', cidr, ip, regex) CONFIGURATION: -r, -resolvers string[] list of custom resolver (file or comma separated) From f2513e129cdd8a8ee56f37bb17305cd91f26fc7c Mon Sep 17 00:00:00 2001 From: shubo6 <814183583@qq.com> Date: Wed, 8 May 2024 16:09:29 +0800 Subject: [PATCH 2/2] fix the error of using path as filepath change path.Join => filepath.Join --- pkg/output/fields.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/output/fields.go b/pkg/output/fields.go index 72eefe56..ab8666b7 100644 --- a/pkg/output/fields.go +++ b/pkg/output/fields.go @@ -5,6 +5,7 @@ import ( "net/url" "os" "path" + "path/filepath" "strings" "github.com/projectdiscovery/gologger" @@ -84,7 +85,7 @@ func storeFields(output *Result, storeFields []string) { } func appendToFileField(parsed *url.URL, field, data string) { - file, err := os.OpenFile(path.Join(storeFieldsDirectory, fmt.Sprintf("%s_%s_%s.txt", parsed.Scheme, parsed.Hostname(), field)), os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666) + file, err := os.OpenFile(filepath.Join(storeFieldsDirectory, fmt.Sprintf("%s_%s_%s.txt", parsed.Scheme, parsed.Hostname(), field)), os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666) if err != nil { return }