mirror of
https://github.com/bettercap/bettercap
synced 2025-07-07 13:32:07 -07:00
new: implemented '!shell-command' session command (closes #18)
This commit is contained in:
parent
63761b0254
commit
9f31cfa4b9
3 changed files with 24 additions and 0 deletions
5
core/core_unix.go
Normal file
5
core/core_unix.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
package core
|
||||
|
||||
func Shell(cmd string) (string, error) {
|
||||
return Exec("/bin/sh", []string{"-c", cmd})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue