The request to the dirport definitely has to come via tor not via a simple request to the dirport over the net.
Have a look in the HiddenService class here for an example:
https://github.com/drgowen/tor-research-framework/blob/master/src/main/java/...
Its fairly easy to use this function if you just want to fetch the descriptor for an arbitrary HS. Have a look at the repository hidden service example. You just need a valid TorSocket and then you can call HiddenService.fetchHSDescriptor () to get it as a string.
Best Gareth On 19 Jul 2014 10:26, "grarpamp" grarpamp@gmail.com wrote:
On Fri, Jul 18, 2014 at 6:35 PM, Achref Akremi ach.n30@gmail.com wrote:
onion adress: 3g2upl4pq6kufc4m.onion date: 18 Jul 2014 22:27:20 GMT
1st: compute the v2 descriptor id:
with replicas 0: efa0506e1e5d3f193bf6509e1f4709e6e2322436 with replicas 1: efa0506e1e5d3f193bf6509e1f4709e6e2322436
2nd: find responsible HSdir's:
efa0506e1e5d3f193bf6509e1f4709e6e2322436 pmocek marcuse1 riptide fc2c757e88910b3d72594706c477e21f60334a15 torpidsCZwedos gracefoster halingrad
3rd: request:
http:// HSdir[IP] : HSdir[DirPort] /tor/rendezvous2/ Desc-ID
^^^^ here i got a 404 response >.<
sorry ... if i'm doing something wrong ... if i do tell me :p
I'm not sure that looks like a v2-desc-id, run in debug mode to see. Result may not come unless query dirport from inside over tor instead of clearnet. There was some change to that years ago I think. Check... https://gitweb.torproject.org/torspec.git/blob/HEAD:/rend-spec.txt
You may also read or contribute to this which has been open for a long time... https://trac.torproject.org/projects/tor/ticket/3521
https://trac.torproject.org/projects/tor/ticket/8891 https://trac.torproject.org/projects/tor/ticket/8510 _______________________________________________ tor-dev mailing list tor-dev@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev