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

Long scan report lost after exception #5

Open
rebolini-pablo opened this issue Aug 8, 2020 · 1 comment
Open

Long scan report lost after exception #5

rebolini-pablo opened this issue Aug 8, 2020 · 1 comment
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@rebolini-pablo
Copy link

rebolini-pablo commented Aug 8, 2020

Hi, just to share the following error:

[*] Task tcp/443/nikto on <ip address> finished successfully in 101 hours, 4 seconds
[*] Finished scanning target <ip address> in 101 hours, 39 seconds

concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
  File "/usr/lib/python3.8/concurrent/futures/process.py", line 239, in _process_worker
    r = call_item.fn(*call_item.args, **call_item.kwargs)
  File "intelspy.py", line 1328, in scan_host
    results = loop.run_until_complete(asyncio.gather(scan_services(loop, semaphore, target,
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "intelspy.py", line 998, in scan_services
    result = task.result()
  File "intelspy.py", line 437, in run_cmd
    results = await asyncio.gather(*output)
  File "intelspy.py", line 384, in read_stream
    imp = e('{target.address} - ' + p['description'] + '\n\n').strip()
KeyError: 'description'
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "intelspy.py", line 1996, in <module>
    if future.result():
  File "/usr/lib/python3.8/concurrent/futures/_base.py", line 432, in result
    return self.__get_result()
  File "/usr/lib/python3.8/concurrent/futures/_base.py", line 388, in __get_result
    raise self._exception
KeyError: 'description'

The problem is since intelspy save the entire report at the end of all scans, if you reach this error (or another) you lost all your progress (in my case ~100hs of scan), it would be great if intelspy save one report after each scan...

Thanks a lot

@maldevel maldevel self-assigned this Sep 7, 2020
@maldevel maldevel added bug Something isn't working enhancement New feature or request labels Sep 7, 2020
@maldevel
Copy link
Owner

The bug has been fixed in develop branch for next release. I will update the tool to store its results during the scans.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants