ps1_toolkit_Invoke_RelfectivePEInjection
Description
Auto-generated rule - file Invoke-RelfectivePEInjection.ps1
Query · yara
strings:
$x1 = "Invoke-ReflectivePEInjection -PEBytes $PEBytes -FuncReturnType WString -ComputerName (Get-Content targetlist.txt)" fullword ascii
$x2 = "Invoke-ReflectivePEInjection -PEBytes $PEBytes -FuncReturnType WString -ComputerName Target.local" fullword ascii
$x3 = "} = Get-ProcAddress Advapi32.dll OpenThreadToken" ascii
$x4 = "Invoke-ReflectivePEInjection -PEBytes $PEBytes -ProcName lsass -ComputerName Target.Local" fullword ascii
$s5 = "$PEBytes = [IO.File]::ReadAllBytes('DemoDLL_RemoteProcess.dll')" fullword ascii
$s6 = "= Get-ProcAddress Advapi32.dll AdjustTokenPrivileges" ascii
condition:
( uint16(0) == 0xbbef and filesize < 700KB and 2 of them ) or ( all of them )