Re: [tor-dev] How to query HS hostname from control port
Jesse V writes: > I'm interested in the ones on disk. I wish that "onions/current" would > give me the list of HSs that were set up via torrc, but this doesn't > appear to be the case. I'm basically looking for the raw command. Could you use ADD_ONION instead? Why are you using the on-disk API if you don't want to give your thing permission to read those directories? I also don't see why you'd give something permission to use the control-port, but *not* permission to read hostname/private_key files...? (p.s. I can't reach http://onions55e7yam27n.onion/) -- meejah ___ tor-dev mailing list tor-dev@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev
Re: [tor-dev] How to query HS hostname from control port
On 09/04/2016 09:31 PM, meejah wrote: > There are two types of onion services: "on disk" ones configured via > torrc/SETCONF and the HiddenServiceDir and related options **or** > "ephemeral" onions, created via the recently added ADD_ONION command. > > In the latter case, you can list them with GETINFOs on "onions/current" > or "onions/detached" depending on the options when you created them. > > For the "HiddenServiceDir" onions, the only way to get the onion address > that I know of is by reading the "hostname" file. > > Can you describe what you're trying to do? > I'm interested in the ones on disk. I wish that "onions/current" would give me the list of HSs that were set up via torrc, but this doesn't appear to be the case. I'm basically looking for the raw command. This is part of my overhaul of the Onion Name System (OnioNS) project, which has actually been silently active. I wasn't able to finish some components until the design was stable. Now that the paper is finalized and has been accepted, I have been finishing the codebase. The server software needs to know the HS address so that it can distribute it to other nodes in the OnioNS network. My to-do list is quickly diminishing but I did run into this snag and I wasn't able to fix it. -- Jesse V signature.asc Description: OpenPGP digital signature ___ tor-dev mailing list tor-dev@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev
Re: [tor-dev] How to query HS hostname from control port
Jesse V writes: > TL;DR: Please let me know how to fetch the hostname of my hidden service > from Tor's control port. There are two types of onion services: "on disk" ones configured via torrc/SETCONF and the HiddenServiceDir and related options **or** "ephemeral" onions, created via the recently added ADD_ONION command. In the latter case, you can list them with GETINFOs on "onions/current" or "onions/detached" depending on the options when you created them. For the "HiddenServiceDir" onions, the only way to get the onion address that I know of is by reading the "hostname" file. Can you describe what you're trying to do? -- meejah ___ tor-dev mailing list tor-dev@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev
[tor-dev] How to query HS hostname from control port
Hi everyone, TL;DR: Please let me know how to fetch the hostname of my hidden service from Tor's control port. Say I have configured torrc to set up a hidden/onion service. By default, it's set up in /var/lib/tor/hidden_service, a directory which isn't world-readable. My software can authenticate into Tor's control port, but it needs to know the hostname/address of the service. It can't read the hidden_service/hostname file directly, and so far I haven't figured out how to query Tor for that information. As a last resort, I suppose I could copy /var/lib/tor/hidden_service/hostname to a directory that the software can read, but I'd like to avoid that if possible. I have hunted through https://gitweb.torproject.org/torspec.git/tree/control-spec.txt without too much success. The closest I have come is "GETCONF HiddenServiceOptions" but I suspect that the option is under GETINFO instead. However, the documentation mostly describes how to query information about other onion services. I need to know about my service though, if that's possible. Please advise. -- Jesse V I look forward to seeing everyone again in July at Minneapolis. :) signature.asc Description: OpenPGP digital signature ___ tor-dev mailing list tor-dev@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev