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

Now I know this is getting annoying, but when I deobfuscate it completely breaks this code. #17

Closed
BotSolver opened this issue Aug 19, 2023 · 8 comments
Labels
bug Something isn't working deobfuscate

Comments

@BotSolver
Copy link

Describe the bug

Now I know this is getting annoying, but when I deobfuscate it completely breaks this code, that is suppose to support an html file but it only shows a white page now.

Expected Behaviour

deobfuscate without breaking it? I don't know exactly what's being removed, it's some value again

Code

https://cdn.discordapp.com/attachments/1139534194402414592/1142441118085152829/HoszeQA.js

Logs

here's the only log of an error.

Uncaught SyntaxError: Invalid or unexpected token options.bundle.js:23754
@BotSolver BotSolver added the bug Something isn't working label Aug 19, 2023
@BotSolver
Copy link
Author

I understand getting spammed with issue is annoying personally lol

@BotSolver
Copy link
Author

@BotSolver
Copy link
Author

once this is done this should be my last issue for today

@j4k0xb
Copy link
Owner

j4k0xb commented Aug 19, 2023

No problem lol, it's good if issues get fixed

I think it errors because of how unicode strings are printed

StringLiteral(path) {
if (path.node.extra) {
path.node.extra.raw = JSON.stringify(path.node.extra.rawValue);

JSON is commonly thought to be a subset of JavaScript, but it isn't quite. Due to an unfortunate oversight, the raw characters U+2028 and U+2029 are permitted in JSON string literals, but not in JavaScript string literals. In JavaScript, they are interpreted as newlines and so having one in a string literal is a syntax error.

Maybe try if replacing both of them fixes it?
image

@BotSolver
Copy link
Author

oh it's all good now?

@j4k0xb
Copy link
Owner

j4k0xb commented Aug 19, 2023

not released yet
does the script run fine with the workaround or is there any other error?

@BotSolver
Copy link
Author

ohh wait, let me see

@BotSolver
Copy link
Author

yeah it's all good

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

No branches or pull requests

2 participants