• This repository has been archived on 24/Dec/2023
  • Stars
    star
    257
  • Rank 158,728 (Top 4 %)
  • Language
    C++
  • License
    MIT License
  • Created almost 3 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

QMC2 文件解密。

QMC2-Decode

Click here for English readme

用于解密 mflac / mgg1 文件的小工具。

注意:工具不包含 key。你需要在编译时添加构建参数,或更改 KeyDec.cpp 后进行编译。

构建

同仓库的 submodule 一同克隆,然后在终端构建:

mkdir -p build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make

注:

  1. 你需要安装 CMake 以及一个支持的 C++ 编译器 (如:g++, MSVC)。
  2. 编译好的二进制文件可以在 build/QMC2-decoder 目录下找到。
  3. 你也可以使用 Visual Studio 2022 进行构建,文件位置在 out 目录下。

可执行文件下载

你可以在 Release 找到 Linux x86_64、Win (32 位) 及 Win (64 位) 的二进制文件下载。

同时亦提供转译 WASM 的版本 (需要现代浏览器):QMC2-WASM

注:Windows 版本需要最新的 VC++ x64 运行时

使用方式

./QMC2-decoder "encrypted_file.mflac" "decrypted.flac"

注:如果解密失败,可以尝试将文件名中的非 ASCII 字符去掉后尝试。 Linux 因为使用 UTF-8 编码因而没有该问题。

批量替换

参考 Wiki 文章批量转换来获取利用 bash 进行批量转换的调用范例。

支持的加密格式

  • 文件末端为 'QTag' 字样的 mgg1 / mflac0 文件;或许也支持其它的该结尾的文件。
  • 文件末端为 0x?? 0x01 0x00 0x00mflacmgg 文件;
  • 文件末端为 0x?? 0x02 0x00 0x00mgg 文件;

Node 包

安装:

npm i @jixun/qmc2-crypto

引入后使用即可,默认使用的是不依赖 wasm 的版本。

详细请参见包的说明以及使用文档/用例

致谢


English

Decryptor for files with mflac / mgg1 extension.

Build

Clone with submodules, then:

mkdir -p build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make

Note:

  1. CMake and a supported C++ compiler (i.e. g++, MSVC) is required.
  2. Binary will be built at build/QMC-decoder folder.
  3. You can also build with Visual Studio 2022, where the binary will be found at out.

Pre-built binaries

You can find Linux (x86_64), Win (32-bit) and Win (64-bit) binaries at Release section.

WASM transpiled version is also available (modern browser required): QMC2-WASM

Note: Windows binary requires latest VC++ x64 Runtime.

Usage

./QMC2-decoder "encrypted_file.mflac" "decrypted.flac"

If decryption fails in Windows, please try again with non-ASCII characters in the file path. Linux uses UTF-8 encoding so is safe.

Decode in batch

Please refer to wiki 批量转换 (Chinese only) for bash script instructions & examples.

Supported format

  • Ending with characters 'QTag', with extension mgg1 / mflac0;
    might also work for other extensions with this ending.
  • Ending with 0x?? 0x01 0x00 0x00 with extension mflac & mgg;
  • Ending with 0x?? 0x02 0x00 0x00 with extension mgg;

Node Package

Install:

npm i @jixun/qmc2-crypto

It uses the legacy build by default that does not require WASM.

See package readme and usage document for details.

Credits

More Repositories

1

mfcDuDownloadCodeGenerator

用于百度网盘的标准提取码生成器
C++
223
star
2

cuwcl4c

Bypass Wait, Code & Login on Websites [不再维护]
JavaScript
178
star
3

dupan-helper

适用于百度网盘的一个用户脚本。
JavaScript
126
star
4

netease-cloud-music-api

网易云音乐直链解析 API
Python
114
star
5

gmDevBook

早期利用 Angular v1 制作的一个简易 Grease Monkey 开发者手册(个人中文翻译)。
JavaScript
42
star
6

qmc-decode

腾讯 QMC 文件的编解码工具。腾讯现在已淘汰该加密方案。
C
34
star
7

jjBot

