From d91073bfffb16197e3368d2c6846b9dbc302bc67 Mon Sep 17 00:00:00 2001 From: wjlin0 Date: Sun, 28 Jan 2024 03:40:33 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=89=20CVE-2024-23897?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 - pkg/output/output.go | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 pkg/output/output.go diff --git a/.gitignore b/.gitignore index 6c39028..a38fc3e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,4 @@ *.DS_Store .idea/ test/ -output/ diff --git a/pkg/output/output.go b/pkg/output/output.go new file mode 100644 index 0000000..1b85c94 --- /dev/null +++ b/pkg/output/output.go @@ -0,0 +1,18 @@ +package output + +type ResultEvent struct { + // Host is the host input on which match was found. + Host string `json:"host,omitempty"` + // Port is port of the host input on which match was found (if applicable). + Port int `json:"port,omitempty"` + // Scheme is the scheme of the host input on which match was found (if applicable). + Scheme string `json:"scheme,omitempty"` + // URL is the Base URL of the host input on which match was found (if applicable). + URL string `json:"url,omitempty"` + //Response is the response of the input. + Response string `json:"response,omitempty"` + // Error is the error that occurred while processing the input. + Error string `json:"error,omitempty"` + // Filename is the filename of the input. + Filename string `json:"filename,omitempty"` +}