arsenal icon indicating copy to clipboard operation
arsenal copied to clipboard

Input/output error - termios.TIOCSTI

Open v1k1ngfr opened this issue 1 year ago • 3 comments

          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

v1k1ngfr avatar Feb 08 '24 17:02 v1k1ngfr

This error is catched and the workaround above is suggested. More details on this PR : https://github.com/Orange-Cyberdefense/arsenal/pull/82

v1k1ngfr avatar Mar 04 '24 08:03 v1k1ngfr