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

Function mkdirCommand

internal/bridge/module_shell_adapters.go:170–176  ·  view source on GitHub ↗
(osName string, req *implantpb.Request)

Source from the content-addressed store, hash-verified

168}
169
170func mkdirCommand(osName string, req *implantpb.Request) string {
171 path := firstArg(req)
172 if isWindows(osName) {
173 return fmt.Sprintf(`mkdir "%s"`, path)
174 }
175 return fmt.Sprintf(`mkdir -p "%s"`, path)
176}
177
178func rmCommand(osName string, req *implantpb.Request) string {
179 path := firstArg(req)

Callers 1

TestMkdir_Command_LinuxFunction · 0.85

Calls 2

firstArgFunction · 0.85
isWindowsFunction · 0.85

Tested by 1

TestMkdir_Command_LinuxFunction · 0.68