From fcc2c9dc31bd273a090384faf1afbc7cf6614c52 Mon Sep 17 00:00:00 2001 From: yhy <31311038+yhy0@users.noreply.github.com> Date: Wed, 15 May 2024 21:32:07 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E5=A2=9E=E5=8A=A0=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E6=94=B6=E9=9B=86;=E8=AF=B7=E6=B1=82/?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=AD=98=E5=9C=A8=E6=95=8F=E6=84=9F=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E8=AF=86=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SCopilot/templates/SCopilot.html | 97 +++++++++++----- SCopilot/web.go | 12 ++ conf/banner.go | 2 +- conf/file.go | 67 +++++++++++- conf/type.go | 37 ++++--- go.mod | 1 + go.sum | 4 +- pkg/input/input.go | 8 +- pkg/output/SCopilot.go | 27 +++++ pkg/output/output.go | 13 ++- pkg/output/type.go | 23 ++-- pkg/task/task.go | 36 +++++- pkg/util/uniqueness.go | 42 +------ pkg/util/url.go | 95 ++++++++++++++++ pkg/util/util.go | 122 +++++++++++---------- scan/gadget/collection/sensitive.go | 88 +++++++++++++++ scan/plugins.go | 3 + Jie_config.yaml => test/Jie_config.yaml | 66 ++++++++++- test/web_test.go | 140 ++++++++++++++++++++++++ 19 files changed, 714 insertions(+), 169 deletions(-) create mode 100644 pkg/util/url.go create mode 100644 scan/gadget/collection/sensitive.go rename Jie_config.yaml => test/Jie_config.yaml (90%) create mode 100644 test/web_test.go diff --git a/SCopilot/templates/SCopilot.html b/SCopilot/templates/SCopilot.html index 3a6d02c..5c67ec1 100644 --- a/SCopilot/templates/SCopilot.html +++ b/SCopilot/templates/SCopilot.html @@ -80,23 +80,25 @@

Security Copilot Report - Jie

基本信息

{{ .data.Target }}

- {{ if .ipInfo.Cdn }} - cdn - {{ end }} + {{ if .ipInfo }} + {{ if .ipInfo.Cdn }} + cdn + {{ end }} - {{ if .ipInfo.Value }} - {{ .ipInfo.Value }} - {{ .ipInfo.Type }} - {{ end }} -

- {{ if .ipInfo.AllRecords }} -
- -
+ {{ if .ipInfo.Value }} + {{ .ipInfo.Value }} + {{ .ipInfo.Type }} + {{ end }} +

+ {{ if .ipInfo.AllRecords }} +
+ +
+ {{ end }} {{ end }}
@@ -120,11 +122,13 @@

端口信息

- {{ range $port, $service := .ipInfo.PortService }} - - {{ $port }} - {{ $service }} - + {{ if .ipInfo }} + {{ range $port, $service := .ipInfo.PortService }} + + {{ $port }} + {{ $service }} + + {{ end }} {{ end }} @@ -142,12 +146,9 @@

端口信息