mktorrent icon indicating copy to clipboard operation
mktorrent copied to clipboard

Update for BitTorrent Protocol Specification v2

Open paxter opened this issue 5 years ago • 13 comments

Would be nice, if this tool would be updated with the latest BitTorrent Protocol Specification v2 described here: http://bittorrent.org/beps/bep_0052.html Especially the part with stronger hash functions (SHA2-256) would be nice.

paxter avatar Jan 01 '19 22:01 paxter

https://blog.libtorrent.org/2020/09/bittorrent-v2/

maddovr avatar Sep 09 '20 08:09 maddovr

SHA-1 chosen-prefix attacks are now in the USD 10k-100k range. This presents a very real threat, for example against bittorrent-distributed software that might be used by dissidents or whistleblowers.

BitTorrent v2 should be high priority now.

sbrudenell avatar Oct 27 '20 16:10 sbrudenell

BitTorrent v2 and hybrid torrent file generation is being implemented at the moment.

pobrn avatar Oct 27 '20 23:10 pobrn

@sbrudenell What potential attack vector do you see could be used against a torrent file, or its usage?

Rudde avatar Oct 28 '20 07:10 Rudde

@sbrudenell What potential attack vector do you see could be used against a torrent file, or its usage?

I admit I don't have a specific vector in mind, but sha1 is used in many places in the torrent protocol so it's hard to convince myself there are no attacks.

sbrudenell avatar Oct 28 '20 08:10 sbrudenell

https://www.bleepingcomputer.com/news/security/sha1-collision-attack-can-serve-backdoored-torrents-to-track-down-pirates/

paxter avatar Oct 28 '20 14:10 paxter

Anything new? Looks like the "moment" takes a lot of time. :D

paxter avatar Aug 05 '21 17:08 paxter

If you are looking to create V2 or hybrid torrent this may be of interest: https://github.com/alexpdev/torrentfile-legacy

zero77 avatar Jan 07 '22 18:01 zero77

If you are looking to create V2 or hybrid torrent this may be of interest:如果您想创建 V2 或混合种子,您可能会对此感兴趣: https://github.com/alexpdev/torrentfile-legacy

@zero77 thank you, do you know is there any other command line tools for creating new torrent besides this?

predb avatar Jul 18 '23 02:07 predb

@predb That's the only one i am aware of but, i haven't checked to see if any torrent clients can do this from command line, maby libtorrent.

zero77 avatar Jul 18 '23 09:07 zero77

https://github.com/fbdtemme/torrenttools supports V2 torrents, it hasn't been updated for some time too, but it works.

Also you can find other tools in the comparsion graph there.

ceed0 avatar Jul 27 '23 16:07 ceed0

https://github.com/fbdtemme/torrenttools supports V2 torrents, it hasn't been updated for some time too, but it works.

Also you can find other tools in the comparsion graph there.

i cant find a build for ubuntu jammy and trying to compile from source didnt work for me. i was able to use appimage tho.

how does one use the "similar torrents" switch? my application is to update an existing torrent fileset with new version with edited/appended files. how would one do that efficiently

jerryfreak avatar May 20 '24 07:05 jerryfreak

how does one use the "similar torrents" switch?

As far as I can see the --similar and --collection options of torrenttools are supposed to implement BEP38.


In any case, please note that torrenttools sometimes does not seem to generate correct v2 or hybrid files.

pobrn avatar May 21 '24 20:05 pobrn