{"modulePath":"github.com/projectdiscovery/utils","version":"v0.12.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package executil\n\n## Functions\n\n```go\nfunc Run(cmd string) (string, error)\n```\nRun the specified command in os shell (sh or powershell.exe) and return the output\n\n```go\nfunc RunPS(cmd string) (string, error)\n```\nRunPS runs the specified command through powershell.exe\n\n```go\nfunc RunSafe(cmd ...string) (string, error)\n```\nRunSafe necessarily does not prevent command injection but prevents/limits damage to an extent \"the os/exec package intentionally does not invoke the system shell and does not expand any glob patterns or handle other expansions, pipelines, or redirections typically done by shells\" This also mitigates windows security risk in go\\\u003c1.19. refer [https://pkg.go.dev/os/exec](https://pkg.go.dev/os/exec)\n\n```go\nfunc RunSh(cmd ...string) (string, error)\n```\nRunSh the specified command through sh\n\n","path":"github.com/projectdiscovery/utils/exec","name":"executil","synopsis":"","isRedistributable":true}
