Skip to main content
Unlisted page
This page is unlisted. Search engines will not index it, and only users having a direct link can access it.

SWM - Software Install - Client Specific - Vuln Scanner - Install

Summary

This script installs the NESSUS vulnerability scanner.

Sample Run

Sample Run

Variables

NameDescription
LocalFileNameThe downloaded file name on the target machine.
LocalPathThe full path including filename for the installer.
Nessus_ServerThe server information needed when specifying Nessus_server= in the MSI command.
Application NameThe application name as seen in the programs and features list.
ErrorMessageThe current error message, if applicable.

Global Parameters

NameExampleRequiredDescription
NESSUS_Key54654d23156423asfd15642615af646587432184cTrueThe NESSUS key assigned to the required instance
NESSUS_Prefixxxxxxxxxx-xx-xxxxxxx-xxxx-xxx-xxxx_TrueThe prefix to the computer name when entering NESSUS_Name, should end with _.
DownloadURLDownload URLTrueThe download URL for the Nessus agent. Will need to change with future versions.

Process

  1. Set up any variables.
  2. Check for the downloaded file (in the c:/temp folder); if it exists, go to step 6.
  3. Download the MSI installer.
  4. Check for the downloaded file (in the c:/temp folder); if it exists, go to step 6.
  5. Log an error and exit with an error.
  6. Run msiexec to install the application.
  7. Wait 5 seconds to complete.
  8. Resend the software list.
  9. If "Nessus Agent (x64)" is a valid software in the software list, go to step 11.
  10. Log an error and exit with an error.
  11. Log success and exit.