Comments (9)
Oh here
C:\Users\onmaz\Downloads\Krex Priv Gr@bber\Priv\node_modules\js-confuser\dist\transforms\controlFlowFlattening\switchCaseObfuscation.js:31
return object.type == "SwitchStatement" && !object.cases.find(x => !(x.test.type == "Literal" && typeof x.test.value === "number" && Math.abs(x.test.value) < 100000));
^
TypeError: Cannot read properties of null (reading 'type')
at C:\Users\onmaz\Downloads\Krex Priv Gr@bber\Priv\node_modules\←[4mjs-confuser←[24m\dist\transforms\controlFlowFlattening\switchCaseObfuscation.js:31:81
at Array.find (<anonymous>)
at SwitchCaseObfuscation.match (C:\Users\onmaz\Downloads\Krex Priv Gr@bber\Priv\node_modules\←[4mjs-confuser←[24m\dist\transforms\controlFlowFlattening\switchCaseObfuscation.js:31:62)
at SwitchCaseObfuscation.input (C:\Users\onmaz\Downloads\Krex Priv Gr@bber\Priv\node_modules\←[4mjs-confuser←[24m\dist\transforms\transform.js:189:14)
at C:\Users\onmaz\Downloads\Krex Priv Gr@bber\Priv\node_modules\←[4mjs-confuser←[24m\dist\transforms\transform.js:141:21
at walk (C:\Users\onmaz\Downloads\Krex Priv Gr@bber\Priv\node_modules\←[4mjs-confuser←[24m\dist\traverse.js:59:18)
at walk (C:\Users\onmaz\Downloads\Krex Priv Gr@bber\Priv\node_modules\←[4mjs-confuser←[24m\dist\traverse.js:76:15)
at walk (C:\Users\onmaz\Downloads\Krex Priv Gr@bber\Priv\node_modules\←[4mjs-confuser←[24m\dist\traverse.js:65:13)
at walk (C:\Users\onmaz\Downloads\Krex Priv Gr@bber\Priv\node_modules\←[4mjs-confuser←[24m\dist\traverse.js:76:15)
at walk (C:\Users\onmaz\Downloads\Krex Priv Gr@bber\Priv\node_modules\←[4mjs-confuser←[24m\dist\traverse.js:76:15)
from js-confuser.
Using the low preset, but setting minify
and compact
to false
seemed to fix the issue for me.
from js-confuser.
Hi, can you provide the entire error stack so I can understand better
from js-confuser.
Hi, can you provide the entire error stack so I can understand better
i'm only getting the same error
from js-confuser.
I mean please show the stack trace. It should appear like this: (example)
/Users/michael/Desktop/test/node_modules/js-confuser/dist/index.js:89
throw new TypeError("code must be type string");
^
TypeError: code must be type string
at JsConfuser (/Users/michael/Desktop/test/node_modules/js-confuser/dist/index.js:89:11)
at Object.obfuscate (/Users/michael/Desktop/test/node_modules/js-confuser/dist/index.js:56:16)
at Object.<anonymous> (/Users/michael/Desktop/test/index.js:3:12)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47
from js-confuser.
Thanks I will get to working on this soon. It seems to do with Switch statements with default cases.
from js-confuser.
Thanks I will get to working on this soon. It seems to do with Switch statements with default cases.
oh ok
from js-confuser.
Sounds like #45 which is closed. @Krex38 can you still reproduce the issue?
If so, can you try to get a minimal reproduction case?
from js-confuser.
I'm running into this same issue. I don't know if it helps, but I got a different error that the maximum call stack was exceeded when I tried to add verbose: true
to the options. There are some decently big files that I'm working with. They're all chunked by webpack, but it always fails in the same spot. I've tried adjusting options to no avail. I'm on the latest version.
from js-confuser.
Related Issues (20)
- Duplicate Literals Removal causes syntax error
- object extraction fails with `const` HOT 3
- TypeError: Object.defineProperty called on non-object HOT 2
- Virtual machine obfuscation HOT 4
- SyntaxError: Unexpected character '🧩' (1:6) HOT 1
- Exception with important variables HOT 1
- RegExp obfuscation HOT 1
- Error on class static field HOT 5
- Template string obfuscation HOT 2
- TypeError: this[o] is not a function HOT 8
- SyntaxError: Identifier '_0x0FD4B81' has already been declared HOT 1
- Anti tamper HOT 1
- SyntaxError: 'return' outside of function (3:4) HOT 3
- Domain lock not working HOT 1
- got inf loop with obfuscated code HOT 1
- Domain lock leaves the domain string unprotected HOT 1
- Minify not support destructuring assignment
- Uncaught (in promise) ReferenceError: Cannot access 'CLBnqYg' before initialization
- escodegen library related to this project HOT 1
- yall should make a deobfuscator for this
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 js-confuser.