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

Disable Exceptions in output? #1365

Open
iseries opened this issue Mar 2, 2024 · 2 comments · May be fixed by #1434
Open

Disable Exceptions in output? #1365

iseries opened this issue Mar 2, 2024 · 2 comments · May be fixed by #1434
Labels
bug Something isn't working Priority: Low
Milestone

Comments

@iseries
Copy link

iseries commented Mar 2, 2024

Is it possible to disable exceptions in the CLI Output?

I want to get rid of this:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/media/veracrypt1/Home/hTools/dirsearch/lib/core/fuzzer.py", line 246, in thread_proc
    callback(e)
  File "/media/veracrypt1/Home/hTools/dirsearch/lib/controller/controller.py", line 497, in raise_error
    raise SkipTargetInterrupt("Too many request errors")
lib.core.exceptions.SkipTargetInterrupt: Too many request errors
Exception in thread Thread-3283 (thread_proc):
Traceback (most recent call last):
  File "/media/veracrypt1/Home/hTools/dirsearch/lib/core/fuzzer.py", line 239, in thread_proc
    self.scan(self._base_path + path, scanners)
  File "/media/veracrypt1/Home/hTools/dirsearch/lib/core/fuzzer.py", line 155, in scan
    response = self._requester.request(path)
  File "/media/veracrypt1/Home/hTools/dirsearch/lib/connection/requester.py", line 222, in request
    raise RequestException(err_msg)
lib.core.exceptions.RequestException: There was a problem in the request to: https://SOME_DOMAIN.de/index.php.bak

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/media/veracrypt1/Home/hTools/dirsearch/lib/core/fuzzer.py", line 246, in thread_proc
    callback(e)
  File "/media/veracrypt1/Home/hTools/dirsearch/lib/controller/controller.py", line 497, in raise_error
    raise SkipTargetInterrupt("Too many request errors")
lib.core.exceptions.SkipTargetInterrupt: Too many request errors

@iseries iseries added the question Further information is requested label Mar 2, 2024
@nrathaus
Copy link

You can modify the settings.py file to say:
MAX_CONSECUTIVE_REQUEST_ERRORS = some_large_number

To prevent the rising of this exception

@shelld3v
Copy link
Collaborator

shelld3v commented Aug 2, 2024

I expected the error to be handled in an user-friendly style, seems like a bug to me

@shelld3v shelld3v added bug Something isn't working Priority: Low and removed question Further information is requested labels Aug 2, 2024
@shelld3v shelld3v added this to the v0.4.4 milestone Nov 7, 2024
@shelld3v shelld3v linked a pull request Nov 7, 2024 that will close this 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 Priority: Low
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants