PowerShell_Suite_Hacktools_Gen_Strings
Description
Detects strings from scripts in the PowerShell-Suite repo
Query · yara
strings:
$ = "[!] NtCreateThreadEx failed.." fullword ascii
$ = "[?] Executing mmc.." ascii
$ = "[!] This method is only supported on 64-bit!" fullword ascii
$ = "$LNK = [ShellLink.Shortcut]::FromByteArray($LNKHeader.GetBytes())" fullword ascii
$ = "$CallResult = [UACTokenMagic]::TerminateProcess($ShellExecuteInfo.hProcess, 1)" fullword ascii
$ = "[!] Unable to open process (as Administrator), this may require SYSTEM access." fullword ascii
$ = "[!] Error, NTSTATUS Value: " ascii
$ = "[!] UAC artifact: " ascii
$ = "[>] Process dump success!" ascii
$ = "[!] Process dump failed!" ascii
$ = "[+] Eidolon entry point:" fullword ascii
$ = "Wait for shellcode to run" fullword ascii
$ = "$Command = Read-Host \"`nSMB shell\"" fullword ascii
$ = "Use Netapi32::NetSessionEnum to enumerate active sessions on domain joined machines." fullword ascii
$ = "Invoke-CreateProcess -Binary C:\\Windows\\System32\\" ascii
$ = "[?] Thread belongs to: " ascii
$ = "[?] Operating system core count: " ascii
$ = "[>] Calling Advapi32::LookupPrivilegeValue --> SeDebugPrivilege" fullword ascii
$ = "Calling Advapi32::OpenProcessToken --> LSASS" ascii
$ = "[!] Mmm, something went wrong! GetLastError returned:" ascii
$ = "if (($FileBytes[0..1] | % {[Char]$_}) -join '' -cne 'MZ')" fullword ascii
condition:
filesize < 100KB and 1 of them