Skip to content

jsconfuser: new plugin#117

Draft
echo094 wants to merge 9 commits into
mainfrom
jsconfuser
Draft

jsconfuser: new plugin#117
echo094 wants to merge 9 commits into
mainfrom
jsconfuser

Conversation

@echo094

@echo094 echo094 commented Sep 2, 2024

Copy link
Copy Markdown
Owner

close #112

List of transformations (in version 2.0):

  • Integrity
  • Pack
  • Finalizer
  • RenameVariables
  • AstScrambler
  • Minify
  • RenameLabels
  • MovedDeclarations
  • ControlFlowFlattening
  • Shuffle
  • DuplicateLiteralsRemoval
  • VariableMasking
  • StringCompression
  • StringConcealing
  • StringSplitting
  • OpaquePredicates
  • GlobalConcealing
  • Calculator
  • DeadCode
  • Dispatcher
  • RGF
  • Lock
  • Flatten
  • ObjectExtraction
  • Preparation

@echo094 echo094 added the wip Work in progress label Sep 2, 2024
@echo094
echo094 force-pushed the jsconfuser branch 2 times, most recently from 03a40a2 to cd2859e Compare September 22, 2024 09:57
Comment thread src/visitor/jsconfuser/stack.js Outdated
@einstein95

Copy link
Copy Markdown
/Users/pc/decode-js/src/visitor/jsconfuser/stack.js:197
  const stk_name = path.node.params[0].argument.name
                                   ^

TypeError: Cannot read properties of undefined (reading '0')
    at tryStackReplace (/Users/pc/decode-js/src/visitor/jsconfuser/stack.js:197:36)
    at processStackParam (/Users/pc/decode-js/src/visitor/jsconfuser/stack.js:298:15)
    at Identifier (/Users/pc/decode-js/src/visitor/jsconfuser/stack.js:324:9)
    at NodePath._call (/Users/pc/decode-js/node_modules/@babel/traverse/lib/path/context.js:49:20)
    at NodePath.call (/Users/pc/decode-js/node_modules/@babel/traverse/lib/path/context.js:39:18)
    at NodePath.visit (/Users/pc/decode-js/node_modules/@babel/traverse/lib/path/context.js:85:31)
    at TraversalContext.visitQueue (/Users/pc/decode-js/node_modules/@babel/traverse/lib/context.js:89:16)
    at TraversalContext.visitSingle (/Users/pc/decode-js/node_modules/@babel/traverse/lib/context.js:65:19)
    at TraversalContext.visit (/Users/pc/decode-js/node_modules/@babel/traverse/lib/context.js:112:19)
    at traverseNode (/Users/pc/decode-js/node_modules/@babel/traverse/lib/traverse-node.js:22:17)

code.js.zip

@echo094
echo094 force-pushed the jsconfuser branch 3 times, most recently from 23f2641 to 215e6d6 Compare January 31, 2025 17:22
@echo094
echo094 force-pushed the main branch 3 times, most recently from f6677df to ddcd947 Compare June 27, 2026 00:17
echo094 added 9 commits July 19, 2026 17:58
Squashed commits:
[cc97a64] Stack update
[799dd70] ControlFlowFlattening part1
[fefcebc] StringConcealing
[cfd3688] StringConcealing and GlobalConcealing
[4fb343d] StringConcealing and OpaquePredicates
[d5b5d5a] OpaquePredicates prepare
[7a606fe] StringSplitting
[37170a3] Stack update
[40f5fb1] StringConcealing main
[862f40c] Stack update
[465eed6] StringConcealing prepare
[8cb190a] Stack update
[6ae5e14] StringCompression
[8f5c6fa] DuplicateLiteralsRemoval
[b1b2f50] Stack functionLengthName
[61f7001] Minify arrowFunctionName
[11408a6] AntiTooling
@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 8.99% 268 / 2978
🔵 Statements 9.05% 272 / 3003
🔵 Functions 9.95% 22 / 221
🔵 Branches 6.61% 103 / 1557
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/main.js 0% 0% 0% 0% 11-58
src/plugin/jsconfuser.js 0% 100% 0% 0% 3-67
src/utility/check-func.js 0% 0% 0% 0% 2-10
src/utility/safe-func.js 0% 0% 0% 0% 5-64
src/visitor/jsconfuser/anti-tooling.js 0% 0% 0% 0% 4-49
src/visitor/jsconfuser/control-flow.js 0% 0% 0% 0% 2-174
src/visitor/jsconfuser/duplicate-literal.js 0% 0% 0% 0% 2-118
src/visitor/jsconfuser/global-concealing.js 0% 0% 0% 0% 2-136
src/visitor/jsconfuser/global.js 0% 0% 0% 0% 2-81
src/visitor/jsconfuser/minify.js 0% 0% 0% 0% 2-94
src/visitor/jsconfuser/opaque-predicates.js 0% 0% 0% 0% 2-152
src/visitor/jsconfuser/pack.js 0% 0% 0% 0% 3-83
src/visitor/jsconfuser/stack.js 0% 0% 0% 0% 3-359
src/visitor/jsconfuser/string-compression.js 0% 0% 0% 0% 2-178
src/visitor/jsconfuser/string-concealing.js 0% 0% 0% 0% 2-446
Generated in workflow #74 for commit c40cf2a by the Vitest Coverage Report Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wip Work in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

jsconfuser: 新混淆工具

2 participants