mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
Merge pull request #485 from yungtravla/master
fix android shell command function
This commit is contained in:
commit
852abec22e
2 changed files with 8 additions and 1 deletions
7
core/core_android.go
Normal file
7
core/core_android.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
// +build android
|
||||
|
||||
package core
|
||||
|
||||
func Shell(cmd string) (string, error) {
|
||||
return Exec("/system/bin/sh", []string{"-c", cmd})
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
// +build !windows
|
||||
// +build !windows,!android
|
||||
|
||||
package core
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue