mirror of
https://github.com/PowerShellMafia/PowerSploit
synced 2026-06-08 12:13:33 +00:00
Prepare-Payload now accepts pipeline output
This commit is contained in:
+2
-2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user