1. Current Location: Home >  Router Encyclopedia >  Open a magnetic link, download without a server, and inside is the file fingerprint

Open a magnetic link, download without a server, and inside is the file fingerprint

Magnetic link structure teardown diagram: XT fingerprint, DN display name, TR registry three segments; star server download and mesh BT cross-transfer comparison, block list SHA-1 verification

Last month, my cousin came to my house and saw that I had pasted a string of characters into qBittorrent. He downloaded it and started running on its own. He leaned in and asked, 'Which cloud drive is this URL? Why doesn't it even require login?' I said this wasn't the website. He was even more confused: If it wasn't a website, where did that file come from?

I really can't answer that question completely. The magnetic link has been used for several years, always treating it like a black box—just stick it on and it goes off, and if it breaks, just replace it. That night, I used Python to break down the string of characters and flipped through several protocol documents before I finally sorted out the details. This article will explain the matter thoroughly.

First, break down this string of characters: it's not an address, it's an ID number

I removed the magnet link posted on Ubuntu's official website, the official channel for system installation. When you parse Python's URLPARSE, the structure appears instantly:

magnet:?xt=urn:btih:9e9f5f... In the middle, slightly... 3e4f&dn=ubuntu-24.04.3-desktop-amd64.iso&tr=https://torrent.ubuntu.com/announce

When you open it, there are only three items, each in charge of a separate stall

  • XT is the main character. urn: btih followed by 40 hexadecimal characters, so 40 hex equals 20 bytes, which is exactly the length of a SHA-1 hash. This number has a name called info hash, which combines the metadata of the entire seed to calculate
  • the fingerprint DN
  • as the display name, purely for display. Deleting it still allows downloading
  • .
  • tr is the tracker server address, and several links can be inserted. If all are invalid, it might not be impossible to download. I'll explain why later

I previously wrote an article about splitting a website address ( The string of characters in the address bar is split into five segments), URLs starting with http are essentially "addresses"—they tell you which server and which directory the file is on. Magnet Link is the opposite—it doesn't even say where the file is, only says, 'I want to find something that looks like a fingerprint.' One is the delivery address, the other is the ID number. This difference determines everything that comes after: the address becomes invalid, and once the server closes, it goes 404; Fingerprints won't exist; as long as there is still a document on Earth, you can find the person holding it.

The , , ? . there are, it gets, the
Comparison item: http website download magnet link download
link contains the file's location, the file's fingerprint
where the file comes fromwhich server, and all holders transfer it to each other
What happens if the source diesAs long as there's still someone doing seeds, you can get down
The more peoplethe more crowded and the slowerhotter and faster

What is a .torrent document: a block list

Before magnetic links became popular, people sent small files with .torrent suffix, ranging from a few KB to several hundred KB. Many people think the "seed" is just the compressed movie itself, but when you open it with a tool, you'll see not a single byte of movie content inside—it's just three things.

First, file list: What documents are in this seed, and how large each is. Second is the block checklist: Divide large files into pieces (called pieces). Common block sizes are 256KB or 1MB, each block counts as a SHA-1 fingerprint, and each item is recorded in the checklist. I used the Ubuntu 5.7GB image to calculate the accounts: split into 1MB pieces, which is 5836 pieces, and the list contains 5836 hash lines. Third, tracker address: Where to check in.

The

relationship between magnetic links and seed files can be summed up in one sentence: magnetic links are the most important meta information in the seed file and a total fingerprint directly inserted into you, while the seed file itself is directly pulled from the holder. So after attaching the magnetic link, it gets stuck for the first few seconds, and the status bar shows 'Retrieving Metadata'—it's basically asking a companion for that block list. Only after receiving the list did the official start of work.

The real source of the download: A group of like-minded fans sharing the information

With the list in hand, the remaining question was where to go.

Regular downloads are star-shaped: one server, thousands of troops come from it, the server exit is so wide, and when the crowd grows, it gets crowded like porridge (I wrote about how the CDN splits traffic to various branches, see speed test 940 MHz to see 4K and still spin). BT downloads are networked: everyone holding the file shares it with each other. You take a few yuan from a dozen or so people, and once you gather enough, that's it; While you download it, you also pass your existing blocks to others.

That's why popular resources often fill broadband, while niche ones are actually worse than cloud storage—no one is doing it, and no matter how much you match your fingerprint, it's useless. My NAS has over 200 seeds running on my NAS all year round for seeding ( I went through the process from installing to preserving qBittorrent). In a sense, I'm the 'server' others connect to when they download it.

