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

Function isWindows

internal/bridge/module_shell_adapters.go:35–37  ·  view source on GitHub ↗

isWindows returns true if osName indicates Windows.

(osName string)

Source from the content-addressed store, hash-verified

33
34// isWindows returns true if osName indicates Windows.
35func isWindows(osName string) bool {
36 return strings.EqualFold(osName, "Windows")
37}
38
39// ---------------------------------------------------------------------------
40// Shared response builders

Callers 15

netstatCommandFunction · 0.85
psCommandFunction · 0.85
lsCommandFunction · 0.85
pwdCommandFunction · 0.85
catCommandFunction · 0.85
envCommandFunction · 0.85
cdCommandFunction · 0.85
killCommandFunction · 0.85
mkdirCommandFunction · 0.85
rmCommandFunction · 0.85
cpCommandFunction · 0.85
mvCommandFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestIsWindows_AdapterFunction · 0.68
TestIsWindowsFunction · 0.68