termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
13.11k stars 3.01k forks source link

[Bug]: Ettercap(in root-repo)automatically downgrades to non root privileges and crash #20082

Closed ghost closed 5 months ago

ghost commented 5 months ago

Problem description

When Ettercap starts, the permission is lowered from root to illegal UIDs and GIDs that have been blocked by the system kernel. Although this may be done for safety reasons, I am certain that it will lead to very serious compatibility issues. Please remove the downgrade function. After all, I cannot decompile my Linux kernel. Thank you.

What steps will reproduce the bug?

u0_a135@localhost~/suroot$ ../tsu4vivo root@localhost~# ls arpspoof.py pig.py root@localhost~# ettercap -T

ettercap 0.8.3.1 copyright 2001-2020 Ettercap Development Team

Listening on: wlan0 -> (A Mac Address) 192.168../255.255.. fe80::/64(A IPV6 Address)

SSL dissection needs a valid 'redir_command_on' script in the etter.conf file

Privileges dropped to EUID 65534 EGID 65534...

0 plugins 42 protocol dissectors 57 ports monitored

ERROR : 13, Permission denied

[/home/builder/.termux-build/ettercap/src/src/ec_manuf.c:manuf_init:128]

Cannot open etter.finger.mac

What is the expected behavior?

No response

System information

termux-info:

Termux Variables:
TERMUX_APK_RELEASE=GITHUB
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=4291
TERMUX_IS_DEBUGGABLE_BUILD=1
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://mirrors.tuna.tsinghua.edu.cn/termux/apt/termux-main stable main
# tur-repo (sources.list.d/tur.list)
deb https://tur.kcubeterm.com tur-packages tur tur-on-device tur-continuous tur-hacking
Updatable packages:
All packages up to date
termux-tools version:
1.42.1
Android version:
12
Kernel build information:
Linux localhost 4.14.141+ #1 SMP PREEMPT Thu Nov 30 17:24:16 CST 2023 aarch64 Android
Device manufacturer:
unknown
Device model:
Phh-Treble vanilla
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
ghost commented 5 months ago

https://github.com/termux/termux-packages/pull/20090 Please merge it. Thank you.