Comments (6)
Yes that script is obfuscated with a custom obfuscator so you'll need to make a custom deobfuscator for it (this repo is for general deobfuscation, not targeted towards any specific obfuscator). It shouldn't be too hard, looks like some standard string encoding and a confused attempt at control flow flattening.
from javascript-deobfuscator.
Hi, can you upload the sample to Pastebin please
from javascript-deobfuscator.
is too big for pastebin. Let me try to find a smaller sample with the same issuee.
from javascript-deobfuscator.
Hi! I got the same issue.
The code: https://pastebin.com/tV2pbHL0
My logs:
PS C:\Users\elias\Desktop\deob\javascript-deobfuscator> npm run start
[email protected] start
tsc && node dist/run.js
[2022-03-11T08:07:45.579Z]: Executing FunctionExecutor
[2022-03-11T08:07:45.671Z]: Executing ProxyRemover
C:\Users\elias\Desktop\deob\javascript-deobfuscator\dist\graph\graph.js:62
throw new Error(Cannot add duplicate edge ${edge.name}
);
^
Error: Cannot add duplicate edge 9021165fb4514548bf76f5ab3b64565c -> e9c17571e6794732a261cd154193a5de
at Graph.addEdge (C:\Users\elias\Desktop\deob\javascript-deobfuscator\dist\graph\graph.js:62:19)
at Controller.enter (C:\Users\elias\Desktop\deob\javascript-deobfuscator\dist\modifications\proxies\proxyRemover.js:137:44)
at Controller.__execute (C:\Users\elias\Desktop\deob\javascript-deobfuscator\node_modules\estraverse\estraverse.js:397:31)
at Controller.traverse (C:\Users\elias\Desktop\deob\javascript-deobfuscator\node_modules\estraverse\estraverse.js:501:28)
at Object.traverse (C:\Users\elias\Desktop\deob\javascript-deobfuscator\node_modules\estraverse\estraverse.js:713:27)
at ProxyRemover.findCycles (C:\Users\elias\Desktop\deob\javascript-deobfuscator\dist\modifications\proxies\proxyRemover.js:126:24)
at ProxyRemover.execute (C:\Users\elias\Desktop\deob\javascript-deobfuscator\dist\modifications\proxies\proxyRemover.js:37:14)
at Object.deobfuscate (C:\Users\elias\Desktop\deob\javascript-deobfuscator\dist\index.js:65:22)
at Object. (C:\Users\elias\Desktop\deob\javascript-deobfuscator\dist\run.js:28:24)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
from javascript-deobfuscator.
Should be fixed in 318c731
from javascript-deobfuscator.
Thanks, the error is gone but it's not deobfuscated, unfortunately. :/
from javascript-deobfuscator.
Related Issues (20)
- Replace proxy functions breaks on function that returns string literal HOT 1
- Deobfuscate array shifting technique efficiently HOT 1
- Function executor does not deal with array of literals and deletes code even if no replacement is found HOT 1
- Does not respond to the script.
- npm ERR! could not determine executable to run HOT 6
- Handle arithmetic double negation HOT 6
- [Bug] Simplify Expression: Fails when variables are present
- [Feature Request] Unpack Objects
- [Bug] Handle separated declaration and assignment
- [Bug] Mishandling of scope HOT 1
- [Feature Request] Remove intermediary variables (or constants)
- [Bug] Proxy function not detected due to variable declaration.
- Comma Expression: different results
- js-deobfuscator: command not found HOT 4
- Unexpected token "{" HOT 4
- Unable to Load
- unnecessary freezing after pasting large code into textarea HOT 3
- DIscord invite down
- npm missing version 1.0.20 HOT 1
- Uncaught Error: Failed to find scope for node FunctionBody HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javascript-deobfuscator.