MCPcopy Create free account
hub / github.com/adeljck/PassGet / GetFinalShell

Function GetFinalShell

modules/run/get.go:43–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 }
42}
43func 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}
56func GetNaviCat() {
57 if ServerDetails, err := navicat.Get(); err == nil {
58 content := fmt.Sprintf("******************navicat******************\n")

Callers 2

RunFunction · 0.85
runAllFunction · 0.85

Calls 2

GetFunction · 0.92
OutPutToFileFunction · 0.92

Tested by

no test coverage detected