Skip to content
This repository has been archived by the owner on Jun 28, 2020. It is now read-only.

KeyError: 'ports' #22

Open
VoidSec opened this issue Jun 18, 2019 · 2 comments
Open

KeyError: 'ports' #22

VoidSec opened this issue Jun 18, 2019 · 2 comments

Comments

@VoidSec
Copy link

VoidSec commented Jun 18, 2019

Hi, I was testing the tool with the following parameters: ./kamerka.py --country IT
I've enabled shodan and google street view api

Traceback (most recent call last):
  File "./kamerka.py", line 610, in <module>
    ics_coordinates = draw_map(shodan_ics_results, "ics")
  File "./kamerka.py", line 505, in draw_map
    additional_ports = get_host_info(ip)
  File "./kamerka.py", line 169, in get_host_info
    return req_json['ports']
KeyError: 'ports'

If you need other info regarding my setup please let me know

@woj-ciech
Copy link
Owner

Yea, right, some of the host does not have additional ports. Should be fine now --> 82b4297
I saw that you used my tool in your article. Great job.

@VoidSec
Copy link
Author

VoidSec commented Jun 26, 2019

Yeah, your tool was extremely helpful to map out a nice subset.
Thank you for the tool. :)

Tomorrow I will check the fix and close the issue if everithing runs smoothly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants