MCPcopy Create free account
hub / github.com/evilsocket/shellz / doEnabledSelection

Function doEnabledSelection

cmd/shellz/utils.go:30–40  ·  view source on GitHub ↗
(m models.Shells, includeDisabled bool)

Source from the content-addressed store, hash-verified

28}
29
30func doEnabledSelection(m models.Shells, includeDisabled bool) models.Shells {
31 sel := models.Shells{}
32 for _, sh := range m {
33 if includeDisabled || sh.Enabled {
34 sel[sh.Name] = sh
35 } else {
36 log.Debug("skipping disabled shell %s", sh.Name)
37 }
38 }
39 return sel
40}
41
42func doShellSelection(csFilters string, includeDisabled bool) (error, models.Shells) {
43 sel := models.Shells{}

Callers 1

doShellSelectionFunction · 0.85

Calls 1

DebugMethod · 0.80

Tested by

no test coverage detected