[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-talk] How to calculate all the IDs (fingerprints) from getinfo ns/all



> I have try to get the fingerprint ($ with 40 caracters) of the "Unamed"
> nickname , with no success,
>  I think there is a way to calculate it, but i don't how to do that ?
>
> Does someone know how to do that ?

Hi Alex. I'm not entirely sure what you're trying to ask, but if
you're wondering how to decode the identity key (the fingerprint) in
network status documents then you can do so like...

https://gitweb.torproject.org/stem.git/blob/HEAD:/stem/descriptor/router_status_entry.py#l538

Here's a little script that queries "GETINFO ns/all" then prints all
of the fingerprints.

========================================

from stem.control import Controller

with Controller.from_port(control_port = 9051) as controller:
  controller.authenticate()

  for desc in controller.get_network_statuses():
    print desc.fingerprint

========================================

atagar@morrigan:~/Desktop/stem$ python example.py
0045EB8B820DC410197B28B4C2F259A02E7C9D9B
0055F95BF05F836BACFC0BDEC6922B90E4086B03
006C3FA7C3F6E3ACD13D0DD9B10C7DFA933C237B
009AE464B34020C462EC9DD0E68B35881253337F
00D8BFAF9446854C5F677B229A50D716B7F63BAF
00E3CEB3BA1D2EABA06D926B47A12A989628DBE4
00EC938D4D51183D26DA5676794FFC05BA14FE80
...
_______________________________________________
tor-talk mailing list
tor-talk@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk