Skip to content

Instantly share code, notes, and snippets.

View akgood's full-sized avatar

Adam Goodman akgood

View GitHub Profile
@akgood
akgood / detect_roca_sshkeys.py
Last active October 16, 2017 21:52
Some quick hacks to test your SSH pubkeys for the "ROCA" vuln (https://crocs.fi.muni.cz/public/papers/rsa_ccs17) without having to install any third-party python modules...
#!/usr/bin/env python
# run me as e.g. "ssh-add -L | python2.7 detect_roca_sshkeys.py"
import argparse
import base64
import csv
import re
import struct
import sys
def parse_mpint(data):