2020微信小程序反編譯(逆向),僅用於學習請勿商用


1. 找到wxapk

夜神模擬器 + ES文件瀏覽器

反編譯小程序,這一篇就夠了!!!

最新反編譯任何微信小程序,以及獨立分包、插件的處理方式

 

2. 逆向wxapk

https://github.com/Ryan-Miao/wxappUnpacker

GitHub - wanliofficial/wxappUnpacker: 微信小程序本地應用包逆向工具

https://github.com/Cherrison/CrackMinApp

https://github.com/leo9960/wechat-app-unpack

微信小程序反編譯(逆向)

https://github.com/xuedingmiaojun/mp-unpack

 

3. 反編譯過程中遇到問題

1)解包原理

從一次失敗的微信小程序抓包、反編譯經歷中學習反思

2019-10-15解決微信小程序反編譯的所有問題:分包、插件等等

                throw this._internal.Decontextify.value(e);
                ^
ReferenceError [Error]: __vd_version_info__ is not defined

解決方案:

最新解決小程序反編譯$gwx is not defined和__vd_version_info__ is not defined

function runOnce() {

for (let name in runList) {

// console.log(name, runList[name]);

var start = `var window = window || {}; var __pageFrameStartTime__ = Date.now(); var __webviewId__; var __wxAppCode__={}; var __mainPageFrameReady__ = function(){}; var __WXML_GLOBAL__={entrys:{},defines:{},modules:{},ops:[],wxs_nf_init:undefined,total_ops:0}; var __vd_version_info__=__vd_version_info__||{};

$gwx=function(path,global){

if(typeof global === 'undefined') global={};if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={};

}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {};

}`;

runVM(name, start + " \r\n" + runList[name]);

}

}

解決$gwx is not defined

functionrunVM(name,code){

    let wxAppCode={},handle={cssFile:name};

    let gg = new GwxCfg();

    let tsandbox ={$gwx:GwxCfg.prototype["$gwx"],__mainPageFrameReady__:GwxCfg.prototype["$gwx"],__wxAppCode__:wxAppCode,setCssToHead:cssRebuild.bind(handle)};

    let vm = new VM({sandbox:tsandbox});

    vm.run(code);

    for(let name in wxAppCode)if(name.endsWith(".wxss")){

        handle.cssFile=path.resolve(frameName,"..",name);

        wxAppCode[name]();

    }

}

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM