Skip to content

Commit 9f3bdbf

Browse files
committed
fix 添加参数priorityNmap允许关闭默认优先使用nmap,可以看到扫描进度,避免使用者以为程序卡死了 2022-07-09 23:53:1657382001
1 parent d614f76 commit 9f3bdbf

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"httpx": {} // httpx 配置,
9595
"enableEsSv": true, // 开启结果send 到es
9696
"esthread": 8 // 结果写入Elasticsearch的线程数,
97-
"esUrl": "http://127.0.0.1:9200/" // Elasticsearch url
97+
"esUrl": "http://127.0.0.1:9200/%s_index/_doc/%s" // Elasticsearch url
9898
}
9999
```
100100

config/config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"KsubdomainRegxp": "([0-9a-zA-Z\\-]+\\.[0-9a-zA-Z\\-]+)$",
5656
"naabu_dns": {},
5757
"naabu": {"TopPorts": "1000","ScanAllIPS": true},
58+
"priorityNmap": true,
5859
"nuclei": {},
5960
"enablEmbedYaml": true,
6061
"httpx": {},

config/config_me.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"naabu_dns": {},
5757
"naabu": {"TopPorts": "1000","ScanAllIPS": true},
5858
"nuclei": {},
59+
"priorityNmap": true,
5960
"enablEmbedYaml": true,
6061
"httpx": {},
6162
"enableEsSv": true,

pkg/config.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ func GetNmap() string {
165165
var hvNmap = false
166166

167167
func CheckHvNmap() bool {
168+
if "true" != GetVal("priorityNmap") {
169+
return false
170+
}
168171
if hvNmap {
169172
return hvNmap
170173
}

0 commit comments

Comments
 (0)