{"id":18896188,"url":"https://github.com/tenable/posh-nessus","last_synced_at":"2025-06-19T10:38:40.624Z","repository":{"id":26151716,"uuid":"29596913","full_name":"tenable/Posh-Nessus","owner":"tenable","description":"PowerShell Module for automating Tenable Nessus Vulnerability Scanner.","archived":false,"fork":false,"pushed_at":"2022-11-30T16:12:49.000Z","size":191,"stargazers_count":88,"open_issues_count":9,"forks_count":36,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-03-28T13:44:53.679Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tenable.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2015-01-21T15:46:48.000Z","updated_at":"2025-03-18T06:19:37.000Z","dependencies_parsed_at":"2023-01-14T04:07:27.536Z","dependency_job_id":null,"html_url":"https://github.com/tenable/Posh-Nessus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenable%2FPosh-Nessus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenable%2FPosh-Nessus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenable%2FPosh-Nessus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenable%2FPosh-Nessus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tenable","download_url":"https://codeload.github.com/tenable/Posh-Nessus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248989593,"owners_count":21194618,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T08:32:50.433Z","updated_at":"2025-04-15T01:34:29.018Z","avatar_url":"https://github.com/tenable.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Posh-Nessus\nPowerShell v3.0 (or above) module for automating Tenable Nessus 6.x vulnerability scans using the REST API introduced in version 6 of the scanner.\n\n** This Module is still in development **\n\n# Install\n\nAt the moment there is no installer for the module since it is in development. If you wish to try it out you can follow the steps bellow.\n\nFirst ensure you are running PowerShell 3.0 or preferably 4.0 by looking at the `$PSVersionTable` variable in a PowerShell session where `PSVesion` is the version of PowerShell.\n\n```\nPS C:\\\u003e $PSVersionTable\n\nName                           Value\n----                           -----\nPSVersion                      4.0\nWSManStackVersion              3.0\nSerializationVersion           1.1.0.1\nCLRVersion                     4.0.30319.34209\nBuildVersion                   6.3.9600.17400\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0}\nPSRemotingProtocolVersion      2.2\n\n```\n\nFrom a PowerShell session running as administrator run:\n```\nSet-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force\n```\nList of commands to install the module that can be copy pasted in to a Powershell session:\n\n```PowerShell\n# Make sure the module is not loaded\nRemove-Module Posh-Nessus -ErrorAction SilentlyContinue\n# Download latest version\n$webclient = New-Object System.Net.WebClient\n$url = \"https://github.com/tenable/Posh-Nessus/archive/master.zip\"\nWrite-Host \"Downloading latest version of Posh-Nessus from $url\" -ForegroundColor Cyan\n$file = \"$($env:TEMP)\\Posh-Nessus.zip\"\n$webclient.DownloadFile($url,$file)\nWrite-Host \"File saved to $file\" -ForegroundColor Green\n# Unblock and decompress\nUnblock-File -Path $file\n$targetondisk = \"$([System.Environment]::GetFolderPath('MyDocuments'))\\WindowsPowerShell\\Modules\"\nNew-Item -ItemType Directory -Force -Path $targetondisk | out-null\n$shell_app=new-object -com shell.application\n$zip_file = $shell_app.namespace($file)\nWrite-Host \"Uncompressing the Zip file to $($targetondisk)\" -ForegroundColor Cyan\n$destination = $shell_app.namespace($targetondisk)\n$destination.Copyhere($zip_file.items(), 0x10)\n# Rename and import\nWrite-Host \"Renaming folder\" -ForegroundColor Cyan\nRename-Item -Path ($targetondisk+\"\\Posh-Nessus-master\") -NewName \"Posh-Nessus\" -Force\nWrite-Host \"Module has been installed\" -ForegroundColor Green\nImport-Module -Name Posh-Nessus\nGet-Command -Module Posh-Nessus\n``` \n\n## Basic Usage\nThe module works by creating sessions to one or more Nessus 6 scanners and then using the Session ID of that session to run other cmdlets. To stablish a session the `New-NessusSession` cmdlet is used.\n\n```\nPS C:\\\u003e New-NessusSession -ComputerName 192.168.1.211 -Credentials (Get-Credential)\n\ncmdlet Get-Credential at command pipeline position 1\nSupply values for the following parameters:\nCredential\n\n\nSessionId : 0\nURI       : https://192.168.1.211:8834\nToken     : 54ffb9f7447079978b6c584ba02c44720f029e468d8a3850\n\n```\n\nOnce a session is created the Session ID is given to the other cmdlets/functions to perform the desired task:\n```\nPS C:\\\u003e Get-NessusServerStatus -SessionId 0\n\n\nProgress :\nStatus   : ready\n\n\n\nPS C:\\\u003e Get-NessusSessionInfo -SessionId 0\n\n\nId         : 2\nName       : carlos\nUserName   : carlos\nEmail      :\nType       : local\nPermission : Sysadmin\nLastLogin  : 5/20/2015 9:16:30 PM\nGroups     :\nConnectors :\n\n```\n\n# Change Log\n\n## Version: 0.2\n\n* Fixed issue when starting scan with alternate targets. Missing Content Type header.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftenable%2Fposh-nessus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftenable%2Fposh-nessus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftenable%2Fposh-nessus/lists"}