mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-07-14 05:12:36 +08:00
commit
4cc65afe14
@ -18,7 +18,7 @@ func NetBIOS(info *common.HostInfo) error {
|
|||||||
netbios, _ := NetBIOS1(info)
|
netbios, _ := NetBIOS1(info)
|
||||||
output := netbios.String()
|
output := netbios.String()
|
||||||
if len(output) > 0 {
|
if len(output) > 0 {
|
||||||
result := fmt.Sprintf("[*] NetBios: %-15s %s ", info.Host, output)
|
result := fmt.Sprintf("[*] NetBios: %-15s %s", info.Host, output)
|
||||||
common.LogSuccess(result)
|
common.LogSuccess(result)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
@ -237,7 +237,7 @@ func (info *NetBiosInfo) String() (output string) {
|
|||||||
}
|
}
|
||||||
if text == "" {
|
if text == "" {
|
||||||
} else if info.DomainControllers != "" {
|
} else if info.DomainControllers != "" {
|
||||||
output = fmt.Sprintf("[+]DC %-24s", text)
|
output = fmt.Sprintf("[+] DC:%-24s", text)
|
||||||
} else {
|
} else {
|
||||||
output = fmt.Sprintf("%-30s", text)
|
output = fmt.Sprintf("%-30s", text)
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ func InfoCheck(Url string, CheckData *[]CheckDatas) []string {
|
|||||||
infoname = removeDuplicateElement(infoname)
|
infoname = removeDuplicateElement(infoname)
|
||||||
|
|
||||||
if len(infoname) > 0 {
|
if len(infoname) > 0 {
|
||||||
result := fmt.Sprintf("[+] InfoScan:%-25v %s ", Url, infoname)
|
result := fmt.Sprintf("[+] InfoScan: %-25v %s ", Url, infoname)
|
||||||
common.LogSuccess(result)
|
common.LogSuccess(result)
|
||||||
return infoname
|
return infoname
|
||||||
}
|
}
|
||||||
|
@ -627,7 +627,7 @@ func DoRequest(req *http.Request, redirect bool) (*Response, error) {
|
|||||||
defer oResp.Body.Close()
|
defer oResp.Body.Close()
|
||||||
resp, err := ParseResponse(oResp)
|
resp, err := ParseResponse(oResp)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
common.LogError("[-]ParseResponse error: " + err.Error())
|
common.LogError("[-] ParseResponse error: " + err.Error())
|
||||||
//return nil, err
|
//return nil, err
|
||||||
}
|
}
|
||||||
return resp, err
|
return resp, err
|
||||||
|
@ -57,8 +57,8 @@ func Flag(Info *HostInfo) {
|
|||||||
flag.StringVar(&Passfile, "pwdf", "", "password file")
|
flag.StringVar(&Passfile, "pwdf", "", "password file")
|
||||||
flag.StringVar(&PortFile, "portf", "", "Port File")
|
flag.StringVar(&PortFile, "portf", "", "Port File")
|
||||||
flag.StringVar(&PocPath, "pocpath", "", "poc file path")
|
flag.StringVar(&PocPath, "pocpath", "", "poc file path")
|
||||||
flag.StringVar(&RedisFile, "rf", "", "redis file to write sshkey file (as: -rf id_rsa.pub) ")
|
flag.StringVar(&RedisFile, "rf", "", "redis file to write sshkey file (as: -rf id_rsa.pub)")
|
||||||
flag.StringVar(&RedisShell, "rs", "", "redis shell to write cron file (as: -rs 192.168.1.1:6666) ")
|
flag.StringVar(&RedisShell, "rs", "", "redis shell to write cron file (as: -rs 192.168.1.1:6666)")
|
||||||
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")
|
||||||
|
Loading…
Reference in New Issue
Block a user