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
function Get-MyGeoLocation { | |
param ( | |
[parameter(HelpMessage="Please provide a save location")] | |
[string]$outfilepath = $("C:\users\{0}\Desktop\map.html" -f $($env:username)) | |
) | |
<# | |
.SYNOPSIS | |
Map your current location on google maps | |
.DESCRIPTION |
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
function Get-NotificationData { | |
[cmdletbinding()] | |
param ( | |
[parameter(Mandatory=$true, | |
ValueFromPipeline=$true, | |
ValueFromPipelineByPropertyName=$true, | |
HelpMessage="Please enter a QID (Qualys ID) to search for")] | |
[ValidateCount(1,20)] | |
[ValidateNotNullOrEmpty()] | |
[string[]]$QID, |
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
#requires -Version 2 | |
function Get-NotificationData | |
{ | |
[cmdletbinding()] | |
param ( | |
[parameter(Mandatory = $true, | |
ValueFromPipeline = $true, | |
ValueFromPipelineByPropertyName = $true, | |
HelpMessage = 'Please enter a QID (Qualys ID) to search for')] | |
[ValidateCount(1,20)] |
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
#requires -Version 3 | |
<# | |
.Synopsis | |
This function gets Business Unit information | |
.DESCRIPTION | |
This function is primarily called from the Get-NofiticationData function to gather busines unit information. | |
Once we have this information it used to begin processing notification emails | |
.EXAMPLE | |
Example of how to use this cmdlet | |
.EXAMPLE |
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
#requires -Version 3 | |
function Get-KnowledgebaseInfo () | |
{ | |
[cmdletbinding()] | |
param ( | |
[parameter(Mandatory = $true, | |
ValueFromPipeline = $true, | |
ValueFromPipelineByPropertyName = $true, | |
HelpMessage = 'Please enter a QID (Qualys ID) to search for')] | |
[ValidateCount(1,20)] |
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
#requires -Version 3 | |
<# | |
.Synopsis | |
This function gets Business Unit information | |
.DESCRIPTION | |
This function is primarily called from the Get-NofiticationData function to gather busines unit information. | |
Once we have this information it used to begin processing notification emails | |
.EXAMPLE | |
Example of how to use this cmdlet | |
.EXAMPLE |
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
#requires -Version 3 | |
function Get-VulnerableHost () | |
{ | |
[cmdletbinding()] | |
param ( | |
[parameter(ParameterSetName = 'set1', | |
ValueFromPipelineByPropertyName = $true, | |
HelpMessage = 'Please enter a single IP or a range of IPs')] | |
[ValidateNotNullOrEmpty()] | |
[string[]]$ip, |
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
function Test-QualysAuthentication () | |
{ | |
[cmdletbinding()] | |
param ( | |
[parameter(Mandatory=$true, | |
ValueFromPipelineByPropertyName=$true, | |
HelpMessage="Please provide a credential obejct")] | |
[ValidateNotNullOrEmpty()] | |
[System.Management.Automation.CredentialAttribute()]$credential |
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
#Get-FileHash is a built in PowerShell cmdlet with Version 5 | |
Write-Verbose "Downloading Posh-VirusTotal PowerShell Module...." | |
iex (New-Object Net.WebClient).DownloadString("https://gist.githubusercontent.com/darkoperator/9138373/raw/22fb97c07a21139a398c2a3d6ca7e3e710e476bc/PoshVTInstall.ps1") | |
$VTAPIkey = 'somevtapikey' | |
#single file Hash | |
$AttachmentHash = Get-FileHash C:\$env:Desktop\somefile.txt |
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
<# | |
.Synopsis | |
Short description | |
.DESCRIPTION | |
Long description | |
.EXAMPLE | |
Example of how to use this cmdlet | |
.EXAMPLE | |
Another example of how to use this cmdlet | |
#> |
OlderNewer