wxapkg

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

README

wxapkg

.wxapkg analysis tool for macOS

Install

go install github.com/ac0d3r/wxapkg/cmd/wxapkgx@latest

Featrue

  • unpack *.wxapkg
  • list WeChat *.wxapkg files
  • debug webview with Safari(16.4+)
    • (Didn't use frida-go because I didn't want to embed a huge .a file)

Thx

Documentation

Overview

From: https://github.com/wux1an/wxapkg/blob/main/util/beautify.go

Index

Constants

View Source
const (
	WXAPkgMagic    = 0xBE
	WXAPkgEndMagic = 0xED
)

Variables

View Source
var (
	ErrInvalidWXAPkg = errors.New("invalid wxapkg file")
)

Functions

func CacheCheckDir

func CacheCheckDir() func(path string) error

func Format

func Format(ext string, data []byte) []byte

func GetWXAppletPath

func GetWXAppletPath() string

func PrettyHtml

func PrettyHtml(data []byte) []byte

func PrettyJavaScript

func PrettyJavaScript(data []byte) []byte

func PrettyJson

func PrettyJson(data []byte) []byte

func SafetyGetData

func SafetyGetData(data []byte, offset, size uint32) []byte

func Unpack

func Unpack(file, output string, format bool, printf func(format string, a ...interface{})) error

Types

type FileIndex

type FileIndex struct {
	Name   string
	Offset uint32
	Size   uint32
}
type Header struct {
	Magic       byte
	Reserved    uint32 // 预留的4字节
	IndexLength uint32 // 索引长度
	BodyLength  uint32 // 数据长度
	EndMagic    byte
	FileCount   uint32 // 文件总数
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL