Skip to content

Instantly share code, notes, and snippets.

@azet
azet / extract_rsa_moduli.py
Last active July 28, 2018 13:03
Extracts RSA moduli for Fast-GCD (factorable.net) from masscan collected X.509 Certificates. Input needs to be stripped of non-X.509 entries first [use the power of grep(1)!].
#!/usr/bin/env python
#
# Parsing of `masscan` collected X.509 certificates
# to extract RSA moduli for Fast-GCD (factorable.net).
# ..threaded Python version.
#
# Authors: Aaron Zauner <azet@azet.org>
# License: CC0 1.0 (https://creativecommons.org/publicdomain/zero/1.0)
#
from __future__ import print_function
@crosbymichael
crosbymichael / main.c
Created September 23, 2014 06:10
rocksdb C example
/*
* compiled with:
* g++ -std=c++11 main.c -Wall -lrocksdb -lbz2 -lpthread -lsnappy -lz
*/
#include <rocksdb/c.h>
#include <stdio.h>
#include <stdlib.h>