Skip to content

Commit

Permalink
shodan to stop on no credits
Browse files Browse the repository at this point in the history
  • Loading branch information
xmendez committed Apr 24, 2019
1 parent 43553f7 commit 682e77a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/wfuzz/plugin_api/payloadtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ def _do_search(self):
self.page_queue.task_done()
if "Invalid page size" in str(e):
self.results_queue.put(None)
elif "Insufficient query credits" in str(e):
self.results_queue.put(None)
else:
self.results_queue.put(e)
continue
Expand Down Expand Up @@ -217,8 +219,6 @@ def _stop(self):
self._threads = []

self.results_queue.put(None)
self._cancel_job = False
self._started = False

def __next__(self):
if not self._started:
Expand All @@ -230,6 +230,8 @@ def __next__(self):

if res is None:
self._stop()
self._cancel_job = False
self._started = False
raise StopIteration
elif isinstance(res, Exception):
self._stop()
Expand Down

0 comments on commit 682e77a

Please sign in to comment.