Bump powershell modules from upstream

This commit is contained in:
Oleksii Shevchuk 2017-07-22 14:59:11 +03:00
parent 3c100572cf
commit ced1f54971
4 changed files with 9509 additions and 5681 deletions

View File

@ -23,7 +23,6 @@ remote process.
PowerSploit Function: Invoke-ReflectivePEInjection
Author: Joe Bialek, Twitter: @JosephBialek
Code review and modifications: Matt Graeber, Twitter: @mattifestation
Minor code modifications: Nicolas Verdier, calling garbage collector to reduce process size
License: BSD 3-Clause
Required Dependencies: None
Optional Dependencies: None
@ -649,7 +648,7 @@ $RemoteScriptBlock = {
$Win32Functions | Add-Member NoteProperty -Name GetModuleHandle -Value $GetModuleHandle
$FreeLibraryAddr = Get-ProcAddress kernel32.dll FreeLibrary
$FreeLibraryDelegate = Get-DelegateType @([Bool]) ([IntPtr])
$FreeLibraryDelegate = Get-DelegateType @([IntPtr]) ([Bool])
$FreeLibrary = [System.Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer($FreeLibraryAddr, $FreeLibraryDelegate)
$Win32Functions | Add-Member -MemberType NoteProperty -Name FreeLibrary -Value $FreeLibrary
@ -2524,7 +2523,6 @@ $RemoteScriptBlock = {
{
if ($RemoteLoading -eq $false)
{
[System.GC]::Collect()
Write-Verbose "Calling dllmain so the DLL knows it has been loaded"
$DllMainPtr = Add-SignedIntAsUnsigned ($PEInfo.PEHandle) ($PEInfo.IMAGE_NT_HEADERS.OptionalHeader.AddressOfEntryPoint)
$DllMainDelegate = Get-DelegateType @([IntPtr], [UInt32], [IntPtr]) ([Bool])
@ -2900,4 +2898,4 @@ Function Main
}
Main
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff