+ Reply to Thread
Results 1 to 5 of 5

Thread: [Mini-tutorial] How to sniff a peer_id and key

  1. #1
    Moderator anon's Avatar
    Join Date
    01.02.08
    Posts
    39,430
    Activity Longevity
    7/20 19/20
    Today Posts
    1/5 ssss39430
    Note: this is a copy of this 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 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 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:

    Code:
    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:


    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.
    "I just remembered something that happened a long time ago."
    Reply With QuoteReply With Quote
    Thanks

  2. Who Said Thanks:

    Lucius (07.08.13) , SealLion (25.10.10) , Freak69 (25.10.10) , seldom (20.10.10) , pimphead07 (10.10.10) , Jeff (24.05.10) , (24.05.10) , tokiodrift1 (23.05.10) , saebrtooth (21.05.10) , cheatos (21.05.10) , Mihai (21.05.10)

  3. #2
    Advanced User
    Join Date
    30.07.09
    P2P Client
    Azureus™
    Posts
    847
    Activity Longevity
    0/20 18/20
    Today Posts
    0/5 ssssss847
    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


    Here's an alternative torrent: Ubuntu 10.04 (i386 Desktop).
    Reply With QuoteReply With Quote
    Thanks

  4. Who Said Thanks:

    SealLion (25.10.10) , pimphead07 (10.10.10) , anon (21.05.10)

  5. #3
    Moderator anon's Avatar
    Join Date
    01.02.08
    Posts
    39,430
    Activity Longevity
    7/20 19/20
    Today Posts
    1/5 ssss39430
    Some URL-encoding thing I think. I should have uploaded it as an attachment.
    "I just remembered something that happened a long time ago."
    Reply With QuoteReply With Quote
    Thanks

  6. #4

    Join Date
    11.10.10
    P2P Client
    utorrent
    Posts
    113
    Activity Longevity
    0/20 16/20
    Today Posts
    0/5 ssssss113
    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.......
    Reply With QuoteReply With Quote
    Thanks

  7. #5
    Moderator anon's Avatar
    Join Date
    01.02.08
    Posts
    39,430
    Activity Longevity
    7/20 19/20
    Today Posts
    1/5 ssss39430
    Quote Originally Posted by hessler View Post
    i checked it everywhere including moofdev forums but cudnt find it.......
    http://www.moofdev.net/forums/index.....html#msg19989

    I hope those of us who use search are rewarded in the afterlife.
    "I just remembered something that happened a long time ago."
    Reply With QuoteReply With Quote
    Thanks

  8. Who Said Thanks:

    seldom (24.10.10) , cheatos (24.10.10)

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •