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

Exclude function names from token randomization #7

Closed
IISResetMe opened this issue Jan 8, 2017 · 1 comment
Closed

Exclude function names from token randomization #7

IISResetMe opened this issue Jan 8, 2017 · 1 comment
Assignees

Comments

@IISResetMe
Copy link

PSParser.Tokenize() treats function name literals as CommandArgument tokens. This causes the TOKEN\ARGUMENT\1 (Random Case) routine to quote the function name, incidentally invalidating function definitions.

Suggested way of avoiding this is to exclude CommandArgument tokens in Out-ObfuscatedTokenCommand from random quoting if the preceding token is the function keyword

@danielbohannon
Copy link
Owner

Issue fixed in d419d0b release.

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

2 participants