Install problem on Samsungs7 bettercap and termux-sudo
Hello the last Days i was trying to install Bettercap on a rooted Samsung s6 with " SuperSu# " and " termux-sudo " running.
1.step pkg update pkg upgrade -y pkg install golang git libpcap-dev wget -y
2.step go get github.com/bettercap/bettercap cd go/bin ./bettercap (error socket for SIOCETHTOOL_GET_TS_INFO): Permission denied)
3.step apt update && apt upgrade && apt full upgrade git clone https://gitlab.com/st42/termux-sudo.git cd termux-sudo pkg install ncurses-utils cat sudo > /data/data/com.termux/files/usr/bin/sudo chmod 755 /data/data/com.termux/files/usr/bin/sudo
4.step sudo ./bettercap ERROR for 'getprop [net.dns1]' : fork/exec /data/data/com.termux/files/usr/bin/getprop: permission denied
5.step I tried this script (https://gist.github.com/cswl/cd13971e644dc5ced7b2), but same issue as before!
ROOT_HOME=$HOME/.suroot case "$1" in '-')
check if user has set shell
if test -x "$HOME/.termux/shell" ; then ROOT_SHELL=$HOME/.termux/shell
has installed bash?
elif test -x "$PREFIX/bin/bash" ; then ROOT_SHELL="$PREFIX/bin/bash"
no..fallback to default ash.
else
ROOT_SHELL="$PREFIX/bin/ash"
fi
exec su -c "LD_LIBRARY_PATH=PREFIX/lib HOME=ROOT_HOME $ROOT_SHELL"
;;
''|'--help')
echo 'Sets up environment to allow termux programs to run with root access'
echo 'Not the sudo as found in other *nixes'
echo
echo 'Usage: sudo [-|cmd args]'
echo '- : Try to start a shell of termux as root shell. su by default runs /system/bin/sh.'
echo 'cmd : Run termux program with args as root.'
;;
*)
exec su -c "LD_LIBRARY_PATH=PREFIX/lib HOME=ROOT_HOME ${@}";
;;
esac
6.step Same Error again permission denied somebody have an Idea?
cd go/bin sudo ./bettercap ERROR for 'getprop [net.dns1]' : fork/exec /data/data/com.termux/files/usr/bin/getprop: permission denied 192.168178.0/24 > 192.168.178.46 >> ERROR for 'ip [neigh] ': fork/exec /data/data/com.termux/files/usr/bin/ip: permission denied [08:34:12] [sys.log] [err] fork/exec /data/data/com.termux/files/usr/bin/ip: permission denied