Autorecon ability to run in background
codevallsma opened this issue · comments
Hello @Tib3rius !
I have been playing around with your tool and I think it's awesome!
I really like it and i would love to use it more, however when I try to execute it in background with nohup i get the following error:
Traceback (most recent call last):
File "/myuser/.local/bin/autorecon", line 5, in <module>
from autorecon.main import main
File "/myuser/.local/pipx/venvs/autorecon/lib/python3.10/site-packages/autorecon/main.py", line 53, in <module>
terminal_settings = termios.tcgetattr(sys.stdin.fileno())
termios.error: (25, 'Inappropriate ioctl for device')
Could you try to fix this?
Thanks in advance! :)
@codevallsma could you check out this branch (https://github.com/Tib3rius/AutoRecon/tree/background-fix) and see if this fixes it?
Unfortunately, the fix didn't work for me.
Thanks @codevallsma, this has been a really annoying issue for me.
Traceback (most recent call last):
File "/home/scanner/AutoRecon-background-fix/autorecon.py", line 6, in
main()
File "/home/scanner/AutoRecon-background-fix/autorecon/main.py", line 1629, in main
asyncio.run(run())
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/home/scanner/AutoRecon-background-fix/autorecon/main.py", line 1517, in run
terminal_settings = termios.tcgetattr(sys.stdin.fileno())
termios.error: (25, 'Inappropriate ioctl for device')
@kirov70 @codevallsma sorry I must have been half asleep when I posted, I didn't include the instruction that you need to run AutoRecon with --disable-keyboard-control
on the new branch. That should hopefully work because it prevents that troublesome code from ever running. Can you check again?