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
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"> | |
<Obj RefId="0"> | |
<TN RefId="0"> | |
<T>Selected.System.Management.Automation.PSCustomObject</T> | |
<T>System.Management.Automation.PSCustomObject</T> | |
<T>System.Object</T> | |
</TN> | |
<MS> | |
<S N="@odata.id">https://outlook.office365.com/api/v1.0/Users('mailbox@contoso.com')/Events('AAMkADc4NzFlMDc2LTdkNWMtNDg4MC04NmRmLTY5OTJmMmFhZjM2ZABGAAAAAAAyuDCxGFp8Q67E2z04c8bHBwAiBP0V5eP-QJuC8Y_Cu-MHAAAAAAENAAAiBP0V5eP-QJuC8Y_Cu-MHAABWVS42AAA=')</S> | |
<S N="@odata.etag">W/"IgT9FeXj/0CbgvGPgrvzBwAAWpeqCw=="</S> |
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 | |
#> |
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 | |
<# | |
.SYNOPSIS | |
Linux nmap for PowerShell (almost). | |
Ping sweeps and scans a network for specified open ports. Can also perform DNS lookups. | |
Port connect timeout is custom (milliseconds). | |
Multithreaded with a default of 32 concurrent threads. |
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 | |
#> |
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 | |
#> |
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
<!-- | |
Copy from: Abhishek's PowerShell Blog - http://abhishek225.spaces.live.com/blog/ | |
Original post: http://abhishek225.spaces.live.com/blog/cns!13469C7B7CE6E911!165.entry | |
--> | |
<Types> | |
<Type> | |
<Name>System.__ComObject</Name> | |
<Members> | |
<ScriptMethod> |
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 | |
#> |
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
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
#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, |