danielbohannon / Invoke-Obfuscation

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

This command exceeds the cmd.exe maximum length of 8190. ? #40

Closed Phoenix1112 closed 4 years ago

Phoenix1112 commented 5 years ago

hello daniel . i am triying for encode with my powershell backdoor. but it is not working ..

What can I do for it

WARNING: This command exceeds the cmd.exe maximum length of 8190. Its length is 22848 characters.

virtualbox_windows 8

k1epto commented 4 years ago

BUMP

danielbohannon commented 4 years ago

This is a warning and not an error. It just means that the command is too long to copy into a cmd.exe command prompt as a one-liner. So if you see this error you can try to run UNDO to keep retrying obfuscation options until you find one that is short enough, or just plan on not executing the entire obfuscation command as a one-liner.

For example, for the ENCODING options in the screenshot in this Github Issue I computed the "bloat factor" in this blog post on using Invoke-Obfuscation: https://www.danielbohannon.com/blog-1/2017/12/2/the-invoke-obfuscation-usage-guide-part-2

Hope this helps!