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

Calling functions across independently-obfuscated scripts? #65

Open
communque opened this issue Jan 25, 2021 · 2 comments
Open

Calling functions across independently-obfuscated scripts? #65

communque opened this issue Jan 25, 2021 · 2 comments
Labels

Comments

@communque
Copy link

I was curious if separate scripts obfuscated independently from one another can call functions from one another.

I just tested, and it seems to work fine -- functions between scripts successfully call one another, but I was curious if this is 100% reliable.
Are there circumstances where obfuscated code will make functions or global variables, etc. unrecognizable?

The following suggests it works fine:

index.html

<!doctype><html><head>
<script src="Script1.js"></script>
<script src="Script2.js"></script>
<script>
window.onload=Script1;
</script>
</head>
<body></body><html>

Script1.js (Obfuscated)

function Script1(){
	alert("Script1");
	Script2();
}

Script2.js (Obfuscated separately)

function Script2(){
	alert("Success");
}
@sanex3339
Copy link
Member

Hi. With renameGlobals this functions can't call each other

@communque
Copy link
Author

With renameGlobals this functions can't call each other
Brilliant! Thanks for clarifying.

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

No branches or pull requests

2 participants