Skip to content

new-nessussession parameters. #24

@danSpotter

Description

@danSpotter

I believe the api has changed. No port required and username/password in json format.

$RestMethodParams = @{
'Method' = 'Post'
'URI' = "$($URI)/rest/token"
'Body' = @{'username' = $Credentials.UserName; 'password' = $Credentials.GetNetworkCredential().password} | ConvertTo-Json -Compress
'ErrorVariable' = 'NessusLoginError'
}

        $TokenResponse = Invoke-RestMethod @RestMethodParams

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions