mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-23 11:41:53 +08:00
update
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user