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

Magic number is not correct! #5

Open
halohsu opened this issue Mar 24, 2023 · 2 comments
Open

Magic number is not correct! #5

halohsu opened this issue Mar 24, 2023 · 2 comments

Comments

@halohsu
Copy link

halohsu commented Mar 24, 2023

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

@liudonghua123
Copy link

liudonghua123 commented Apr 11, 2023

The same problems here.

D:\code\node\WxAppUnpacker>node wuWxapkg.js "D:\Documents\WeChat Files\Applet\wx281ef5d197a494f0\30\_js_.wxapkg"
Unpack file D:\Documents\WeChat Files\Applet\wx281ef5d197a494f0\30\_js_.wxapkg...

Header info:
  firstMark: 0x56
  unknownInfo:  827149655
  infoListLength:  1476964515
  dataLength:  2136477909
  lastMark: 0xf8
D:\code\node\WxAppUnpacker\wuWxapkg.js:21
    if (firstMark != 0xbe || lastMark != 0xed) throw Error("Magic number is not correct!");
                                               ^

Error: Magic number is not correct!
    at header (D:\code\node\WxAppUnpacker\wuWxapkg.js:21:54)
    at D:\code\node\WxAppUnpacker\wuWxapkg.js:186:44
    at D:\code\node\WxAppUnpacker\wuLib.js:95:14
    at agent (D:\code\node\WxAppUnpacker\wuLib.js:64:23)
    at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)

Node.js v18.14.2

D:\code\node\WxAppUnpacker>

@liudonghua123
Copy link

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

2 participants