Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vm.js:2 SyntaxError: Unexpected end of input #3

Open
erekook opened this issue Jul 15, 2020 · 4 comments
Open

vm.js:2 SyntaxError: Unexpected end of input #3

erekook opened this issue Jul 15, 2020 · 4 comments

Comments

@erekook
Copy link

erekook commented Jul 15, 2020

`$ 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)`

@xdmjun
Copy link
Owner

xdmjun commented Jul 15, 2020

`$ 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)`

这个很多反馈说是微信更新了 原来的插件不适用了 解析wxss报错 暂时还没找到解决办法

@GurglingY
Copy link

等待解决方案

@Chiana1725
Copy link

Chiana1725 commented Mar 14, 2022

打开wuWxss.js按下图修改:
image
image
node wuWxss.js wxapk路径,这个报错说明了执行代码时某个环节的代码没写对,按上面的图片进行修改就可以完美执行了,完美反编译

@kongmengfei
Copy link

kongmengfei commented Nov 14, 2022

打开wuWxss.js按下图修改: image image node wuWxss.js wxapk路径,这个报错说明了执行代码时某个环节的代码没写对,按上面的图片进行修改就可以完美执行了,完美反编译

后面又出错了。 node. children.each is not a function
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants