mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-26 05:01:53 +08:00
调整portscan结构
This commit is contained in:
+2
-2
@@ -40,8 +40,8 @@ func PortScan(hostslist []string, ports string, timeout int64) []string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//添加扫描目标
|
//添加扫描目标
|
||||||
for _, host := range hostslist {
|
for _, port := range probePorts {
|
||||||
for _, port := range probePorts {
|
for _, host := range hostslist {
|
||||||
Addrs <- Addr{host, port}
|
Addrs <- Addr{host, port}
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user