Skip to content

Instantly share code, notes, and snippets.

Avatar

Adam Goodman akgood

View GitHub Profile
@akgood
akgood / detect_roca_sshkeys.py
Last active Oct 16, 2017
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...
View detect_roca_sshkeys.py
#!/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):