system-cpu / wxappunpacker Goto Github PK
View Code? Open in Web Editor NEW基于node反编译小程序 已经配置完成
License: GNU General Public License v3.0
基于node反编译小程序 已经配置完成
License: GNU General Public License v3.0
执行:node wuWxapkg.js testpkg/XXXX.wxapkg
报错:
wxappUnpacker1-master/node_modules/vm2/lib/transformer.js:86
throw e;
^
vm.js:25
}
^
SyntaxError: Unexpected token '}'
wxss,解不出来了,微信规则改了
微信用的夜神模拟器打开,清空微信文件夹下所有的wxapkg
打开小程序,然后得到分包主包,命名为master.wxapkg,slave1.wxapkg,slave2.wxapkg
主包执行
.\bingo.sh .\g\master.wxapkg
分包执行
.\bingo.sh -s=g\master .\g\slave1.wxapkg
Unpack done.
now dir: C:\Users\l\Desktop\wxappUnpacker-master\g\_705887512_4
param of mainDir: g/slave1
subpack C:\Users\l\Desktop\wxappUnpacker-master\g\_705887512_4 C:\Users\l\Desktop\wxappUnpacker-master\g\_705887512_4
subpack C:\Users\l\Desktop\wxappUnpacker-master\g\_705887512_4\GameSceneAll C:\Users\l\Desktop\wxappUnpacker-master\g\_705887512_4
subpack C:\Users\l\Desktop\wxappUnpacker-master\g\_705887512_4\GameSceneAll\Conventional C:\Users\l\Desktop\wxappUnpacker-master\g\_705887512_4
subpack C:\Users\l\Desktop\wxappUnpacker-master\g\_705887512_4\GameSceneAll\Conventional\Assets C:\Users\l\Desktop\wxappUnpacker-master\g\_705887512_4
subpack C:\Users\l\Desktop\wxappUnpacker-master\g\_705887512_4\GameSceneAll\Conventional\Assets\AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA C:\Users\l\Desktop\wxappUnpacker-master\g\_705887512_4
subpack C:\Users\l\Desktop\wxappUnpacker-master\g\_705887512_4\GameSceneAll\Conventional\Assets\AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\New Material 3.lmat C:\Users\l\Desktop\wxappUnpacker-master\g\_705887512_4
internal/fs/utils.js:259
throw err;
^
Error: ENOTDIR: not a directory, scandir 'C:\Users\l\Desktop\wxappUnpacker-master\g\_705887512_4\GameSceneAll\Conventional\Assets\AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\New Material 3.lmat'
at Object.readdirSync (fs.js:974:3)
at findDir (C:\Users\l\Desktop\wxappUnpacker-master\wuWxapkg.js:155:36)
at findDir (C:\Users\l\Desktop\wxappUnpacker-master\wuWxapkg.js:166:29)
at findDir (C:\Users\l\Desktop\wxappUnpacker-master\wuWxapkg.js:166:29)
at findDir (C:\Users\l\Desktop\wxappUnpacker-master\wuWxapkg.js:166:29)
at findDir (C:\Users\l\Desktop\wxappUnpacker-master\wuWxapkg.js:166:29)
at findDir (C:\Users\l\Desktop\wxappUnpacker-master\wuWxapkg.js:166:29)
at Array.packDone (C:\Users\l\Desktop\wxappUnpacker-master\wuWxapkg.js:172:17)
at CntEvent.decount (C:\Users\l\Desktop\wxappUnpacker-master\wuLib.js:20:54)
at C:\Users\l\Desktop\wxappUnpacker-master\wuLib.js:88:17 {
errno: -4052,
syscall: 'scandir',
code: 'ENOTDIR',
path: 'C:\\Users\\l\\Desktop\\wxappUnpacker-master\\g\\_705887512_4\\GameSceneAll\\Conventional\\Assets\\AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\\New Material 3.lmat'
}
所以想问下大佬,分包解压的正确姿势!
感谢
有朋友还在用这个库吗?我尝试解主包文件,控制台显示有4个子包并且解包成功,但是我在解包的文件夹里面没有看到子包对应的.wxapkg文件
=_=
node /Users/bluemiaomiao/Developer/wxappUnpacker/wuWxapkg.js
Unpack file /Users/bluemiaomiao/Downloads/15.wxapkg...
Header info:
firstMark: 0x7f
unknownInfo: 2325094700
infoListLength: 2344130302
dataLength: 454421007
lastMark: 0xec
/Users/bluemiaomiao/Developer/wxappUnpacker/wuWxapkg.js:21
if (firstMark != 0xbe || lastMark != 0xed) throw Error("Magic number is not correct!");
^
Error: Magic number is not correct!
at header (/Users/bluemiaomiao/Developer/wxappUnpacker/wuWxapkg.js:21:54)
at /Users/bluemiaomiao/Developer/wxappUnpacker/wuWxapkg.js:186:44
at /Users/bluemiaomiao/Developer/wxappUnpacker/wuLib.js:103:14
at agent (/Users/bluemiaomiao/Developer/wxappUnpacker/wuLib.js:66:23)
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)
Node.js v18.15.0
Unpack done.
Split app-service.js and make up configs & wxss & wxml & wxs...
deal config ok
deal js ok
deal html ok
deal css ok
splitJs: /home/harry/wxappUnpacker-master/app/wx7ff71e40388d161c/app-service.js
/home/harry/wxappUnpacker-master/node_modules/vm2/lib/transformer.js:174
throw makeNiceSyntaxError('Use of internal vm2 state variable', code, filename, internStateValiable.start, {
^
vm.js:4840
"use strict";function n(n,t,e,o,r,i,u){try{var c=n[i](u),_=c.value}catch(n){return void e(n=VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(n))}c.done?t(_):Promise.resolve(_).then(o,r)}module.exports=function(t){return function(){var e=this,o=arguments;return new Promise((function(r,i){var u=t.apply(e,o);function c(t){n(u,r,i,c,_,"next",t)}function _(t){n(u,r,i,c,_,"throw",t)}c(void 0)}))}};
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Use of internal vm2 state variable
at makeNiceSyntaxError (/home/harry/wxappUnpacker-master/node_modules/vm2/lib/transformer.js:41:16)
at transformer (/home/harry/wxappUnpacker-master/node_modules/vm2/lib/transformer.js:174:9)
at VM.run (/home/harry/wxappUnpacker-master/node_modules/vm2/lib/vm.js:491:16)
at /home/harry/wxappUnpacker-master/wuJs.js:48:12
at /home/harry/wxappUnpacker-master/wuLib.js:103:14
at agent (/home/harry/wxappUnpacker-master/wuLib.js:66:23)
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)
wxss,解不出来了,微信规则改了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.