Git Product home page Git Product logo

mp-unpack's Issues

子包

throw new Error("检测到此包是分包后的子包, 请通过 -s 参数指定存放路径后重试, 如 node wuWxapkg.js -s=/xxx/xxx ./testpkg/test-pkg-sub.wxapkg");

WXSS还原不了,vm.js:2 _C

vm.js:2 _C ^^ SyntaxError: Unexpected end of i
nput at new Script (vm.js:83:7) at VM.run (C:\Users\Administrator\AppData\Local\Pro
grams\mp-unpack
resources\tool\node_modules\vm2\lib\main.js:834:13) at wu.get.code (C:\U
sers\Administrator\AppData\Local\Programs\mp-unpack\resources\tool\wuWxss.js:243:27) at ioLimit.runWithCb (C:\Users\Administrator\AppData\Local\Programs\mp-unpack\resources\tool\wuLib.js:95:14) at agent (C:\Users\Administrat
or\AppData\Local\Programs\mp-unpack\resources\tool\wuLib.js:64:23) at FSReqWrap.readFileAfterClos
e [as oncomplete] (i
nternal/fs/read_file_cont
ext.js:53:3)

新发布小程序逆向失败

新的小程序编译版本 v0.5vv_20200413_syb_scopedata

vm.js:41
return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[]
^^^^^^

SyntaxError: Illegal return statement
at new Script (node:vm:99:7)
at VM.run (/volumes/work/tool/newun/node_modules/vm2/lib/main.js:834:13)
at /volumes/work/tool/newun/wuWxml.js:366:7
at /volumes/work/tool/newun/wuRestoreZ.js:280:27
at catchZ (/volumes/work/tool/newun/wuRestoreZ.js:32:5)
at getZ (/volumes/work/tool/newun/wuRestoreZ.js:280:9)
at /volumes/work/tool/newun/wuWxml.js:354:3
at /volumes/work/tool/newun/wuLib.js:95:14
at agent (/volumes/work/tool/newun/wuLib.js:64:23)

分包依旧无法合并

试了下几个小游戏都有分包,需要一个个包去猜一下哪个才是主包。。
已经发到大佬邮箱了。

Linux下解包时报错

命令

$ ./mp-unpack-1.1.1.AppImage
Error: EROFS: read-only file system, open '/tmp/.mount_mp-unpBXkfJt/resources/tool/_-2145413261_35.wxapkg'

日志

Unpack file _-2145413261_35.wxapkg... 
/tmp/.mount_mp-unpBXkfJt/resources/tool/wuLib.js:102 if (err) throw Error("Read file error: " + err); ^ Error: Read file error: Error: ENOENT: no such file or directory, open '_-2145413261_35.wxapkg' at ReadFileContext. (/tmp/.mount_mp-unpBXkfJt/resources/tool/wuLib.js:102:24) at ReadFileContext.agent [as callback] (/tmp/.mount_mp-unpBXkfJt/resources/tool/wuLib.js:66:23) at FSReqCallback.readFileAfterOpen [as oncomplete] (node:fs:289:13) 

系统

Arch Linux x86_64

vm.js:2 SyntaxError: Unexpected end of input

`$ node wuWxapkg.js ~/xxx/-513916267_283.wxapkg
Unpack file ~/xxx/
-513916267_283.wxapkg...

Header info:
firstMark: 0xbe
unknownInfo: 0
infoListLength: 2310
dataLength: 1778803
lastMark: 0xed

File list info:
fileCount: 41
Saving files...
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
/Users/tanlongjie/Desktop/photo/-513916267_283/app-config.json
splitJs: /Users/tanlongjie/Desktop/photo/
-513916267_283/app-service.js
/Users/tanlongjie/Desktop/photo/-513916267_283 config.js
/Users/tanlongjie/Desktop/photo/
-513916267_283 utils/engine.js
/Users/tanlongjie/Desktop/photo/-513916267_283 utils/qqmap-wx-jssdk.min.js
/Users/tanlongjie/Desktop/photo/
-513916267_283 utils/tool.js
/Users/tanlongjie/Desktop/photo/-513916267_283 utils/util.js
/Users/tanlongjie/Desktop/photo/
-513916267_283 app.js
/Users/tanlongjie/Desktop/photo/-513916267_283 pages/vindex/vindex.js
/Users/tanlongjie/Desktop/photo/
-513916267_283 pages/index/index.js
/Users/tanlongjie/Desktop/photo/-513916267_283 pages/logs/logs.js
Splitting "/Users/tanlongjie/Desktop/photo/
-513916267_283/app-service.js" done.
Decompile ./pages/index/index.wxml...
Decompile success!
Decompile ./pages/logs/logs.wxml...
Decompile success!
Decompile ./pages/template/main.wxml...
Decompile success!
Decompile ./pages/template/templists/blankTemp.wxml...
Decompile success!
Decompile ./pages/template/templists/xiangni_sanfu0708.wxml...
Decompile success!
Decompile ./pages/template/templists/xiangni_summer0512.wxml...
Decompile success!
Decompile ./pages/template/templists/xiangni_summer0518.wxml...
Decompile success!
Decompile ./pages/template/templists/xiangni_summer0526.wxml...
Decompile success!
Decompile ./pages/template/templists/xiangni_wsh2004.wxml...
Decompile success!
Decompile ./pages/template/templists/xiangni_zsh2001.wxml...
Decompile success!
Decompile ./pages/template/tools.wxml...
Decompile success!
Decompile ./pages/vindex/vindex.wxml...
Decompile success!
vm.js:2
_C

SyntaxError: Unexpected end of input
at new Script (vm.js:99:7)
at VM.run (/Users/tanlongjie/code/longjie/self/unpacker/wxappUnpacker/node_modules/vm2/lib/main.js:834:13)
at /Users/tanlongjie/code/longjie/self/unpacker/wxappUnpacker/wuWxss.js:243:27
at /Users/tanlongjie/code/longjie/self/unpacker/wxappUnpacker/wuLib.js:95:14
at agent (/Users/tanlongjie/code/longjie/self/unpacker/wxappUnpacker/wuLib.js:64:23)
at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:63:3)`

执行命令报错

⨯ [object Object]
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: node .electron-vue/build.js && electron-builder
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\mingzhen.shao\AppData\Roaming\npm-cache_logs\2020-08-17T09_31_02_831Z-debug.log

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.