How do I download a torrent using only tracker and hash info? I was told to download a file using bittorrent, but I was only given the tracker URL and the hash info, no.torrent file at all. How do I use this to get the file I want? Torrent King Torrentking search engine gives you the option to search and download for free in the largest torrent database your favourite movie's and tv-series with a smart filtering system movie torrents free downloads torrent search engine download movies. Virtual dj pro free download torrent.
How To Download Torrent File With Info Hash
I have alot of info hashes for torrents but cannot relate them to any such torrent file and am trying to write a PHP program that will do this for me and download the torrent file.
In a browser it is done like so with the last 40 digits being the info hash,
I have tried to download the file in php like so,
But it doesn't work?? What am I doing wrong?
Mole
MoleMole
1 Answer
You might want to have a look at http://pear.php.net/package/File_Bittorrent2
powtacpowtac
Not the answer you're looking for? Browse other questions tagged php or ask your own question.
i am reading lately a lot about hash from torrents an magnetic links etc.
but there is a question i dont understand.
I have the hash of a file and the infohash of a torrent, is the infohash = hash of the file ?
If yes what if the torrent descripes 6 Files to download ?
If no what does it stand for.
EmetielEmetiel
1 Answer
Download Torrent With Info Hash
So I finally figured it out.
![Download torrent with info hash Download torrent with info hash](https://windows-cdn.softpedia.com/screenshots/Torrent-File-Hash-Checker_1.png)
The “infohash” is the SHA1 Hash over the part of a torrent file that includes:
- ITEM: length(size) and path (path with filename)
- Name: The name to search for
- Piece length: The length(size) of a single piece
- Pieces: SHA1 Hash of EVERY piece of this torrent
- Private: flag for restricted access
To show this a little more I took a random torrent file and used the “BEncode Editor” from Ultima to make it more clearly to me.
As you can see the the red box marked the information part of the torrent file.The torrent file includes not the Hash of the items, but the hashes of every piece.
- For item1 with: 1069496548
- and item2 with: 223
- It is together: 1069496771
- With a piece size of: 524288
- There are 2040 pieces. (1069496771/524288=2039.9032 approximately)
- The pieces section includes 40800 byte of data what are 81600 + 2 chars in the file.
- the +2 because 0x marks that this is hexadecimal.
- A SHA1 hash has 40 0x chars or 20 Byte of data what are 2040 SHA1 hashes.
I am sorry that this information is about a torrent that leads to a illegal movie, but i wanted to use a torrent that realy exists.
EmetielEmetiel