potatoqualitee / tentools

💙 tenable.sc / nessus / acas powershell module
BSD 3-Clause "New" or "Revised" License
39 stars 7 forks source link

Getting details for policy with id 0 #25

Closed potatoqualitee closed 3 years ago

potatoqualitee commented 3 years ago

ipmo tentools -force; $null=Connect-TNServer -ComputerName localhost -Credential $cred; Get-TNPolicyDetail -Verbose | Get-TNPolicyLocalPortEnumeration VERBOSE: [18:12:14][Get-TNSession] Connected sessions: 1 VERBOSE: [18:12:14][Get-TNSession] Connected sessions: 1 VERBOSE: [18:12:14][Invoke-TNRequest] Connecting to https://localhost:8834 VERBOSE: GET https://localhost:8834/policies with 0-byte payload VERBOSE: received 2543-byte response of content type application/json VERBOSE: Found one inner object VERBOSE: [18:12:14][Get-TNPolicyDetail] Getting details for policy with id 0 VERBOSE: [18:12:14][Invoke-TNRequest] Connecting to https://localhost:8834 VERBOSE: GET https://localhost:8834/editor/policy/0 with 0-byte payload WARNING: [18:12:14][Invoke-TNRequest] The remote server returned an error: (400) Bad Request. VERBOSE: [18:12:14][Get-TNPolicyDetail] Getting details for policy with id 0 VERBOSE: [18:12:14][Invoke-TNRequest] Connecting to https://localhost:8834 VERBOSE: GET https://localhost:8834/editor/policy/0 with 0-byte payload WARNING: [18:12:14][Invoke-TNRequest] The remote server returned an error: (400) Bad Request. VERBOSE: [18:12:14][Get-TNPolicyDetail] Getting details for policy with id 0 VERBOSE: [18:12:14][Invoke-TNRequest] Connecting to https://localhost:8834 VERBOSE: GET https://localhost:8834/editor/policy/0 with 0-byte payload WARNING: [18:12:14][Invoke-TNRequest] The remote server returned an error: (400) Bad Request. VERBOSE: [18:12:14][Get-TNPolicyDetail] Getting details for policy with id 0 VERBOSE: [18:12:14][Invoke-TNRequest] Connecting to https://localhost:8834 VERBOSE: GET https://localhost:8834/editor/policy/0 with 0-byte payload WARNING: [18:12:14][Invoke-TNRequest] The remote server returned an error: (400) Bad Request.