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

Caught an error while attempting to run AST visitor! #134

Open
youdie323323 opened this issue Dec 10, 2023 · 1 comment
Open

Caught an error while attempting to run AST visitor! #134

youdie323323 opened this issue Dec 10, 2023 · 1 comment

Comments

@youdie323323
Copy link

Caught an error while attempting to run AST visitor!

node = Node {
type: 'IfStatement',
start: 20184,
end: 21604,
range: [ 20184, 21604 ],
test: Node {
type: 'BinaryExpression',
start: 20187,
end: 20194,
range: [ 20187, 20194 ],
left: Node {
type: 'Identifier',
start: 20187,
end: 20188,
range: [Array],
name: 't'
},
operator: '===',
right: Node {
type: 'Literal',
start: 20191,
end: 20194,
range: [Array],
value: 208,
raw: '208'
}
},
consequent: Node {
type: 'BlockStatement',
start: 20195,
end: 20211,
range: [ 20195, 20211 ],
expression: Node {
type: 'AssignmentExpression',
start: 20195,
end: 20210,
range: [Array],
operator: '=',
left: [Node],
right: [Node]
},
body: [ [Object] ]
},
alternate: Node {
type: 'IfStatement',
start: 20216,
end: 21604,
range: [ 20216, 21604 ],
test: Node {
type: 'BinaryExpression',
start: 20219,
end: 20226,
range: [Array],
left: [Node],
operator: '===',
right: [Node]
},
consequent: Node {
type: 'BlockStatement',
start: 20227,
end: 20244,
range: [Array],
expression: [Node],
body: [Array]
},
alternate: Node {
type: 'IfStatement',
start: 20249,
end: 21604,
range: [Array],
test: [Node],
consequent: [Node],
alternate: [Node]
}
}
}
err = RangeError: Invalid string length
at JSON.stringify ()
at M (C:\Users\user\AppData\Roaming\npm\node_modules\deobfuscator\dist\index.js:28:1664)
at IfStatement (C:\Users\user\AppData\Roaming\npm\node_modules\deobfuscator\dist\index.js:28:12557)
at o (C:\Users\user\AppData\Roaming\npm\node_modules\deobfuscator\dist\index.js:25:147)
at Object.skipThrough (C:\Users\user\AppData\Roaming\npm\node_modules\deobfuscator\node_modules\acorn-walk\dist\walk.js:186:39)
at o (C:\Users\user\AppData\Roaming\npm\node_modules\deobfuscator\dist\index.js:25:133)
at base.IfStatement (C:\Users\user\AppData\Roaming\npm\node_modules\deobfuscator\node_modules\acorn-walk\dist\walk.js:208:27)
at o (C:\Users\user\AppData\Roaming\npm\node_modules\deobfuscator\dist\index.js:25:133)
at Object.skipThrough (C:\Users\user\AppData\Roaming\npm\node_modules\deobfuscator\node_modules\acorn-walk\dist\walk.js:186:39)
at o (C:\Users\user\AppData\Roaming\npm\node_modules\deobfuscator\dist\index.js:25:133)

file: `https://cdn.discordapp.com/attachments/1170534081918930946/1183499297535295508/real.js`
pabx06 added a commit to pabx06/synchrony that referenced this issue Dec 26, 2023
@pabx06
Copy link

pabx06 commented Dec 26, 2023

same issue here
fix:change helper functions immutate to

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