Silk Road forums

Discussion => Silk Road discussion => Topic started by: saulgood on October 07, 2013, 05:46 am

Title: Historical Vendor GPG Key Database/TXT file (from StExo backup)
Post by: saulgood on October 07, 2013, 05:46 am
Folks,

I've compiled a backup database of all vendors' GPG keys, as crawled from StExo's "last safe backup" of the site's vendor pages (http://dkn255hz262ypmii.onion/index.php?topic=216937.0).

You can download it here:

https://anonfiles.com/file/3afb3688a78f3820ef51d8994f1ebdfe (1.5MB .txt file)

Format is plaintext: vendor name, newline, GPG key, newline. Vendors without GPG keys listed in their profiles will show 'None'.

Steps I took to create this file:

1. Download StExo's backup from http://dkn255hz262ypmii.onion/index.php?topic=216937.0 and unzip it, creating the vendors directory.
2. Save and run the following python script in the directory above 'vendors'.

----------------------------------------
import os
import re

def read_vendor(f):
    lines = open(f, 'r').read()
    vendor_name = re.search('<title>\s*(.*) \| Silk Road\s*</title>', lines).groups()[0]
    gpg_search = re.search('-----BEGIN PGP PUBLIC KEY BLOCK-----.*-----END PGP PUBLIC KEY BLOCK-----', lines, re.DOTALL)
    gpg_key = gpg_search.group().replace('<br />', '') if gpg_search else None
    return vendor_name, gpg_key

if __name__ == '__main__':
    files = os.listdir('vendors')
    vendors = {}
    for f in files:
        vendor_name, gpg_key = read_vendor('vendors/' + f)
        vendors[vendor_name] = gpg_key
    for (vendor_name, gpg_key) in sorted(vendors.items()):
        print vendor_name
        print
        print gpg_key
        print
----------------------------------------

Search for your favorite vendors in a text editor and save their GPG keys for future use.

What other efforts are people making to archive useful old SR data? How can we better preserve and authenticate this data?

cheers,

saulgood