Prepare-Payload now accepts pipeline output

This commit is contained in:
bitform
2013-01-13 17:07:19 -05:00
parent 7bd264c465
commit 66c69286f9
+2 -2
View File
@@ -67,12 +67,12 @@ http://www.exploit-monday.com
#>
[CmdletBinding( DefaultParameterSetName = 'FilePath')] Param (
[Parameter(Position = 1, ParameterSetName = 'ScriptBlock' )]
[Parameter(Position = 1, ValueFromPipeline = $True, ParameterSetName = 'ScriptBlock' )]
[ValidateNotNullOrEmpty()]
[ScriptBlock]
$ScriptBlock,
[Parameter(Position = 1, ParameterSetName = 'FilePath' )]
[Parameter(Position = 1, ValueFromPipeline = $True, ParameterSetName = 'FilePath' )]
[ValidateNotNullOrEmpty()]
[String]
$Path,