PDA

View Full Version : [Mini-tutorial] How to sniff a peer_id and key



anon
29.04.09, 00:59
Note: this is a copy of this (http://www.sb-innovation.de/89031-post140.html) post. I copied it as a tutorial in this section so that it's easier to find.

You could use an sniffer to capture the data. smsniff (http://www.nirsoft.net/utils/smsniff.html) is a good one. Start it, go to Options -> Capture filter, and write the following in the text area:

include:both:tcp:6969

Then download the Ubuntu 8.10 (http://torrent.ubuntu.com:6969/file?info_hash=3%82%0D%B6%DD%5EY%28%D2%3B%C8%11%BB %AC/J%E9L%B8%82) torrent. Press Start (the green triangle icon) in smsniff, then load and run the torrent in Azureus. You should notice an entry in the upper panel - "1, TCP, xx.xx....". Click it and you'll see something like this in the lower one:


GET /announce?info_hash=3%82...%82&peer_id=-AZ4202-klPJgt8C3DvS&supportcrypto=1&port=12345&azudp=12345&uploaded=0&downloaded=0&left=0&corrupt=0&event=started&numwant=50&no_peer_id=1&compact=1&key=yWq52bD8&azver=3 HTTP/1.1
User-Agent: Azureus 4.2.0.2;Windows XP;Java 1.6.0_13
Connection: close
Accept-Encoding: gzip
Host: torrent.ubuntu.com:6969
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2


HTTP/1.0 200 OK
Content-Length: 409
Content-Type: text/plain
Pragma: no-cache
Content-Encoding: gzip
...

The peer_id and key are the values you're looking for - I colored them red. They'll be different for you. Just make sure you copy only what I colored - i.e. everything between &peer_id= and &supportcrypto=1, and everything between &key= and &azver=3.

Copy those values in the RatioMaster:


http://www.sb-innovation.de/attachment.php?attachmentid=3972

A note: Azureus sends a "dynamic" numwant. It's always 50 in the first announce, but after that it's randomized. Make sure it's set to 50 before you click Start. After that change it yourself to a random number between 30 and 60 every 30 minutes. Newer client files take care of that by randomizing the numwant automatically.

You're now good to go. :smile:

tokiodrift1
21.05.10, 14:28
Good Tutorial, I got this answer while trying to fetch the (obviously old) Ubuntu 8.10-Torrent:
your file may exist elsewhere in the universe
but alas, not here

:smile:

Here's an alternative torrent: Ubuntu 10.04 (http://releases.ubuntu.com/10.04/ubuntu-10.04-desktop-i386.iso.torrent) (i386 Desktop).

anon
21.05.10, 18:25
Some URL-encoding thing I think. I should have uploaded it as an attachment.

hessler
24.10.10, 06:52
hey can u add a client file for utorrent 2.0.4 build 22450...........i checked it everywhere including moofdev forums but cudnt find it.......

anon
24.10.10, 18:23
i checked it everywhere including moofdev forums but cudnt find it.......

http://www.moofdev.net/forums/index.php/topic,330.msg19989.html#msg19989

I hope those of us who use search are rewarded in the afterlife.