kamerka icon indicating copy to clipboard operation
kamerka copied to clipboard

KeyError: 'ports'

Open VoidSec opened this issue 5 years ago • 2 comments

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

VoidSec avatar Jun 18 '19 10:06 VoidSec

Yea, right, some of the host does not have additional ports. Should be fine now --> https://github.com/woj-ciech/kamerka/commit/82b42976a707413e2567eedfff6acac16790a5b3 I saw that you used my tool in your article. Great job.

woj-ciech avatar Jun 26 '19 17:06 woj-ciech

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.

VoidSec avatar Jun 26 '19 17:06 VoidSec