Just another Javascript Bot for webqq (not maintained anymore)
JavaScript
31
star
8

proxy-163

[Deprecated] A simple proxy built with node.
JavaScript
14
star
9

unblock-163

解鎖網易云音樂
JavaScript
14
star
10

dupan-helper-v2

适用于新版百度网盘(Vue 2.6.14)的增强脚本。
TypeScript
12
star
11

APIHook

An API Hook class written in C# (.net Framework 4). NOT MAINTAINED anymore, please find other alternatives.
C#
11
star
12

py3-win7

Allow Python 3.10 & 3.11 installer to run in Windows 7.
C++
11
star
13

kugou-crypto

酷狗音乐加密库
TypeScript
8
star
14

cloudmusic-patch

适合云音乐补丁 PC 客户端用的补丁。
HTML
8
star
15

yume-tieba-helper

梦姬贴吧助手
JavaScript
8
star
16

RemoveUSKeyboardLayout

使用 Win API 来移除美式键盘布局。
Assembly
8
star
17

OrangeDecryptor

一个用于解密 100% Orange Juice 资源包的小工具。
C++
7
star
18

meross-login

meross login info fetcher tool
JavaScript
7
star
19

ffmpeg-builder

Docker container to build ffmpeg (static).
Shell
5
star
20

GM_Aria2RPC

Aria2 RPC for Grease Monkey
JavaScript
5
star
21

youku-html5

油库里 HTML5 播放器
5
star
22

acfun-sign

AcFun 签到脚本,灵感来自『泷涯的签到程序』。
PHP
5
star
23

TG-Mod-Loader

Mod Loader for Telegram (Win32, QT)
C
5
star
24

qmweb-sign

QQ 音乐 (y.qq.com) 请求签名算法,支持 zzc。
JavaScript
5
star
25

tonydec

lihancong/tonyenc 的解密工具
Python
4
star
26

parakeet

解密音乐文件,桌面客户端。
C++
3
star
27

migu3d-decoder

An experimental Migu3D decoder.
C++
3
star
28

010editor-arch

Run 010editor in Arch, with Wayland and HiDPI support.
Shell
3
star
29

js-transformer

Yet Another JavaScript AST Transformer using recast.
JavaScript
2
star
30

wg-alive

WireGuard Keep-alive cli
C
2
star
31

AdClean

一个基于 Hosts 的广告清理服务。
JavaScript
2
star
32

libtc_tea

C++ implementation of Tencent TEA
C
2
star
33

UniCal

University of York Calendar. This project is not affiliated with UoY in anyway.
C++
2
star
34

pi-cctv

A Simple CCTV using PiCamera.
Python
2
star
35

qmc2-rust

QMC2 decoder, in rust.
Rust
2
star
36

HTML5-Osb-Emulator

Online Osb Player
JavaScript
2
star
37

checkup_telegram

A checkup notifier to forward Slack messages to Telegram
JavaScript
1
star
38

algoTest

Visual Basic
1
star
39

BaiduPan-DDL-Parser

Parse DDL of the link specified.
C#
1
star
40

ContraNES1TranslationPatch

Contra 1 Translation Patch (code only)
Python
1
star
41

quick-user-scripts

Some badly written user scripts written in rush, don't expect much maintainability.
JavaScript
1
star
42

Charles-FlatLAF

Enable Flat Look-and-Feel for Charles. This Java Agent is required for Windows only.
Java
1
star
43

LunarMagicSign

Sign Lunar Magic executable
C
1
star
44

le-install

Let's Encrypt cert distribute helper (via acme.sh)
Shell
1
star
45

tc_tea_rust

Tencent's TEA implementation, in Rust.
Rust
1
star
46

containers

My docker containers.
Shell
1
star
47

JixunMoe.github.io

Some random front-end file host.
HTML
1
star
48

my-chuncai-wp

Just another ChunCai Plugin for WordPress.
JavaScript
1
star
49

vaptcha-iframe

call vaptcha from iframe
HTML
1
star
50

adobe-payload-extractor

Extracts payload files from Adobe's installer.
Python
1
star