Giter VIP home page Giter VIP logo

deobfuscator-io-archived's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

deobfuscator-io-archived's Issues

control flow

will control flow flattening be supported in the near future?

SyntaxError

deobfuscator.js:117
} catch {}
^

SyntaxError: Unexpected token {
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:616:28)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node src/deobfuscator.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

Problem obfuscation code

Hi thanks for this awesome project.
btw i try to deobfus this code but not working:

https://pastebin.com/gCqCrgeP

error log:

> [email protected] start
> node src/deobfuscator.js

Removed a self defending expression
Removed string array wrappers
Reversed string obfuscation
Unescaped strings

G:\NodeJS\deobfuscator-io\node_modules\esprima\dist\esprima.js:5035
                throw this.createError(index, line, col, description);
                ^
Error: Line 1: Unexpected token ILLEGAL
    at ErrorHandler.constructError (G:\NodeJS\deobfuscator-io\node_modules\esprima\dist\esprima.js:5012:22)
    at ErrorHandler.createError (G:\NodeJS\deobfuscator-io\node_modules\esprima\dist\esprima.js:5028:27)
    at ErrorHandler.throwError (G:\NodeJS\deobfuscator-io\node_modules\esprima\dist\esprima.js:5035:21)
    at Scanner.throwUnexpectedToken (G:\NodeJS\deobfuscator-io\node_modules\esprima\dist\esprima.js:5164:35)
    at Scanner.scanStringLiteral (G:\NodeJS\deobfuscator-io\node_modules\esprima\dist\esprima.js:5938:19)
    at Scanner.lex (G:\NodeJS\deobfuscator-io\node_modules\esprima\dist\esprima.js:6240:26)
    at Parser.nextToken (G:\NodeJS\deobfuscator-io\node_modules\esprima\dist\esprima.js:2079:34)
    at Parser.parseBinaryExpression (G:\NodeJS\deobfuscator-io\node_modules\esprima\dist\esprima.js:3117:34)
    at Parser.inheritCoverGrammar (G:\NodeJS\deobfuscator-io\node_modules\esprima\dist\esprima.js:2285:37)
    at Parser.parseConditionalExpression (G:\NodeJS\deobfuscator-io\node_modules\esprima\dist\esprima.js:3141:26) {
  index: 155983,
  lineNumber: 1,
  description: 'Unexpected token ILLEGAL'
}
npm ERR! code 1
npm ERR! path G:\NodeJS\deobfuscator-io
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node src/deobfuscator.js

windows 10 64 bit + latest nodejs

RangeError: Invalid string length

Thanks for sharing this great tool!

I am getting the following error when I run it on my code:

Removed a self defending expression
Removed string array wrappers
Reversed string obfuscation
/deobfuscator-io/src/deobfuscator.js:136
            editedSource = editedSource.replace(nodeSource, `'${string}'`);
                                        ^

RangeError: Invalid string length
    at String.replace (<anonymous>)
    at esprima.parseScript (/deobfuscator-io/src/deobfuscator.js:136:41)
    at Parser.proxyDelegate [as delegate] (/deobfuscator-io/node_modules/esprima/dist/esprima.js:93:14)
    at Parser.finalize (/deobfuscator-io/node_modules/esprima/dist/esprima.js:2159:19)
    at Parser.parsePrimaryExpression (/deobfuscator-io/node_modules/esprima/dist/esprima.js:2325:30)
    at Parser.inheritCoverGrammar (/deobfuscator-io/node_modules/esprima/dist/esprima.js:2285:37)
    at Parser.parseLeftHandSideExpressionAllowCall (/deobfuscator-io/node_modules/esprima/dist/esprima.js:2899:26)
    at Parser.inheritCoverGrammar (/deobfuscator-io/node_modules/esprima/dist/esprima.js:2285:37)
    at Parser.parseUpdateExpression (/deobfuscator-io/node_modules/esprima/dist/esprima.js:3004:26)
    at Parser.parseUnaryExpression (/deobfuscator-io/node_modules/esprima/dist/esprima.js:3048:26)

Any idea what the problem is? Would you like me to share the code that causes this error?

Thanks for you help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.