diff options
Diffstat (limited to 'monitor/josef_experimental.py')
-rwxr-xr-x | monitor/josef_experimental.py | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/monitor/josef_experimental.py b/monitor/josef_experimental.py new file mode 100755 index 0000000..10d48bb --- /dev/null +++ b/monitor/josef_experimental.py @@ -0,0 +1,38 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +import sys +from josef_lib import * +import leveldb +from josef_leveldb import * + +SEP = ";" + + +db = db_open() +res = db_lookup_domain(db, "*.google.com") +print res +print "Found " + str(len(res)) + " results" +# print db.Get("wush.net") +# print db.Get("wush.net") + +# f = open("output/cert_data.json") +# max_count = 1 +# for line in f: +# # print max_count +# # try: +# tmp = json.loads(line) +# # print tmp +# # d = tmp["subject"].split("CN=")[1] +# db_add_cert(tmp) +# # print d + +# max_count -= 1 +# if max_count == 0: +# break + + + + + + |