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

Why this error occur ? #62

Open
ibnrushud opened this issue Nov 28, 2024 · 2 comments
Open

Why this error occur ? #62

ibnrushud opened this issue Nov 28, 2024 · 2 comments

Comments

@ibnrushud
Copy link

I used this library for first time but got this error :
image

@ibnrushud
Copy link
Author

C:\Users\user\Downloads>js-deobfuscator -i i.js -o o.js
C:\Users\user\AppData\Roaming\npm\node_modules\js-deobfuscator\node_modules\shift-parser\src\parser.js:1186
throw this.createError(ErrorMessages.INVALID_LHS_IN_ASSIGNMENT);
^

JsError: [1:34]: Invalid left-hand side in assignment
at GenericParser.createError (C:\Users\user\AppData\Roaming\npm\node_modules\js-deobfuscator\node_modules\shift-parser\src\tokenizer.js:275:12)
at GenericParser.parseAssignmentExpressionOrTarget (C:\Users\user\AppData\Roaming\npm\node_modules\js-deobfuscator\node_modules\shift-parser\src\parser.js:1186:20)
at GenericParser.inheritCoverGrammar (C:\Users\user\AppData\Roaming\npm\node_modules\js-deobfuscator\node_modules\shift-parser\src\parser.js:1087:21)
at GenericParser.parseGroupExpression (C:\Users\user\AppData\Roaming\npm\node_modules\js-deobfuscator\node_modules\shift-parser\src\parser.js:1992:22)
at GenericParser.parsePrimaryExpression (C:\Users\user\AppData\Roaming\npm\node_modules\js-deobfuscator\node_modules\shift-parser\src\parser.js:1782:19)
at GenericParser.parseLeftHandSideExpression (C:\Users\user\AppData\Roaming\npm\node_modules\js-deobfuscator\node_modules\shift-parser\src\parser.js:1626:19)
at GenericParser.parseUpdateExpression (C:\Users\user\AppData\Roaming\npm\node_modules\js-deobfuscator\node_modules\shift-parser\src\parser.js:1515:24)
at GenericParser.parseUnaryExpression (C:\Users\user\AppData\Roaming\npm\node_modules\js-deobfuscator\node_modules\shift-parser\src\parser.js:1488:19)
at GenericParser.parseExponentiationExpression (C:\Users\user\AppData\Roaming\npm\node_modules\js-deobfuscator\node_modules\shift-parser\src\parser.js:1459:21)
at GenericParser.parseBinaryExpression (C:\Users\user\AppData\Roaming\npm\node_modules\js-deobfuscator\node_modules\shift-parser\src\parser.js:1409:21) {
index: 33,
line: 1,
column: 34,
parseErrorLine: 1,
parseErrorColumn: 34,
description: 'Invalid left-hand side in assignment'
}

Node.js v22.9.0

C:\Users\user\Downloads>

@ben-sb
Copy link
Owner

ben-sb commented Nov 28, 2024

Looks like a syntax error or maybe newer syntax. Can you upload the sample you were trying to deobfuscate

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