MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / cmdUse

Function cmdUse

cmd/inject-cli/main.go:428–440  ·  view source on GitHub ↗
(c *apiClient, sessionID string)

Source from the content-addressed store, hash-verified

426}
427
428func cmdUse(c *apiClient, sessionID string) {
429 sess, err := c.getSession(sessionID)
430 if err != nil {
431 fmt.Printf(" error: %v\n", err)
432 return
433 }
434
435 printSessionInfo(sess)
436 fmt.Println(" \033[90mtools | info | observe | exit | <command>\033[0m")
437 fmt.Println()
438
439 sessionREPL(c, sess)
440}
441
442func sessionREPL(c *apiClient, sess *SessionDetail) {
443 agentName := sess.UserAgent

Callers 1

mainFunction · 0.85

Calls 3

printSessionInfoFunction · 0.85
sessionREPLFunction · 0.85
getSessionMethod · 0.80

Tested by

no test coverage detected