this post was submitted on 21 Jul 2023
31 points (100.0% liked)

Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ

53792 readers
81 users here now

⚓ Dedicated to the discussion of digital piracy, including ethical problems and legal advancements.

Rules • Full Version

1. Posts must be related to the discussion of digital piracy

2. Don't request invites, trade, sell, or self-promote

3. Don't request or link to specific pirated titles, including DMs

4. Don't submit low-quality posts, be entitled, or harass others



Loot, Pillage, & Plunder


💰 Please help cover server costs.

Ko-FiLiberapay


founded 1 year ago
MODERATORS
31
Torrent creator on Linux? (lemmy.dbzer0.com)
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 

Is there any Torrent Creator on Linux that supports BEP-47 protocol (optimize alignment) ? It’s okay with or without GUI.

Currently using mktorrent, but does not support this important feature. I didn’t find anything on google.

Any suggestions? thanks.

EDIT: for creating v1 torrent.

top 15 comments
sorted by: hot top controversial new old
[–] [email protected] 6 points 1 year ago (1 children)

I use torrenttols and BEP-47 is supported. Give it a try.

[–] [email protected] 3 points 1 year ago

thanks, I tried this, seems that piece-aligment function cannot be enabled for v1 torrent.

https://fbdtemme.github.io/torrenttools/commands/create.html

[–] [email protected] 6 points 1 year ago* (last edited 1 year ago) (1 children)

Torrent-file, also supports BitTorrent v2 — coming with piece alignment by default.

[–] [email protected] 2 points 1 year ago (1 children)

It seems that piece-alignment is not yet supported when creating a v1

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (2 children)

Create a hybrid then, it will add BEP-47 to v1 separately (since hybrids can't exist without it) and you will have additional v2 support, with built-in piece alignment, double win.

[–] [email protected] 1 points 1 year ago (1 children)

Does that work with private trackers?

[–] [email protected] 0 points 1 year ago

That depends on their rules

[–] [email protected] 1 points 1 year ago (1 children)

Some clients currently do not support downloading hybrid and v2, and v2 has a flaw that can be modified remotely?

so, v2 and hybrid which containing v2 seem to be not a good choice.

[–] [email protected] 0 points 1 year ago* (last edited 1 year ago) (1 children)

I didn't see your comment earlier, pretty much all of them support hybrids, old transmissions till 3.01 are exclusions, and that's because their devs didn't implement their bencoding library according to BEP, but this flaw was fixed in the new versions awhile.

So you're loose to choose hybrids (or hell, even v2 only), protocol was around for a couple of years, don't believe what others' say, those are the pretty much lazy people with low technical background, who are afraid to upgrade their clients for years. Didn't catch that "remote" thing, but there could be no way of modifying data bound to sha256 hash.

BitTorrent v2 — is the future. I suppose there's no need telling its improvements.

[–] [email protected] 1 points 1 year ago

Ahh.. This feature should be made known to more people, such as creators, uploaders.

[–] [email protected] 1 points 1 year ago (2 children)

I'm having trouble understanding what BEP-47 exactly is. Care to enlighten me?

[–] [email protected] 5 points 1 year ago* (last edited 1 year ago)

I’m having trouble understanding what BEP-47 exactly is. Care to enlighten me?

Using padding files to prevent torrents containing multiple files from getting stuck at 99%.

The original Bittorent spec has a really stupid design decision in that it is just a long stream of concatenated files split into fixed size pieces. This means you always have to download parts of adjacent files to get the file you actually want. This leads to all sorts of unnecessary complexity when partially downloading a torrent of what do this with this left-over data, eg qB saves hidden "..parts" per torrent, which you can easily lose.

To get around this, padding files where introduced that "fill" the gap from the end of one file to the start of the next piece boundary where the next file starts with 0x00 filled padding files with naming corresponding to length. It's a cross-client standard defined in BEP47. Padding files are also required by necessity for hybrid Bittorrent v1+v2 torrents. Any remotely decent torrent client won't transfer or save these padding files, so the size doesn't really matter. And even if your client doesn't, some of the padding names will likely overlap and only be saved once.

https://www.reddit.com/r/DataHoarder/comments/nqwckn/stackoverflow_bought_out_should_we_be_worried/

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (1 children)

Here's the link.

If you don't understand, then just think of it as the solution of 99% stuck torrents and need to download part of other files' pieces to check if given file is valid.

[–] [email protected] 0 points 1 year ago (1 children)

These files are the cause of torrents that are stuck at 99%

Quote from your link: "If used incorrectly or maliciously symlinks and padding files can result in internally inconsistent torrents which cannot finish downloading because they contain conflicting hash information."

[–] [email protected] 0 points 1 year ago* (last edited 1 year ago)

Exactly, that's why clients with BEP-47 support should:

Ensure that adding and deduplicating such a torrent does not lead to loss of already existing data.

I doubt that there are decent torrent clients implemented BEP-47 without this sanitization, if any.

load more comments
view more: next ›