Computer projects

How Xunlei Download Links Work and How to Convert Them

Some older Xunlei, FlashGet, and QQ Xuanfeng links wrap an ordinary download URL and encode it with Base64. The archived examples below show each step. The example domain is retained only to illustrate the format.

Base64 and the original URL

Base64 is encoding, not encryption: it represents bytes as printable characters. The encoding rules are defined in RFC 4648. Decode the payload and remove the downloader’s wrapper to recover the original URL.

For example, this Xunlei link decodes to AAhttp://sosobt.com/ZZ. Removing AA and ZZ leaves http://sosobt.com/:

thunder://QUFodHRwOi8vc29zb2J0LmNvbS9aWg==

All three examples below use http://sosobt.com/1.rar as their original URL.

Xunlei links

Add AA before the original URL and ZZ after it:

AAhttp://sosobt.com/1.rarZZ

Base64-encode that entire string, then prepend thunder://:

thunder://QUFodHRwOi8vc29zb2J0LmNvbS8xLnJhclpa

FlashGet links

Add the literal marker [FLASHGET] at both ends of the original URL:

[FLASHGET]http://sosobt.com/1.rar[FLASHGET]

The Base64 result is:

W0ZMQVNIR0VUXWh0dHA6Ly9zb3NvYnQuY29tLzEucmFyW0ZMQVNIR0VUXQ==

The old article gives the complete link below. Its &sosobt suffix is outside the Base64 payload. The source does not explain the full suffix rules, so this example should not be treated as a requirement for every FlashGet link.

flashget://W0ZMQVNIR0VUXWh0dHA6Ly9zb3NvYnQuY29tLzEucmFyW0ZMQVNIR0VUXQ==&sosobt

QQ Xuanfeng links

Base64-encode the original URL directly, then prepend qqdl://:

qqdl://aHR0cDovL3Nvc29idC5jb20vMS5yYXI=

These examples describe historical link formats. They do not establish that the old download clients or example download addresses still work today.

Reposted from: Xunlei link encoding and conversion — CA31

Published 08/30/2018 · Krunk Zhou

Join the conversation