update nobr

This commit is contained in:
影舞者
2022-01-10 16:48:28 +08:00
parent 9b6596315e
commit ebf990eca0
5 changed files with 24 additions and 6 deletions
+3
View File
@@ -96,6 +96,9 @@ const (
) )
func SmbGhost(info *common.HostInfo) error { func SmbGhost(info *common.HostInfo) error {
if common.IsBrute {
return nil
}
err := SmbGhostScan(info) err := SmbGhostScan(info)
return err return err
} }
+3
View File
@@ -20,6 +20,9 @@ import (
//https://github.com/wofeiwo/webcgi-exploits //https://github.com/wofeiwo/webcgi-exploits
func FcgiScan(info *common.HostInfo) { func FcgiScan(info *common.HostInfo) {
if common.IsBrute {
return
}
url := "/etc/issue" url := "/etc/issue"
if info.Path != "" { if info.Path != "" {
url = info.Path url = info.Path
+3
View File
@@ -10,6 +10,9 @@ import (
) )
func MongodbScan(info *common.HostInfo) error { func MongodbScan(info *common.HostInfo) error {
if common.IsBrute {
return nil
}
_, err := MongodbUnauth(info) _, err := MongodbUnauth(info)
if err != nil { if err != nil {
errlog := fmt.Sprintf("[-] Mongodb %v:%v %v", info.Host, info.Ports, err) errlog := fmt.Sprintf("[-] Mongodb %v:%v %v", info.Host, info.Ports, err)
+6
View File
@@ -20,6 +20,9 @@ var (
) )
func MS17010(info *common.HostInfo) error { func MS17010(info *common.HostInfo) error {
if common.IsBrute {
return nil
}
err := MS17010Scan(info) err := MS17010Scan(info)
if err != nil { if err != nil {
errlog := fmt.Sprintf("[-] Ms17010 %v %v", info.Host, err) errlog := fmt.Sprintf("[-] Ms17010 %v %v", info.Host, err)
@@ -129,6 +132,9 @@ func MS17010Scan(info *common.HostInfo) error {
//} else{fmt.Printf("\033[33m%s\tMS17-010\t(%s)\033[0m\n", ip, os)} //} else{fmt.Printf("\033[33m%s\tMS17-010\t(%s)\033[0m\n", ip, os)}
result := fmt.Sprintf("[+] %s\tMS17-010\t(%s)", ip, os) result := fmt.Sprintf("[+] %s\tMS17-010\t(%s)", ip, os)
common.LogSuccess(result) common.LogSuccess(result)
if common.SC != "" {
MS17010EXP(info)
}
// detect present of DOUBLEPULSAR SMB implant // detect present of DOUBLEPULSAR SMB implant
trans2SessionSetupRequest[28] = treeID[0] trans2SessionSetupRequest[28] = treeID[0]
trans2SessionSetupRequest[29] = treeID[1] trans2SessionSetupRequest[29] = treeID[1]
+3
View File
@@ -10,6 +10,9 @@ import (
) )
func SmbScan(info *common.HostInfo) (tmperr error) { func SmbScan(info *common.HostInfo) (tmperr error) {
if common.IsBrute {
return nil
}
starttime := time.Now().Unix() starttime := time.Now().Unix()
for _, user := range common.Userdict["smb"] { for _, user := range common.Userdict["smb"] {
for _, pass := range common.Passwords { for _, pass := range common.Passwords {