mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-07-14 05:12:36 +08:00
-h 支持域名
This commit is contained in:
parent
584771114d
commit
2d496cafc9
@ -119,6 +119,9 @@ func ParseInput(Info *HostInfo) {
|
|||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if BruteThread <= 0 {
|
||||||
|
BruteThread = 1
|
||||||
|
}
|
||||||
if TmpOutputfile != "" {
|
if TmpOutputfile != "" {
|
||||||
if !strings.Contains(Outputfile, "/") && !strings.Contains(Outputfile, `\`) {
|
if !strings.Contains(Outputfile, "/") && !strings.Contains(Outputfile, `\`) {
|
||||||
Outputfile = getpath() + TmpOutputfile
|
Outputfile = getpath() + TmpOutputfile
|
||||||
|
@ -96,6 +96,9 @@ func parseIP(ip string) []string {
|
|||||||
// return nil
|
// return nil
|
||||||
// }
|
// }
|
||||||
return []string{ip}
|
return []string{ip}
|
||||||
|
//192.168.1.1-192.168.1.100
|
||||||
|
case strings.Contains(ip, "-"):
|
||||||
|
return parseIP1(ip)
|
||||||
//处理单个ip
|
//处理单个ip
|
||||||
default:
|
default:
|
||||||
testIP := net.ParseIP(ip)
|
testIP := net.ParseIP(ip)
|
||||||
|
Loading…
Reference in New Issue
Block a user