()
| 41 | } |
| 42 | } |
| 43 | func GetFinalShell() { |
| 44 | if _, ServerDetails := finalshell.Get(""); ServerDetails != nil { |
| 45 | content := fmt.Sprintf("******************finalshell******************\n") |
| 46 | for _, Server := range ServerDetails { |
| 47 | content += fmt.Sprintf("------------------\nHost:%s\nPort:%d\nUserName:%s\nPassword:%s\nConnectionType:%s\nDiscription:%s\n------------------\n", Server.Host, Server.Port, Server.UserName, Server.PasswordPlainText, Server.ConnType, Server.Description) |
| 48 | } |
| 49 | content += fmt.Sprintf("************************************************************\n") |
| 50 | e := utils.OutPutToFile(content, browser2.OutputDir) |
| 51 | if e != nil { |
| 52 | log.Printf("get finalshell data error %v", e) |
| 53 | } |
| 54 | } |
| 55 | } |
| 56 | func GetNaviCat() { |
| 57 | if ServerDetails, err := navicat.Get(); err == nil { |
| 58 | content := fmt.Sprintf("******************navicat******************\n") |
no test coverage detected