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

Install seems simple but having issues connecting to tenable API #9

Closed cbeyertn closed 4 years ago

cbeyertn commented 4 years ago

root@ubuntu:/home/rocket/Desktop# navi display -scanners Hey Listen! Something went wrong...Don't be trying to hack me now <Response [401]>

Scanner Name Scanner ID Scanner UUID

Check your API keys or your internet connection I received the following Error:

'NoneType' object is not subscriptable root@ubuntu:/home/rocket/Desktop#

I know the keys are correct because they are displayed while running command --- navi find --query "select * from keys;"

cbeyertn commented 4 years ago

Please assist in getting this working

packetchaos commented 4 years ago

It looks like you may not be an admin. For most of the calls in Navi you need to be a Tenable.io admin.

Try "navi api /scanners".

Also try "navi display -status"

if both of those fail, your keys are inputted incorrectly or you are not an admin in Tenable.io

cbeyertn commented 4 years ago

root@G111LCND8290PNQ:/home/rocket# navi api /scanners Hey Listen! Something went wrong...Don't be trying to hack me now <Response [401]> None root@G111LCND8290PNQ:/home/rocket#

I am admin and the keys are correct as I'm able to use Postman to connect via API

cbeyertn commented 4 years ago

root@G111LCND8290PNQ:/home/rocket# navi display -status Hey Listen! Something went wrong...Don't be trying to hack me now <Response [401]>

Tenable IO Information

Check your API keys or your internet connection I received the following Error:

'NoneType' object is not subscriptable root@G111LCND8290PNQ:/home/rocket#

packetchaos commented 4 years ago

There must be a space in your keys or something like that. The API command is sending a simple GET request similar to postman.

On Fri, Jul 10, 2020, 1:09 PM cbeyertn notifications@github.com wrote:

root@G111LCND8290PNQ:/home/rocket# navi display -status Hey Listen! Something went wrong...Don't be trying to hack me now <Response [401]> Tenable IO Information

Check your API keys or your internet connection I received the following Error:

'NoneType' object is not subscriptable root@G111LCND8290PNQ:/home/rocket#

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/packetchaos/Navi/issues/9#issuecomment-656867987, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHWPVTPOJ52KRJHW4TK63UDR25YP3ANCNFSM4OVVTQ3Q .

cbeyertn commented 4 years ago

Can you provide the a sample of the proper format?

packetchaos commented 4 years ago

Here is what the Keys look like in the UI

Screen Shot 2020-07-15 at 4 38 42 PM

And how they should show up after running this command

Screen Shot 2020-07-15 at 4 40 44 PM

If it is not working, I would suggest regenerating your keys and trying again.