That question returns: how does the client know who in the world holds this document? Two paths, one old and one new.

tracker and DHT: registry and address book

The first route is Tracker, a dedicated server. You connect to it and report: "I have fingerprint xxx, is anyone else here?" It sends you an online list, and you take it to connect directly with those people. The drawbacks are obvious: the tracker is a single point; if it crashes or is blocked by network policies, the entire route is cut off.

The second path is DHT, distributed hash table, which is the key for magnetic links to survive without the tracker. It's like a contacts list without an administrator: each participating device in the world only records a small piece. If you want to find the fingerprint xxx, first ask the node nearby, and the other person says, "I don't know, but this is so-and-so's responsibility," pointing layer by layer. Usually, after a few attempts, you can find the holder. I wrote about the night the router's NAT session table crashed on the night of the BT ( the night the web page couldn't be opened), and it mentioned that DHT itself had to maintain a routing table with hundreds or thousands of nodes—that's how the account came about: all communication between DHT nodes goes through UDP packets, which is a different temper from TCP (). Video calls use UDP, web pages use TCP).

: a of contacts. , asking for , asking layer by layer. The for
Comparison itemtrackerDHT
, essentiallycentral server, all nodes are made up
What happens if it fails? This route is cut off and there is no single point, so it can't be choked
Find the person and ask for a lista list of nodes
protocols usedHTTP or UDP are all UDP

By the way, a common question arises: Why is it that BT often can't connect to a single peer in the company network? Both the tracker and DHT main channels are UDP, and when the company firewall sees you chatting enthusiastically with hundreds of unfamiliar UDP ports, it usually cuts off immediately. This isn't a file issue, it's a channel issue. There's also a pair of peers behind the NAT at home who want to connect directly, but they have to punch a hole first before they can reach each other. I wrote about this in the NAT section (PS5 online NAT 1/2/3), and the logic is the same.

Why does it 're-check' after power outage: each piece must be fingerprinted

The other half of the chunk list is used for validation. Each time the client receives a piece, it uses SHA-1 to calculate it on the spot, matching the item in the list. Only when it matches is it stored in the database; if not, it is discarded and re-downloaded. So BT downloads the natural anti-tampering package—if you try to add some personal touches to the file at any stage, the fingerprint on that part immediately fails and the whole piece is useless.

I have suffered losses from this calibration. Once, the NAS experienced an abnormal power outage. After restarting, qBittorrent re-verified over 200 seed files one by one, and the hard drive light flickered for most of the day. Later, I figured out what it did: recounting every existing disk on the disk, recounting fingerprints, reconciling with the list item by item, and confirming that not a single piece of blurry data was mixed in at the moment of power outage. This feature is actually life-saving. Don't mind it's slow. If you restart your NAS every few days, remember to include this time ( whether the NAS needs to restart regularly).

Block downloads have another benefit: the download itself resumes with a breakpoint. If you play 60% and disconnect, you can continue with the remaining 40% the next day. The 60% already laid is completely untouched—each piece is independent, just fill the numbers; there's no such thing as 'starting over.'

Legal usage and borders not to cross

Let's get straight to the point. BT and magnetic links are just transmission technologies; inherently inherently good or bad, with many legitimate uses: Ubuntu and Debian Linux systems officially offer torrent downloads, which are much faster than direct browser connections and save bandwidth for the official system; The Blender Foundation's open-source movies and large files from the Internet Archive are all distributed via torrent. I usually use this path when installing system mirrors myself.

But using it to download copyrighted movies or crack software is illegal and offers no security guarantees—the checklist only checks block integrity and cannot guarantee the cleanliness of the content itself. Malicious software disguised as resources can still correctly fingerprint the fingerprint. This technique is worth understanding and applying in the right context.

At the end, here's a troubleshooting sequence: if you stick a magnetic link and get stuck at 'Get Metadata,' it's usually because no one is doing it or all trackers are down. If it does, just crash and don't wait forever; It can connect to peers but has zero speed. Check if the DHT node count is 0; if it is 0, it means the UDP channel is blocked; When hanging the router, remember to lower the global connection count by one level; your router's session table will thank you.

Read More


Copyright Notice Scan to read on mobile
All Rights Reserved: 《SHUNOT》 => 《Open a magnetic link, download without a server, and inside is the file fingerprint》
Article URL: https://www.shunot.com/en/lybk/1152.html
Unless otherwise stated, all articles are original by 《SHUNOT》. Reposting is welcome! Please indicate the original URL when reposting, thank you.

Contact Us

Online Consultation: Click here to send me a message

WeChat ID: master_135

Scan to follow