Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Music Unlock Web
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Music Unlock Web
Commits
c4853212
There was an error fetching the commit references. Please try again later.
Commit
c4853212
authored
2 years ago
by
xhacker-zzz
Browse files
Options
Downloads
Patches
Plain Diff
small fixes
parent
0458ee46
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/QmcWasm/qmc.hpp
+4
-4
4 additions, 4 deletions
src/QmcWasm/qmc.hpp
src/decrypt/index.ts
+7
-1
7 additions, 1 deletion
src/decrypt/index.ts
src/decrypt/qmc.ts
+11
-1
11 additions, 1 deletion
src/decrypt/qmc.ts
with
22 additions
and
6 deletions
src/QmcWasm/qmc.hpp
+
4
−
4
View file @
c4853212
...
...
@@ -131,6 +131,10 @@ public:
int
PreDecode
(
std
::
string
ext
)
{
cipherType
=
checkType
(
ext
);
size_t
tailSize
=
0
;
if
(
cipherType
==
"invalid"
||
cipherType
==
"STag"
)
{
error
=
"file is invalid or not supported (Please downgrade your app)."
;
return
-
1
;
}
if
(
cipherType
==
"QTag"
)
{
tailSize
=
8
;
}
...
...
@@ -156,10 +160,6 @@ public:
}
rawKeyBuf
=
tmp
;
}
if
(
cipherType
==
"invalid"
)
{
error
=
"file is invalid or not supported(Please downgrade your app.)"
;
return
-
1
;
}
return
keySize
+
tailSize
;
}
...
...
This diff is collapsed.
Click to expand it.
src/decrypt/index.ts
+
7
−
1
View file @
c4853212
...
...
@@ -50,9 +50,12 @@ export async function Decrypt(file: FileInfo, config: Record<string, any>): Prom
case
'
tm3
'
:
// QQ Music IOS Mp3
rt_data
=
await
RawDecrypt
(
file
.
raw
,
raw
.
name
,
'
mp3
'
);
break
;
case
'
qmc0
'
:
//QQ Music Android Mp3
case
'
qmc3
'
:
//QQ Music Android Mp3
case
'
qmc2
'
:
//QQ Music Android Ogg
case
'
qmc0
'
:
//QQ Music Android Mp3
case
'
qmc4
'
:
//QQ Music Android Ogg
case
'
qmc6
'
:
//QQ Music Android Ogg
case
'
qmc8
'
:
//QQ Music Android Ogg
case
'
qmcflac
'
:
//QQ Music Android Flac
case
'
qmcogg
'
:
//QQ Music Android Ogg
case
'
tkm
'
:
//QQ Music Accompaniment M4a
...
...
@@ -68,6 +71,7 @@ export async function Decrypt(file: FileInfo, config: Record<string, any>): Prom
case
'
mggl
'
:
//QQ Music Mac
case
'
mflac
'
:
//QQ Music New Flac
case
'
mflac0
'
:
//QQ Music New Flac
case
'
mflach
'
:
//QQ Music New Flac
case
'
mgg
'
:
//QQ Music New Ogg
case
'
mgg1
'
:
//QQ Music New Ogg
case
'
mgg0
'
:
...
...
@@ -98,6 +102,8 @@ export async function Decrypt(file: FileInfo, config: Record<string, any>): Prom
case
'
x3m
'
:
rt_data
=
await
XimalayaDecrypt
(
file
.
raw
,
raw
.
name
,
raw
.
ext
);
break
;
case
'
mflach
'
:
//QQ Music New Flac
throw
'
网页版无法解锁,请使用<a target="_blank" href="https://git.unlock-music.dev/um/cli">CLI版本</a>
'
default
:
throw
'
不支持此文件格式
'
;
}
...
...
This diff is collapsed.
Click to expand it.
src/decrypt/qmc.ts
+
11
−
1
View file @
c4853212
...
...
@@ -28,8 +28,16 @@ export const HandlerMap: { [key: string]: Handler } = {
qmc0
:
{
ext
:
'
mp3
'
,
version
:
2
},
qmc2
:
{
ext
:
'
ogg
'
,
version
:
2
},
qmc3
:
{
ext
:
'
mp3
'
,
version
:
2
},
qmc4
:
{
ext
:
'
ogg
'
,
version
:
2
},
qmc6
:
{
ext
:
'
ogg
'
,
version
:
2
},
qmc8
:
{
ext
:
'
ogg
'
,
version
:
2
},
bkcmp3
:
{
ext
:
'
mp3
'
,
version
:
1
},
bkcm4a
:
{
ext
:
'
m4a
'
,
version
:
1
},
bkcflac
:
{
ext
:
'
flac
'
,
version
:
1
},
bkcwav
:
{
ext
:
'
wav
'
,
version
:
1
},
bkcape
:
{
ext
:
'
ape
'
,
version
:
1
},
bkcogg
:
{
ext
:
'
ogg
'
,
version
:
1
},
bkcwma
:
{
ext
:
'
wma
'
,
version
:
1
},
tkm
:
{
ext
:
'
m4a
'
,
version
:
1
},
'
666c6163
'
:
{
ext
:
'
flac
'
,
version
:
1
},
'
6d7033
'
:
{
ext
:
'
mp3
'
,
version
:
1
},
...
...
@@ -131,7 +139,9 @@ export class QmcDecoder {
private
searchKey
()
{
const
last4Byte
=
this
.
file
.
slice
(
-
4
);
const
textEnc
=
new
TextDecoder
();
if
(
textEnc
.
decode
(
last4Byte
)
===
'
QTag
'
)
{
if
(
textEnc
.
decode
(
last4Byte
)
===
'
STag
'
)
{
throw
new
Error
(
'
文件中没有写入密钥,无法解锁,请降级App并重试
'
);
}
else
if
(
textEnc
.
decode
(
last4Byte
)
===
'
QTag
'
)
{
const
sizeBuf
=
this
.
file
.
slice
(
-
8
,
-
4
);
const
sizeView
=
new
DataView
(
sizeBuf
.
buffer
,
sizeBuf
.
byteOffset
);
const
keySize
=
sizeView
.
getUint32
(
0
,
false
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment