91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 2KB
    文件類型: .py
    金幣: 1
    下載: 0 次
    發布日期: 2021-06-15
  • 語言: Python
  • 標簽: tool??

資源簡介

采用adb開發工具從root后的手機上導出微信小程序源碼包到計算機,使用本文件可解壓縮小程序源碼包,修改fname即可。

資源截圖

代碼片段和文件信息

#?-*-?coding:?utf-8?-*-
“““
Created?on?Fri?Sep?14?00:00:07?2018

@author:?Growing
“““

#!/usr/bin/python

#?lrdcq
#?usage?python?wxapkg_unpack.py?filename?unpack?at?filename.unpack

import?sys?os
import?struct


class?WxapkgFile:
????nameLen?=?0
????name?=?““
????offset?=?0
????size?=?0


def?run(fname):
????with?open(fname?“rb“)?as?f:
????????root?=?os.path.dirname(os.path.realpath(f.name))
????????name?=?os.path.basename(f.name)

????????#?read?header

????????firstMark?=?struct.unpack(‘B‘?f.read(1))[0]
????????print(‘first?header?mark?=?‘?+?str(firstMark))

????????info1?=?struct.unpack(‘>L‘?f.read(4))[0]
????????print(‘info1?=?‘?+?str(info1))

????????indexInfoLength?=?struct.unpack(‘>L‘?f.read(4))[0]
????????print(‘indexInfoLength?=?‘?+?str(indexInfoLength))

????????bodyInfoLength?=?struct.unpack(‘>L‘?f.read(4))[0]
????????print(‘bodyInfoLength?=?‘?+?str(bodyInfoLength))

????????lastMark?=?struct.unpack(‘B‘?f.read(1))[0]
????????print(‘last?header?mark?=?‘?+?str(lastMark))

????????if?firstMark?!=?190?or?lastMark?!=?237:
????????????print(‘its?not?a?wxapkg?file!!!!!‘)
????????????exit()

????????fileCount?=?struct

評論

共有 條評論