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 · 3 comments
Open

Input/output error - termios.TIOCSTI #77

v1k1ngfr opened this issue Feb 8, 2024 · 3 comments
Labels
bug Something isn't working

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

@v1k1ngfr v1k1ngfr added the bug Something isn't working label May 21, 2024
@trb143
Copy link
Contributor

trb143 commented Dec 5, 2024

Is anyone working on this, I can have a look but I do not want to waste my time and effort.

@v1k1ngfr
Copy link
Collaborator Author

v1k1ngfr commented Dec 6, 2024

Hi Tim,
we are not currently working on this issue because it seems that many changes are involved, but we'd be happy to hear your ideas.

trb143 added a commit to trb143/arsenal that referenced this issue Dec 9, 2024
Fixes bug Orange-Cyberdefense#77
Use a subprocess to provide the same behaviour.
Fix the termios calls when the keyboard is proccess to exit a run part
way through (existing issue).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants