This commit is contained in:
shadow1ng
2020-11-14 00:27:55 +08:00
parent 58ae604eea
commit f89feaf89f
10 changed files with 220 additions and 81 deletions
+9
View File
@@ -5,6 +5,7 @@ import (
"flag"
"fmt"
"os"
"strconv"
"strings"
)
@@ -114,4 +115,12 @@ func ParseScantype(Info *HostInfo){
}
os.Exit(0)
}
if Info.Scantype != "all" && Info.Ports != DefaultPorts{
ScanPort := ParsePort(Info.Ports)[0]
Info.Ports = strconv.Itoa(ScanPort)
fmt.Println("if -m and -p only scan the first port:",Info.Ports)
for name,_:=range PORTList{
PORTList[name] = ScanPort
}
}
}