aboutsummaryrefslogtreecommitdiff
path: root/CodeExecution
diff options
context:
space:
mode:
authorMatt Graeber <mattgraeber@gmail.com>2015-12-14 17:26:33 -0800
committerMatt Graeber <mattgraeber@gmail.com>2015-12-14 17:26:33 -0800
commit00af1656b2832807eadbc062eee80e21918c0276 (patch)
tree8dd775d1687a716933ec8b7d80d0941492d8193b /CodeExecution
parentce3b21685ad74e302cefb39c07bfba9e0e178d9b (diff)
downloadPowerSploit-00af1656b2832807eadbc062eee80e21918c0276.tar.gz
PowerSploit-00af1656b2832807eadbc062eee80e21918c0276.zip
Bugfix #93
Removed the "EndAddress" parameter set since it was never used. This should resolve any parameter set confusion.
Diffstat (limited to 'CodeExecution')
-rw-r--r--CodeExecution/Invoke-ReflectivePEInjection.ps114
1 files changed, 1 insertions, 13 deletions
diff --git a/CodeExecution/Invoke-ReflectivePEInjection.ps1 b/CodeExecution/Invoke-ReflectivePEInjection.ps1
index d164493..4a1d0e8 100644
--- a/CodeExecution/Invoke-ReflectivePEInjection.ps1
+++ b/CodeExecution/Invoke-ReflectivePEInjection.ps1
@@ -912,24 +912,12 @@ $RemoteScriptBlock = {
[IntPtr]
$StartAddress,
- [Parameter(ParameterSetName = "EndAddress", Position = 3, Mandatory = $true)]
- [IntPtr]
- $EndAddress,
-
[Parameter(ParameterSetName = "Size", Position = 3, Mandatory = $true)]
[IntPtr]
$Size
)
- [IntPtr]$FinalEndAddress = [IntPtr]::Zero
- if ($PsCmdlet.ParameterSetName -eq "Size")
- {
- [IntPtr]$FinalEndAddress = [IntPtr](Add-SignedIntAsUnsigned ($StartAddress) ($Size))
- }
- else
- {
- $FinalEndAddress = $EndAddress
- }
+ [IntPtr]$FinalEndAddress = [IntPtr](Add-SignedIntAsUnsigned ($StartAddress) ($Size))
$PEEndAddress = $PEInfo.EndAddress