Skip to content

Instantly share code, notes, and snippets.

View zakird's full-sized avatar

Zakir Durumeric zakird

View GitHub Profile
@zakird
zakird / gist:9992656
Created April 5, 2014 14:26
keybase.md
### Keybase proof
I hereby claim:
* I am zakird on github.
* I am zakir (https://keybase.io/zakir) on keybase.
* I have a public key whose fingerprint is 1237 0644 0259 3491 7A91 3F4B 763B 58DE C2F6 F0AA
To claim this, I am signing this object:
@zakird
zakird / gist:11196064
Created April 22, 2014 22:06
cymru.py
#!/usr/bin/env python
# encoding: utf-8
"""
cymru.py
"""
import sys
import os
import socket
import unittest
import sys
from cymru import CymruIPtoASNService
a = CymruIPtoASNService()
queries = []
with open(sys.argv[1]) as fd:
i = 0
for l in fd:
@zakird
zakird / lookup.py
Created September 23, 2014 17:01
ast lookup of
import os.path
import os
import subprocess
import sys
import logging
import multiprocessing
from multiprocessing import Pool
import time
import socket
@zakird
zakird / gist:c90abcb3a6e5adb19456
Created October 13, 2014 03:17
SSLv3 Support
1% IPv4 All Certificates
Highest Support:
SSLv3: 9,817 (2.7%)
TLS1.0: 215,743 (60.4%)
TLS1.1: 2,227 (0.6%)
TLS1.2: 129,364 (36.2%)
Any SSLv3 Support:
SSLv3 Support: 342,659 (95.9%)
No SSLv3 Support: 14,492 (4.1%)
import ztag.test
class AgranatEmWeb(Annotation):
protocol = protocols.HTTP
subprotocol = protocols.HTTP.GET
port = None
def _process(self, d):
s = d["headers"]["server"]
@zakird
zakird / chrome_cookie_db.rb
Created November 6, 2011 03:03
Chrome Cookies Database
@zakird
zakird / m2_basic_connectssl.py
Created November 7, 2011 21:45
M2Crypto Connect SSL Example
import M2Crypto
address = "mail.google.com"
context = M2Crypto.SSL.Context();
context.set_allow_unknown_ca(True)
context.set_verify(M2Crypto.SSL.verify_none, True)
conn = M2Crypto.SSL.Connection(context)
conn.connect((address, 443))
diff --git a/ztag/annotations/export.py b/ztag/annotations/export.py
index b4472ff..930c2b2 100644
--- a/ztag/annotations/export.py
+++ b/ztag/annotations/export.py
@@ -1,4 +1,4 @@
-from ztag.annotation import *
+from ztag.annotation import *
class RSAExportTag(Annotation):
#include "postgres.h"
#include "fmgr.h"
#include <openssl/x509.h>
#include <openssl/x509v3.h>
#include <openssl/bio.h>
#ifdef PG_MODULE_MAGIC
PG_MODULE_MAGIC;
#endif