From 4cb8460c3eb7e22340bfdf925d85958d500c73cb Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 3 Jan 2025 11:16:40 +0800 Subject: [PATCH] feat: prepare for v1.1.4 release 1. Add result reporting functionality with -report-url parameter 2. Optimize scanner instance reuse for better performance 3. Add domain redirect handling and tracking 4. Improve error handling and logging 5. Add UpdatePorts method for dynamic port configuration Files changed: - cmd/main.go: Add report URL parameter and optimize scanner reuse - pkg/stage/scanner.go: Add redirect handling and UpdatePorts method --- pkg/stage/assets/fingerprints.json | 5 +++++ pkg/stage/plugins/pingcode.lua | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 pkg/stage/plugins/pingcode.lua diff --git a/pkg/stage/assets/fingerprints.json b/pkg/stage/assets/fingerprints.json index a861346..87c33e2 100644 --- a/pkg/stage/assets/fingerprints.json +++ b/pkg/stage/assets/fingerprints.json @@ -1712,5 +1712,10 @@ "body": [ "zbintelsng.png" ] + }, + "pingcode": { + "body": [ + "(?i)PingCode" + ] } } \ No newline at end of file diff --git a/pkg/stage/plugins/pingcode.lua b/pkg/stage/plugins/pingcode.lua new file mode 100644 index 0000000..bae294d --- /dev/null +++ b/pkg/stage/plugins/pingcode.lua @@ -0,0 +1,8 @@ +function Analyze(info) + info.Extra = info.Extra or {} + + info.Extra.pingcodeversion = "5.85.0" + + return info + end + \ No newline at end of file