[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #8323 [Tor]: Missing 'GETINFO md/all'
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs