调整portscan结构

This commit is contained in:
shadow1ng 2021-03-08 10:16:21 +08:00
parent 3ca56ff222
commit d311d8cb79
1 changed files with 2 additions and 2 deletions

View File

@ -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}
wg.Add(1)
}