-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New function and markdown help (#54)
* new function and markdown help * Update src/UofIQualys/functions/public/Get-QualysKBContent.ps1 Co-authored-by: mabaumgartner <42626826+mabaumgartner@users.noreply.github.com> * fix example and regen markdown * version++ --------- Co-authored-by: mabaumgartner <42626826+mabaumgartner@users.noreply.github.com>
- Loading branch information
1 parent
701935e
commit 95eb56a
Showing
5 changed files
with
137 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<# | ||
.Synopsis | ||
Returns KB information for a specified QID | ||
.DESCRIPTION | ||
Returns KB information for a specified QID | ||
.EXAMPLE | ||
Get-QualysKBContent -QID '372305' | ||
#> | ||
function Get-QualysKBContent{ | ||
[CmdletBinding()] | ||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseSingularNouns', '', | ||
Justification = 'This is consistent with the vendors verbiage')] | ||
param ( | ||
[Parameter(Mandatory=$true)] | ||
[String]$QID | ||
) | ||
|
||
process{ | ||
|
||
$RestSplat = @{ | ||
Method = 'GET' | ||
RelativeURI = 'knowledge_base/vuln/' | ||
Body = @{ | ||
action = 'list' | ||
echo_request = '1' | ||
ids = $QID | ||
} | ||
} | ||
|
||
$Response = Invoke-QualysRestCall @RestSplat | ||
$VulnInfo = $Response.KNOWLEDGE_BASE_VULN_LIST_OUTPUT.RESPONSE.VULN_LIST.VULN | ||
$VulnInfo | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
external help file: UofIQualys-help.xml | ||
Module Name: UofIQualys | ||
online version: | ||
schema: 2.0.0 | ||
--- | ||
|
||
# Close-QualysSession | ||
|
||
## SYNOPSIS | ||
This function closes the Qualys user session created by New-QualysSession. | ||
|
||
## SYNTAX | ||
|
||
``` | ||
Close-QualysSession | ||
``` | ||
|
||
## DESCRIPTION | ||
This function closes the Qualys user session created by New-QualysSession. | ||
|
||
## EXAMPLES | ||
|
||
### EXAMPLE 1 | ||
``` | ||
Close-QualysSession | ||
``` | ||
|
||
## PARAMETERS | ||
|
||
## INPUTS | ||
|
||
## OUTPUTS | ||
|
||
## NOTES | ||
|
||
## RELATED LINKS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
external help file: UofIQualys-help.xml | ||
Module Name: UofIQualys | ||
online version: | ||
schema: 2.0.0 | ||
--- | ||
|
||
# Get-QualysKBContent | ||
|
||
## SYNOPSIS | ||
Returns KB information for a specified QID | ||
|
||
## SYNTAX | ||
|
||
``` | ||
Get-QualysKBContent [-QID] <String> [<CommonParameters>] | ||
``` | ||
|
||
## DESCRIPTION | ||
Returns KB information for a specified QID | ||
|
||
## EXAMPLES | ||
|
||
### EXAMPLE 1 | ||
``` | ||
Get-QualysKBContent -QID '372305' | ||
``` | ||
|
||
## PARAMETERS | ||
|
||
### -QID | ||
{{ Fill QID Description }} | ||
|
||
```yaml | ||
Type: String | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: True | ||
Position: 1 | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### CommonParameters | ||
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). | ||
## INPUTS | ||
## OUTPUTS | ||
## NOTES | ||
## RELATED LINKS |