mirror of
https://github.com/sairson/Yasso.git
synced 2026-11-27 14:42:11 +08:00
修复ftp在爆破时未授权跑完默认字典
This commit is contained in:
@@ -90,6 +90,14 @@ func allRun(hostString string, portString string, jsonbool bool, runtime int, no
|
||||
switch p {
|
||||
case 21:
|
||||
users, pass := ReadTextToDic("ftp", UserDic, PassDic)
|
||||
// add ftp "" pass
|
||||
flag, _ := FtpConn(config.HostIn{Host: v.IP, Port: p, TimeOut: TimeDuration}, "anonymous", "")
|
||||
if flag == true {
|
||||
if flag == true && jsonbool == true {
|
||||
one.WeakPass = append(one.WeakPass, map[string]map[string]string{"ftp": {"anonymous": "null"}})
|
||||
}
|
||||
continue
|
||||
}
|
||||
burpTask(v.IP, "ftp", users, pass, p, runtime, TimeDuration, "", false, jsonbool, &one)
|
||||
case 22:
|
||||
users, pass := ReadTextToDic("ssh", UserDic, PassDic)
|
||||
|
||||
@@ -153,7 +153,6 @@ func burpTask(host, service string, users []string, pass []string, port int, thr
|
||||
if service == "mongodb" && run == true {
|
||||
BurpCall(BurpModule, "unmongodb", config.HostIn{Host: host, Port: BrutePort, TimeOut: TimeDuration}, "test", "test")
|
||||
}
|
||||
|
||||
//Println()(all,num,t)
|
||||
for i := 1; i <= t; i++ {
|
||||
wg.Add(1)
|
||||
|
||||
@@ -51,6 +51,9 @@ func FtpConn(info config.HostIn, user, pass string) (bool, error) {
|
||||
if err == nil {
|
||||
err = conn.Login(user, pass)
|
||||
if err == nil {
|
||||
if pass == "" {
|
||||
Println(fmt.Sprintf("ftp %v unauthorized", fmt.Sprintf("%v:%v", info.Host, info.Port)))
|
||||
}
|
||||
flag = true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user