packetchaos / navi

A Command-line tool which leverages the Tenable.io API to reduce the time it takes to get information that is common during remediation or a troubleshooting event
GNU General Public License v3.0
72 stars 26 forks source link

navi error with "display assets" #13

Closed mroshan1 closed 3 years ago

mroshan1 commented 3 years ago

when using the navi tool to display assets, i get the following error. Other options seem to work find so far. Appreciate your help on this.


navi display assets
Hey Listen!

Below are the assets found in the last 30 days

IP Address(es)                       FQDN(s)                                                           Exposure Score  Sources
------------------------------------------------------------------------------------------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users//Documents/src/navi/venv-navi/bin/navi", line 11, in <module>
    load_entry_point('navi-pro==6.1.8', 'console_scripts', 'navi')()
  File "/Users//Documents/src/navi/venv-navi/lib/python3.8/site-packages/click-7.1.2-py3.8.egg/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/Users//Documents/src/navi/venv-navi/lib/python3.8/site-packages/click-7.1.2-py3.8.egg/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/Users//Documents/src/navi/venv-navi/lib/python3.8/site-packages/click-7.1.2-py3.8.egg/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users//Documents/src/navi/venv-navi/lib/python3.8/site-packages/click-7.1.2-py3.8.egg/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users//Documents/src/navi/venv-navi/lib/python3.8/site-packages/click-7.1.2-py3.8.egg/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users//Documents/src/navi/venv-navi/lib/python3.8/site-packages/click-7.1.2-py3.8.egg/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/Users//Documents/src/navi/venv-navi/lib/python3.8/site-packages/navi_pro-6.1.8-py3.8.egg/navi/plugins/display.py", line 110, in assets
KeyError: 'exposure_score'
packetchaos commented 3 years ago

I will get this fixed tonight. Exposure score is only available for lumin customers and this function is missing that check.

Thank you for reporting this.

On Tue, Nov 10, 2020, 10:06 AM mroshan1 notifications@github.com wrote:

when using the navi tool to display assets, i get the following error. Other options seem to work find so far. Appreciate your help on this.

navi display assets Hey Listen!

Below are the assets found in the last 30 days IP Address(es) FQDN(s) Exposure Score Sources

Traceback (most recent call last): File "/Users/procore/Documents/src/navi/venv-navi/bin/navi", line 11, in load_entry_point('navi-pro==6.1.8', 'console_scripts', 'navi')() File "/Users/procore/Documents/src/navi/venv-navi/lib/python3.8/site-packages/click-7.1.2-py3.8.egg/click/core.py", line 829, in call return self.main(args, kwargs) File "/Users/procore/Documents/src/navi/venv-navi/lib/python3.8/site-packages/click-7.1.2-py3.8.egg/click/core.py", line 782, in main rv = self.invoke(ctx) File "/Users/procore/Documents/src/navi/venv-navi/lib/python3.8/site-packages/click-7.1.2-py3.8.egg/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/Users/procore/Documents/src/navi/venv-navi/lib/python3.8/site-packages/click-7.1.2-py3.8.egg/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/Users/procore/Documents/src/navi/venv-navi/lib/python3.8/site-packages/click-7.1.2-py3.8.egg/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, ctx.params) File "/Users/procore/Documents/src/navi/venv-navi/lib/python3.8/site-packages/click-7.1.2-py3.8.egg/click/core.py", line 610, in invoke return callback(args, **kwargs) File "/Users/procore/Documents/src/navi/venv-navi/lib/python3.8/site-packages/navi_pro-6.1.8-py3.8.egg/navi/plugins/display.py", line 110, in assets KeyError: 'exposure_score'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/packetchaos/navi/issues/13, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHWPVTOFTG2U7QHVE6VUSDLSPFXHXANCNFSM4TQ5O3DA .