[tor-bugs] #8323 [Tor]: Missing 'GETINFO md/all'

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Feb 25 16:51:05 UTC 2013


#8323: Missing 'GETINFO md/all'
------------------------+---------------------------------------------------
 Reporter:  atagar      |          Owner:                    
     Type:  defect      |         Status:  new               
 Priority:  major       |      Milestone:  Tor: 0.2.5.x-final
Component:  Tor         |        Version:                    
 Keywords:  tor-client  |         Parent:                    
   Points:              |   Actualpoints:                    
------------------------+---------------------------------------------------

Comment(by nickm):

 FWIW, that's almost right, but the thing that you have in the
 networkstatus is not a digest of the onion key, but rather a digest of the
 microdescriptor.  So you have to do something like :

 {{{
 for desc in controller.get_microdescriptors():
   if desc.exit_policy.is_exiting_allowed():
     exit_digests.add(sha256(str(desc.text))) # or whatever this is called

 for desc in controller.get_network_statuses():
   if desc.digest in exit_digests:
     print "%s is an exit" % desc.fingerprint
 }}}

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/8323#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list