We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5d9b25 commit 1cdad58Copy full SHA for 1cdad58
CodeExecution/Invoke-DllInjection.ps1
@@ -313,9 +313,11 @@ http://www.exploit-monday.com
313
# Close process handle
314
$CloseHandle.Invoke($hProcess) | Out-Null
315
316
+ Start-Sleep -Seconds 2
317
+
318
# Extract just the filename from the provided path to the dll.
- $FileName = Split-Path $Dll -Leaf
- $DllInfo = (Get-Process -Id $ProcessID).Modules | ? { $_.FileName.Contains($FileName) }
319
+ $FileName = (Split-Path $Dll -Leaf).ToLower()
320
+ $DllInfo = (Get-Process -Id $ProcessID).Modules | ? { $_.FileName.ToLower().Contains($FileName) }
321
322
if (!$DllInfo)
323
{
0 commit comments