Credentials test and become sudo

Hi guys,

I have a couple of questions regarding the credentials test before a scan and switching a user or using sudo. I’m running GSM 20.08

  • Is there a way to test pre-configured credentials before running a scan?
  • For Linux/SSH credentials can I somehow tell the system to run sudo commands or switch to a privileged user?

Thank you

GVM 21.04 has an experimental feature to use ssh credentials in conjunction with a username+password credential to elevate the permissions via su. Take a look at https://docs.greenbone.net/GSM-Manual/gos-21.04/en/scanning.html?highlight=elevated#creating-a-target for the section elevate privileges.

3 Likes

Thanks! It’s very helpful.
Any options to test any of the credentials before running a scan?

There are currently no such options available in GVM to test credentials before running a scan.