Git Product home page Git Product logo

facelessjsvmp's Introduction

facelessJsvmp是什么?

单栈实现的js代码虚拟化保护程序,加固代码支持在浏览器和nodejs中运行

使用说明

注:请勿将加固后的代码用于生产环境,由于项目开源导致加固代码很容易被反编译。

学习交流QQ群:441030187

一.WEB页面步骤

  1. 打开链接 https://alanhays.github.io/facelessJsvmp/
  2. 在源代码框(左边)粘贴需要加固的代码
  3. 点击执行加固按钮进行加固(如出现“未解析”则表示有未适配的语法)
  4. 加固代码输出后,更具需要可选择“下载代码”或“复制代码”

二.项目文件步骤(环境:安装了nodejs即可)

  1. test目录下的source.js文件替换为待加固的代码
  2. 执行目录下的main.js进行加固(报错则表示有未适配的语法)
  3. 加固结果为目录下的output.js文件

文件目录

├── test                    // 测试目录
│   ├── source.js           // 待加固的js源文件
│   ├── preprocess.js       // 编译前预处理的源文件
│   ├── main.js             // js代码加固程序-jsvmp (直接run即可)
│   └── output.js           // 输出的加固文件
├── pass                    // 测试通过文件目录 
│   ├── HMAC-SHA256.js      
│   ├── MD5.js                  
│   ├── SHA1.js                      
│   ├── SHA256.js                    
│   ├── SM3.js                  
│   └── SM4.js   
├── tools                   // 工具目录
│   ├── babelPlugins.js     // 打包好的环境
│   ├── dump.js             // 反编译脚本 
│   └── env.js              
├── index.html 
├── README.md               // 项目的说明文档 
├── package.json            // npm包配置文件,里面定义了项目的npm脚本,依赖包等信息 
└── package-lock.json

更新日志

1.0.3 日志:
1.新发现一个bug(解释器bug)
2.新增dump脚本(MD5反编译示例)
1.0.2 日志:
1.修复一个let变量相关的问题
2.新增web页面(丑)https://alanhays.github.io/facelessJsvmp/
1.0.1 日志:
1.新增适配SM4加密算法
2.修复自执行语法执行异常问题

(function (x) {
console.log(x)
})(0)

1.0.0 日志:
1.加固代码支持在浏览器和nodejs中运行

已知问题

YieldExpression 语法未实现 :yield

function* generatorFunction() {
  yield 1;
  yield 2;
  yield 3;
}

SpreadElement 语法未实现:...args

f(...args)

解释器bug示例,由零点大佬发现。表现:加固后与执行源代码结果不一致。

function test() {
    var list = [1, 2];
    test = function () {
        return list;
    };
    return test();
}

let y = test();
y.push(3);
console.log(test());

QQ学习交流群

QQ群号:441030187 | 欢迎大家进唠嗑,一起学习共同进步

image.png

参考文献

JSVMP论文和专利:https://surans.lanzouw.com/inJf30zj41je
大语言模型机器人AI

广告

联系方式 微信号:AlanHays | QQ号:2757317549

本项目开源起,星球内上线同步更新课程,零基础的伙伴们可从零课程开始学习,二课程感兴趣可以学习。
课程目录:
《零.jsvmp原理与AST基础》
《一.手把手带你反编译jsvmp》
《二.手把手带你实现jsvmp》
试听公开课请查看的投稿哦,地址: https://space.bilibili.com/247999712
逆向知识学习交流(星球): https://t.zsxq.com/104HdF074

facelessjsvmp's People

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.