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

Function killCommand

internal/bridge/module_shell_adapters.go:162–168  ·  view source on GitHub ↗

--------------------------------------------------------------------------- Simple exec modules (return ExecResponse, no custom parser) ---------------------------------------------------------------------------

(osName string, req *implantpb.Request)

Source from the content-addressed store, hash-verified

160// ---------------------------------------------------------------------------
161
162func killCommand(osName string, req *implantpb.Request) string {
163 pid := firstArg(req)
164 if isWindows(osName) {
165 return fmt.Sprintf("taskkill /F /PID %s", pid)
166 }
167 return fmt.Sprintf("kill -9 %s", pid)
168}
169
170func mkdirCommand(osName string, req *implantpb.Request) string {
171 path := firstArg(req)

Callers 2

TestKill_Command_LinuxFunction · 0.85
TestKill_Command_WindowsFunction · 0.85

Calls 2

firstArgFunction · 0.85
isWindowsFunction · 0.85

Tested by 2

TestKill_Command_LinuxFunction · 0.68
TestKill_Command_WindowsFunction · 0.68