jorhelp / Ingram

网络摄像头漏洞扫描工具 | Webcam vulnerability scanning tool
GNU General Public License v3.0
1.7k stars 273 forks source link

Fixed the BUG(OSError: [Errno 25] Inappropriate ioctl for device) tha… #39

Closed Haoke98 closed 1 year ago

Haoke98 commented 1 year ago

…t has been occurred when use this script on background via nohup. nohup python3 run_ingram.py -i targets.txt -o 218 -t 1248 &

Traceback (most recent call last):
  File "/home/projects/Ingram/run_ingram.py", line 10, in <module>
    from Ingram.utils import config
  File "/home/projects/Ingram/Ingram/utils/__init__.py", line 4, in <module>
    from Ingram.utils.logo import logo
  File "/home/projects/Ingram/Ingram/utils/logo.py", line 351, in <module>
    logo = generate_logo()
  File "/home/projects/Ingram/Ingram/utils/logo.py", line 329, in generate_logo
    if font_width + icon_width + 2 < os.get_terminal_size()[0]:
OSError: [Errno 25] Inappropriate ioctl for device