termux/termux-root-packages

Airmon-ng doesn't work

avevad opened this issue · 1 comments

When I execute tsudo airmon-ng start wlan0 it gives me:

/data/data/com.termux/files/usr/bin/airmon-ng: 59: /data/data/com.termux/files/usr/bin/airmon-ng: id: Permission denied
Unable to determine user id, permission errors may occur.
/data/data/com.termux/files/usr/bin/airmon-ng: 75: /data/data/com.termux/files/usr/bin/airmon-ng: uname: Permission denied
Your kernel has module support but you don't have modprobe installed.
It is highly recommended to install modprobe (typically from kmod).
Your kernel has module support but you don't have modinfo installed.
It is highly recommended to install modinfo (typically from kmod).
Warning: driver detection without modinfo may yield inaccurate results.
Your kernel supports rfkill but you don't have rfkill installed.
To ensure devices are unblocked you must install rfkill.
/data/data/com.termux/files/usr/bin/airmon-ng: 171: /data/data/com.termux/files/usr/bin/airmon-ng: ls: Permission denied

/data/data/com.termux/files/usr/bin/airmon-ng: 1085: /data/data/com.termux/files/usr/bin/airmon-ng: ls: Permission denied
/data/data/com.termux/files/usr/bin/airmon-ng: 982: /data/data/com.termux/files/usr/bin/airmon-ng: grep: Permission denied
/data/data/com.termux/files/usr/bin/airmon-ng: 989: /data/data/com.termux/files/usr/bin/airmon-ng: grep: Permission denied
/data/data/com.termux/files/usr/bin/airmon-ng: 1008: /data/data/com.termux/files/usr/bin/airmon-ng: ps: Permission denied
/data/data/com.termux/files/usr/bin/airmon-ng: 1008: /data/data/com.termux/files/usr/bin/airmon-ng: grep: Permission denied
/data/data/com.termux/files/usr/bin/airmon-ng: 1013: [: -gt: unexpected operator
/data/data/com.termux/files/usr/bin/airmon-ng: 1024: [: -gt: unexpected operator

PHY     Interface       Driver          Chipset

and does not enable monitor mode.

The "Permission denied" errors seem to happen on newer android versions if your ROM has selinux set to enforcing. Try to change it with /system/bin/setenforce 0 or flash another ROM that has selinux set to permissive.