Skip to content

Commit e414ce7

Browse files
committed
fix -l hostfile is url can not do nmap bug 2022-07-08 23:35:1657294532
1 parent 293ce0a commit e414ce7

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

config/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"EnableKsubdomain": true,
5555
"KsubdomainRegxp": "([0-9a-zA-Z\\-]+\\.[0-9a-zA-Z\\-]+)$",
5656
"naabu_dns": {},
57-
"naabu": {"TopPorts": "full","ScanAllIPS": true},
57+
"naabu": {"TopPorts": "1000","ScanAllIPS": true},
5858
"nuclei": {},
5959
"enablEmbedYaml": true,
6060
"httpx": {},

config/config_me.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"EnableKsubdomain": true,
5555
"KsubdomainRegxp": "([0-9a-zA-Z\\-]+\\.[0-9a-zA-Z\\-]+)$",
5656
"naabu_dns": {},
57-
"naabu": {"TopPorts": "full","ScanAllIPS": true},
57+
"naabu": {"TopPorts": "1000","ScanAllIPS": true},
5858
"nuclei": {},
5959
"enablEmbedYaml": true,
6060
"httpx": {},

pkg/hydra/doNmapResult.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ func DoParseXml(s string, wg *sync.WaitGroup, bf *bytes.Buffer) {
5252
szPort := GetAttr(x.Attr, "portid")
5353
port, _ := strconv.Atoi(szPort)
5454
service := GetAttr(x.SelectElement("service").Attr, "name")
55-
bf.Write([]byte(fmt.Sprintf("%s:%s\n", ip, szPort)))
55+
//bf.Write([]byte(fmt.Sprintf("%s:%s\n", ip, szPort)))
56+
bf.Write([]byte(fmt.Sprintf("http://%s:%s\n", ip, szPort)))
5657
wg.Add(1)
5758
go CheckWeakPassword(ip, service, port, wg)
5859
// 存储结果到其他地方

pkg/naabu/v2/pkg/runner/targets.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,11 @@ func (r *Runner) DoTargets() (bool, error) {
123123
aR = append(aR, r.DoDns2Ips(j)...)
124124
}
125125
aR = append(aR, a1...)
126+
continue
126127
}
128+
} else {
129+
aR = append(aR, x1.Hostname())
130+
continue
127131
}
128132
}
129133
} else if govalidator.IsDNSName(x) {

0 commit comments

Comments
 (0)