Skip to content

Commit 0ab860e

Browse files
author
Your Name
committed
feat: 添加TCP服务探测和UDP真实探测
- 添加TCP协议探测包 (RPC, rsync, MSSQL, PostgreSQL, Redis, MongoDB等) - 实现UDP真实探测,使用协议特定探测包消除误报 - 修复指纹匹配过于宽泛的问题 (evse, seeyon, sangfor等) - 添加RPC/rsync/NFS指纹定义 - 修复端口开放但无指纹时nodes为null的问题
1 parent e5ce602 commit 0ab860e

File tree

14 files changed

+10211
-1011
lines changed

14 files changed

+10211
-1011
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
log.json
22
nuclei-templates/
33
output/
4-
tools/pocs/
4+
tools/pocs/
5+
*.exe

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

cmd/main.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ func main() {
4646
configPath := flag.String("config", "config/config.yaml", "Path to config file")
4747
templatesDir := flag.String("templates", "templates", "Path to templates directory")
4848
enableGeo := flag.Bool("geo", false, "Enable geolocation and IP info lookup")
49-
enableCensys := flag.Bool("censys", false, "Enable Censys data enrichment")
50-
censysAPIKey := flag.String("censys-api-key", "", "Censys API Key")
51-
censysSecret := flag.String("censys-secret", "", "Censys API Secret")
5249
versionFlag := flag.Bool("version", false, "Show version information")
5350
outputFormat := flag.String("output", "", "Output format: json, html, or md")
5451
portList := flag.String("port", "", "Custom ports to scan (comma-separated, e.g., '80,443,8080')")
@@ -83,17 +80,6 @@ func main() {
8380
}
8481
}
8582

86-
if *enableCensys {
87-
if *censysAPIKey == "" || *censysSecret == "" {
88-
*censysAPIKey = os.Getenv("CENSYS_API_KEY")
89-
*censysSecret = os.Getenv("CENSYS_SECRET")
90-
}
91-
if *censysAPIKey == "" || *censysSecret == "" {
92-
log.Printf("Warning: Censys integration enabled but credentials not provided. Skipping Censys data enrichment.")
93-
*enableCensys = false
94-
}
95-
}
96-
9783
var targets []string
9884
if *targetFile != "" {
9985
data, err := os.ReadFile(*targetFile)
@@ -122,9 +108,6 @@ func main() {
122108
*configPath,
123109
*templatesDir,
124110
*enableGeo,
125-
*enableCensys,
126-
*censysAPIKey,
127-
*censysSecret,
128111
customPorts,
129112
)
130113
if err != nil {

0 commit comments

Comments
 (0)