HKTL_Nishang_PS1_Invoke_PowerShellTcpOneLine
Description
Detects PowerShell Oneliner in Nishang's repository
Query · yara
strings:
$s1 = "=([text.encoding]::ASCII).GetBytes((iex $" ascii wide
$s2 = ".GetStream();[byte[]]$" ascii wide
$s3 = "New-Object Net.Sockets.TCPClient('" ascii wide
condition:
all of them