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

Function rmCommand

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

Source from the content-addressed store, hash-verified

176}
177
178func rmCommand(osName string, req *implantpb.Request) string {
179 path := firstArg(req)
180 if isWindows(osName) {
181 return fmt.Sprintf(`del /f /q "%s" 2>nul & rmdir /s /q "%s" 2>nul`, path, path)
182 }
183 return fmt.Sprintf(`rm -rf "%s"`, path)
184}
185
186func cpCommand(osName string, req *implantpb.Request) string {
187 src := firstArg(req)

Callers 1

TestRm_Command_LinuxFunction · 0.85

Calls 2

firstArgFunction · 0.85
isWindowsFunction · 0.85

Tested by 1

TestRm_Command_LinuxFunction · 0.68