- 👋 Hi, I’m @wux1an
- 👀 I’m interested in ...
- 🌱 I’m currently learning ...
- 💞️ I’m looking to collaborate on ...
- 📫 How to reach me ...
wux1an / wxapkg Goto Github PK
View Code? Open in Web Editor NEW微信小程序反编译工具,.wxapkg 文件扫描 + 解密 + 解包工具
微信小程序反编译工具,.wxapkg 文件扫描 + 解密 + 解包工具
wxapkg_1.5.0_windows_amd64.exe scan -r "D:\weixin\files\WeChat Files\wxid_7rqr5gp8ic3l22\Applet"
[+] unpack root 'D:\weixin\files\WeChat Files\wxid_7rqr5gp8ic3l22\Applet\wxada4175c8b2a9864' with 30 threads
no '.wxapkg' file found in 'D:\weixin\files\WeChat Files\wxid_7rqr5gp8ic3l22\Applet\wxada4175c8b2a9864_wxprivate_'
求问
open C:\Users\Administrator\Documents\WeChat Files\Applet: The system cannot find the path specified.
如何小程序的包不在默认路径应该怎么办
/// <summary>
/// 通过注册表读取某字符串数值
/// </summary>
/// <param name="subPath"></param>
/// <param name="name"></param>
/// <returns></returns>
public static string? ReadPathFromReg(string subPath, string name) {
string? res = null;
try {
RegistryKey? key = Registry.LocalMachine.OpenSubKey(subPath);
if (key is not null) {
res = key.GetValue(name)?.ToString();
key.Close();
}
} catch (Exception) {
}
if (res == null) {
try {
RegistryKey? key = Registry.CurrentUser.OpenSubKey(subPath);
if (key is not null) {
res = key.GetValue(name)?.ToString();
key.Close();
}
} catch (Exception) {
}
}
return res;
}
调用方式:
ReadPathFromReg(@"SOFTWARE\Tencent\WeChat", "FileSavePath");
用gpt转换为go语言(仅作参考,可能需要修改优化):
package main
import (
"fmt"
"github.com/Microsoft/Windows-sysinternals-docs/blob/master/registry/goreg"
)
func main() {
subPath := "YourRegistrySubPath"
name := "YourValueName"
value, err := ReadValueFromReg(subPath, name)
if err != nil {
fmt.Println("Error reading from registry:", err)
} else {
fmt.Println("Value read from registry:", value)
}
}
func ReadValueFromReg(subPath, name string) (string, error) {
// First, try to read from LocalMachine hive
key, err := winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, subPath, winreg.QUERY_VALUE)
if err == nil {
defer key.Close()
value, _, err := key.GetStringValue(name)
if err == nil {
return value, nil
}
}
// If that fails, try to read from CurrentUser hive
key, err = winreg.OpenKey(winreg.HKEY_CURRENT_USER, subPath, winreg.QUERY_VALUE)
if err == nil {
defer key.Close()
value, _, err := key.GetStringValue(name)
if err == nil {
return value, nil
}
}
return "", err
}
Hi, I tried this app, but I got the following errors. It seemed the Applet
path is hardcoded in the app, I tried to make this work via created a directory link via cd C:\Users\Liu.D.H\Documents && mklink /J "WeChat Files" "D:\Documents\WeChat Files"
, but provide a cli option would be a nice solution.
> D:\Downloads\wxapkg_1.5.0_windows_amd64.exe scan
open C:\Users\Liu.D.H\Documents\WeChat Files\Applet: The system cannot find the path specified.
> D:\Downloads\wxapkg_1.5.0_windows_amd64.exe --help
A tool to scan and decrypt wechat mini program
Usage:
wxapkg [command]
Available Commands:
help Help about any command
scan Scan the wechat mini program
unpack Decrypt wechat mini program
Flags:
--disable-beautify disable js,html,json beautify
-h, --help help for wxapkg
-v, --version version for wxapkg
Use "wxapkg [command] --help" for more information about a command.
>
error: 暂未收录 appid 为: wx39fef30273f9b8c0的小程序
提示app.json app.js未找到,
部分文件内容只是框架 没内容
比如:
`// pages/center/index.js
Page({
/**
},
/**
},
/**
},
/**
},
/**
},
/**
},
/**
},
/**
},
/**
}
})`
为什么我直接用scan或者unpack解出来的包只有plugin.js或plugin.json,用wuWxapkg.js反编译的话解出来的文件明显比较多,是缺少什么东西了么
反编译后输出的文件是在那个位置呀?
建议加个参数指定微信存储位置,如果不在默认c盘就没法使用了
您好,我打开小程序后,在微信默认的路径上cmd,然后执行wxapkg.exe scan 黑窗口会直接卡消失,这是神马情况
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.