как запускать скрипты повершелл под обфускатором? Каждый раз вылазят ошибки типа:
PS C:\Users\vic\Desktop\updater> ./hhhhhhhhhhhhhh.ps1
./hhhhhhhhhhhhhh.ps1
Invoke-Expression : ��ப�:1 ����:1
) [Invoke-Expression], ParseException
+ FullyQualifiedErrorId : ScriptContainedMaliciousContent,Microsoft.PowerShell.Commands.InvokeExpressionCommand
PS C:\Users\vic\Desktop\updater> [Ref].Assembly.GetType('System.Management.Automation.AmsiUtils')::amsiInitFailed
[Ref].Assembly.GetType('System.Management.Automation.AmsiUtils')::amsiInitFailed
PS C:\Users\vic\Desktop\updater> [Ref].Assembly.GetType('System.Management.Automation.AmsiUtils')::amsiInitFailed = $true
[Ref].Assembly.GetType('System.Management.Automation.AmsiUtils')::amsiInitFailed = $true
�� 㤠���� ���� ��⢮ "amsiInitFailed" ��� ������� ��ꥪ�. ��������, �� ��� ������� � ��� ����� ������.
��ப�:1 ����:1
) [], RuntimeException
+ FullyQualifiedErrorId : PropertyAssignmentException
./hhhhhhhhhhhhhh.ps1
Invoke-Expression : ��ப�:1 ����:1
- $defenderremoverver = "12.8.2"
-
Код:
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ��� �業� ᮤ�ন� �।���᭮� ᮤ�ন��� � �� ��������� ��⨢����� �ணࠬ��� ���ᯥ祭���. C:\Users\vic\Desktop\updater\hhhhhhhhhhhhhh.ps1:799 ����:36 + '); $script = $fragments -join ''; Invoke-Expression $script + ~~~~~~~~~~~~~~~~~~~~~~
+ FullyQualifiedErrorId : ScriptContainedMaliciousContent,Microsoft.PowerShell.Commands.InvokeExpressionCommand
PS C:\Users\vic\Desktop\updater> [Ref].Assembly.GetType('System.Management.Automation.AmsiUtils')::amsiInitFailed
[Ref].Assembly.GetType('System.Management.Automation.AmsiUtils')::amsiInitFailed
PS C:\Users\vic\Desktop\updater> [Ref].Assembly.GetType('System.Management.Automation.AmsiUtils')::amsiInitFailed = $true
[Ref].Assembly.GetType('System.Management.Automation.AmsiUtils')::amsiInitFailed = $true
�� 㤠���� ���� ��⢮ "amsiInitFailed" ��� ������� ��ꥪ�. ��������, �� ��� ������� � ��� ����� ������.
��ப�:1 ����:1
- [Ref].Assembly.GetType('System.Management.Automation.AmsiUtils')::ams ...
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ FullyQualifiedErrorId : PropertyAssignmentException