mirror of
https://github.com/PowerShellMafia/PowerSploit
synced 2026-06-08 12:13:33 +00:00
dfec277813
Another awesome addition from Joe Bialek. Invoke-ReflectivePEInjection is a vast improvement over Invoke-ReflectiveDllInjection. It adds the following features: * Now supports loading exe files in memory * Supports reflective dll injection into a remote process * Additional sample Visual Studio solutions
24 lines
366 B
NASM
24 lines
366 B
NASM
[SECTION .text]
|
|
global _start
|
|
|
|
_start:
|
|
; Get stack setup
|
|
push ebx
|
|
mov ebx, esp
|
|
and esp, 0xfffffff0
|
|
|
|
; Call DllMain
|
|
mov ecx, 0x41414141 ; DLLHandle, set by PowerShell
|
|
mov edx, 0x1 ; PROCESS_ATTACH
|
|
mov eax, 0x0 ; NULL
|
|
push eax
|
|
push edx
|
|
push ecx
|
|
mov eax, 0x41414141 ; Address of DllMain, set by PS
|
|
call eax
|
|
|
|
; Fix stack
|
|
mov esp, ebx
|
|
pop ebx
|
|
ret
|