aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbitform <matt@exploit-monday.com>2013-01-19 16:01:01 -0500
committerbitform <matt@exploit-monday.com>2013-01-19 16:01:01 -0500
commit3eb838eb1e4360b0aeb103fd161db2c240169f9b (patch)
treeefe44382a38e414e3f01b4396165e2bec2db0af4
parent591c063776ed2eba78822899b7c9a4a07890895b (diff)
downloadPowerSploit-3eb838eb1e4360b0aeb103fd161db2c240169f9b.tar.gz
PowerSploit-3eb838eb1e4360b0aeb103fd161db2c240169f9b.zip
Removed ValueFromPipeline from the Path param.
That parameter attribute doesn't make sense in this context.
-rw-r--r--Out-EncodedCommand.ps14
1 files changed, 2 insertions, 2 deletions
diff --git a/Out-EncodedCommand.ps1 b/Out-EncodedCommand.ps1
index 72d47e8..a27e0fb 100644
--- a/Out-EncodedCommand.ps1
+++ b/Out-EncodedCommand.ps1
@@ -71,12 +71,12 @@ http://www.exploit-monday.com
#>
[CmdletBinding( DefaultParameterSetName = 'FilePath')] Param (
- [Parameter(Position = 1, ValueFromPipeline = $True, ParameterSetName = 'ScriptBlock' )]
+ [Parameter(Position = 0, ValueFromPipeline = $True, ParameterSetName = 'ScriptBlock' )]
[ValidateNotNullOrEmpty()]
[ScriptBlock]
$ScriptBlock,
- [Parameter(Position = 1, ValueFromPipeline = $True, ParameterSetName = 'FilePath' )]
+ [Parameter(Position = 0, ParameterSetName = 'FilePath' )]
[ValidateNotNullOrEmpty()]
[String]
$Path,