arsenal
arsenal copied to clipboard
Input/output error - termios.TIOCSTI
Hey !
Because of TIOCSTI patch applied recently on Linux Kernel, we need to re-implement some Arsenal functions (which can take some time). Thanks @slasheur7 helping at troubleshooting this.
Here is a workaround, execute as root :
sysctl -w dev.tty.legacy_tiocsti=1
If you want this workaround to survive a reboot, add the following configuration to sysctl.conf file (root permission needed) :
echo "dev.tty.legacy_tiocsti=1" >> /etc/sysctl.conf
It works on the current Kali 2023.4 (python 3.11.7 and 3.12.1) and should also work on other Linux distro.
Of course there is security concern (ie : if you are not already root on your Linux). More information about TIOCTSI in the following kernel commit log : https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=83efeeeb3d04b22aaed1df99bc70a48fe9d22c4d
Originally posted by @v1k1ngfr in https://github.com/Orange-Cyberdefense/arsenal/issues/69#issuecomment-1871196527
This error is catched and the workaround above is suggested. More details on this PR : https://github.com/Orange-Cyberdefense/arsenal/pull/82