new: implemented '!shell-command' session command (closes #18)

This commit is contained in:
evilsocket 2018-01-16 10:10:56 +01:00
parent 63761b0254
commit 9f31cfa4b9
3 changed files with 24 additions and 0 deletions

5
core/core_unix.go Normal file
View file

@ -0,0 +1,5 @@
package core
func Shell(cmd string) (string, error) {
return Exec("/bin/sh", []string{"-c", cmd})
}