Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input/output error - termios.TIOCSTI #77

Open
v1k1ngfr opened this issue Feb 8, 2024 · 1 comment
Open

Input/output error - termios.TIOCSTI #77

v1k1ngfr opened this issue Feb 8, 2024 · 1 comment

Comments

@v1k1ngfr
Copy link
Collaborator

v1k1ngfr commented Feb 8, 2024

          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 #69 (comment)

@v1k1ngfr
Copy link
Collaborator Author

v1k1ngfr commented Mar 4, 2024

This error is catched and the workaround above is suggested.
More details on this PR : #82

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant