You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wfuzz doesn't work when environment is non-terminal or terminal emulator is detached.
I use SSH to run wfuzz on my server. It works normally when I run it directly but it doesn't work when I try to run it in the background then close the terminal.
I think it should check the environment before printing text.
Exception details will be saved to /tmp/nohup.out file.
Traceback of the exception is similar to the below one:
Traceback (most recent call last):
File "/usr/local/bin/wfuzz", line 7, in <module>
from wfuzz.wfuzz import main
File "/usr/local/lib/python3.7/dist-packages/wfuzz/wfuzz.py", line 8, in <module>
from .ui.console.mvc import Controller, KeyPress, View
File "/usr/local/lib/python3.7/dist-packages/wfuzz/ui/console/mvc.py", line 143, in <module>
class View:
File "/usr/local/lib/python3.7/dist-packages/wfuzz/ui/console/mvc.py", line 144, in View
widths = [10, 8, 6, 6, 9, getTerminalSize()[0] - 65]
File "/usr/local/lib/python3.7/dist-packages/wfuzz/ui/console/output.py", line 80, in getTerminalSize
tuple_xy = _getTerminalSize_linux()
File "/usr/local/lib/python3.7/dist-packages/wfuzz/ui/console/output.py", line 154, in _getTerminalSize_linux
return int(cr[1]), int(cr[0])
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
I think the problem is that function _getTerminalSize_linux() can't get size of the detached terminal emulator.
The text was updated successfully, but these errors were encountered:
wfuzz doesn't work on non-terminal environments
Version info:
wfuzz --version: 2.4
python3 --version: Python 3.7.3
Details
wfuzz doesn't work when environment is non-terminal or terminal emulator is detached.
I use SSH to run wfuzz on my server. It works normally when I run it directly but it doesn't work when I try to run it in the background then close the terminal.
I think it should check the environment before printing text.
To reproduce the issue:
Exception details will be saved to /tmp/nohup.out file.
Traceback of the exception is similar to the below one:
I think the problem is that function _getTerminalSize_linux() can't get size of the detached terminal emulator.
The text was updated successfully, but these errors were encountered: