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

Unable to deob #11

Open
brenr opened this issue Jan 20, 2020 · 0 comments
Open

Unable to deob #11

brenr opened this issue Jan 20, 2020 · 0 comments

Comments

@brenr
Copy link

brenr commented Jan 20, 2020

Issue:
During my deobfuscation of test, I'm receiving the following below in my terminal. Any ideas?

Pastebin of files:
cf.js
cf_nice.js

Terminal output:

brendan@brendan-desktop ~/Desktop/illuminatejs
 % ./node_modules/@babel/cli/bin/babel.js --plugins "./babel-plugin-deobfuscate/lib/illuminatejs.js"  ~/cf.js 
Unknown loop control variable
Unknown loop control variable
Unknown loop control variable
Unknown loop control variable
{ TypeError: /home/brendan/cf.js: Expected node path of type Expression
    at NodePath.(anonymous function) [as assertExpression] (/home/brendan/Desktop/illuminatejs/node_modules/@babel/traverse/lib/path/index.js:243:13)
    at Object.evaluateExpression (/home/brendan/Desktop/illuminatejs/babel-plugin-deobfuscate/lib/expressions.js:30:10)
    at evaluateInit (/home/brendan/Desktop/illuminatejs/babel-plugin-deobfuscate/lib/identifiers.js:76:26)
    at evaluate (/home/brendan/Desktop/illuminatejs/babel-plugin-deobfuscate/lib/identifiers.js:51:20)
    at Object.evaluateExpression (/home/brendan/Desktop/illuminatejs/babel-plugin-deobfuscate/lib/expressions.js:32:12)
    at /home/brendan/Desktop/illuminatejs/babel-plugin-deobfuscate/lib/functions.js:70:76
    at Array.map (<anonymous>)
    at Object.evaluatedArguments (/home/brendan/Desktop/illuminatejs/babel-plugin-deobfuscate/lib/functions.js:70:34)
    at evaluateMemberCall (/home/brendan/Desktop/illuminatejs/babel-plugin-deobfuscate/lib/call-expressions.js:122:26)
    at evaluate (/home/brendan/Desktop/illuminatejs/babel-plugin-deobfuscate/lib/call-expressions.js:28:22) code: 'BABEL_TRANSFORM_ERROR' }
brendan@brendan-desktop ~/Desktop/illuminatejs
 % ./node_modules/@babel/cli/bin/babel.js --plugins "./babel-plugin-deobfuscate/lib/illuminatejs.js"  ~/cf_nice.js
{ SyntaxError: /home/brendan/cf_nice.js: Legacy octal literals are not allowed in strict mode (1315:8)

  1313 |     golden_ratio_conjugate = window[logMethod] && t4q[dataBindingName](Object.prototype.toString.call(window[logMethod])[t4q.f20](data), t4q.H5I) ? t4q.z5I : t4q.H5I;
  1314 |     scope[t4q.s30](h + golden_ratio_conjugate);
> 1315 |     var 0101;
       |         ^
  1316 |     0101 = t4q.a2I == typeof window[t4q.e9I] || t4q.a2I == typeof window[t4q.h1I] || t4q.a2I == typeof window[t4q.A50] ? t4q.z5I : t4q.H5I;
  1317 |     scope[t4q.s30](v + 0101);
  1318 |     var On;
    at Parser.raise (/home/brendan/Desktop/illuminatejs/node_modules/@babel/parser/lib/index.js:7013:17)
    at Parser.readNumber (/home/brendan/Desktop/illuminatejs/node_modules/@babel/parser/lib/index.js:7891:14)
    at Parser.getTokenFromCode (/home/brendan/Desktop/illuminatejs/node_modules/@babel/parser/lib/index.js:7648:14)
    at Parser.nextToken (/home/brendan/Desktop/illuminatejs/node_modules/@babel/parser/lib/index.js:7230:12)
    at Parser.next (/home/brendan/Desktop/illuminatejs/node_modules/@babel/parser/lib/index.js:7159:10)
    at Parser.parseVarStatement (/home/brendan/Desktop/illuminatejs/node_modules/@babel/parser/lib/index.js:11127:10)
    at Parser.parseStatementContent (/home/brendan/Desktop/illuminatejs/node_modules/@babel/parser/lib/index.js:10725:21)
    at Parser.parseStatement (/home/brendan/Desktop/illuminatejs/node_modules/@babel/parser/lib/index.js:10658:17)
    at Parser.parseBlockOrModuleBlockBody (/home/brendan/Desktop/illuminatejs/node_modules/@babel/parser/lib/index.js:11234:25)
    at Parser.parseBlockBody (/home/brendan/Desktop/illuminatejs/node_modules/@babel/parser/lib/index.js:11221:10)
  pos: 38776,
  loc: Position { line: 1315, column: 8 },
  code: 'BABEL_PARSE_ERROR' }
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

1 participant