mirror of https://github.com/qwqdanchun/fscan.git
socks代理时,自动-np
This commit is contained in:
parent
98569648bb
commit
4908720acb
|
@ -23,7 +23,7 @@ func Scan(info common.HostInfo) {
|
||||||
web := strconv.Itoa(common.PORTList["web"])
|
web := strconv.Itoa(common.PORTList["web"])
|
||||||
ms17010 := strconv.Itoa(common.PORTList["ms17010"])
|
ms17010 := strconv.Itoa(common.PORTList["ms17010"])
|
||||||
if len(Hosts) > 0 || len(common.HostPort) > 0 {
|
if len(Hosts) > 0 || len(common.HostPort) > 0 {
|
||||||
if common.IsPing == false && len(Hosts) > 0 {
|
if common.NoPing == false && len(Hosts) > 0 {
|
||||||
Hosts = CheckLive(Hosts, common.Ping)
|
Hosts = CheckLive(Hosts, common.Ping)
|
||||||
fmt.Println("[*] Icmp alive hosts len is:", len(Hosts))
|
fmt.Println("[*] Icmp alive hosts len is:", len(Hosts))
|
||||||
}
|
}
|
||||||
|
|
|
@ -175,6 +175,7 @@ func ParseInput(Info *HostInfo) {
|
||||||
}
|
}
|
||||||
if Socks5Proxy != "" && !strings.HasPrefix(Socks5Proxy, "socks5://") {
|
if Socks5Proxy != "" && !strings.HasPrefix(Socks5Proxy, "socks5://") {
|
||||||
Socks5Proxy = "socks5://" + Socks5Proxy
|
Socks5Proxy = "socks5://" + Socks5Proxy
|
||||||
|
NoPing = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,7 @@ var (
|
||||||
WebTimeout int64
|
WebTimeout int64
|
||||||
TmpOutputfile string
|
TmpOutputfile string
|
||||||
TmpSave bool
|
TmpSave bool
|
||||||
IsPing bool
|
NoPing bool
|
||||||
Ping bool
|
Ping bool
|
||||||
Pocinfo PocInfo
|
Pocinfo PocInfo
|
||||||
IsWebCan bool
|
IsWebCan bool
|
||||||
|
|
|
@ -62,7 +62,7 @@ func Flag(Info *HostInfo) {
|
||||||
flag.BoolVar(&IsWebCan, "nopoc", false, "not to scan web vul")
|
flag.BoolVar(&IsWebCan, "nopoc", false, "not to scan web vul")
|
||||||
flag.BoolVar(&IsBrute, "nobr", false, "not to Brute password")
|
flag.BoolVar(&IsBrute, "nobr", false, "not to Brute password")
|
||||||
flag.IntVar(&BruteThread, "br", 1, "Brute threads")
|
flag.IntVar(&BruteThread, "br", 1, "Brute threads")
|
||||||
flag.BoolVar(&IsPing, "np", false, "not to ping")
|
flag.BoolVar(&NoPing, "np", false, "not to ping")
|
||||||
flag.BoolVar(&Ping, "ping", false, "using ping replace icmp")
|
flag.BoolVar(&Ping, "ping", false, "using ping replace icmp")
|
||||||
flag.StringVar(&TmpOutputfile, "o", "result.txt", "Outputfile")
|
flag.StringVar(&TmpOutputfile, "o", "result.txt", "Outputfile")
|
||||||
flag.BoolVar(&TmpSave, "no", false, "not to save output log")
|
flag.BoolVar(&TmpSave, "no", false, "not to save output log")
|
||||||
|
|
Loading…
Reference in New Issue