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

Functions not obfuscating #2

Open
AnnaMachovec opened this issue Sep 27, 2021 · 2 comments
Open

Functions not obfuscating #2

AnnaMachovec opened this issue Sep 27, 2021 · 2 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@AnnaMachovec
Copy link

AnnaMachovec commented Sep 27, 2021

Hi!
I am having trouble finding out as to why the functions are not obfuscating in my small script:

test1.ps1---------------
function runmefor-fun {
$variablenopurpose = "no purpose"
Write-Host $variablenopurpose
}
#commment
runmefor-fun
#hi


My command line is:
chameleon.py -l 1 -o OUTPUT.ps1 -v -c -f Test1.ps1

and my output file is this: --------------------------------

function runmefor-fun {
Write-Host "Hey!"
$pretendreallylongobfuscationishortenedfordisplay = "no purpose"
Write-Host $pretendreallylongobfuscationishortenedfordisplay

}
#commentthatislong
runmefor-fun
#commentthatislong

any ideas as to why this will not work?

@klezVirus klezVirus added bug Something isn't working good first issue Good for newcomers labels Sep 27, 2021
@klezVirus
Copy link
Owner

Hi @AnnaMachovec, thanks for that! I've seen this behaviour before, seems like chameleon misses some functions. I need to investigate it further.

@AnnaMachovec
Copy link
Author

If it helps, it seems not to work for functions with no parameters. When I give the function a parameter, it then works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants