Skip to content

Instantly share code, notes, and snippets.

@2xyo
2xyo / gist:d04d9a0d383fbd603dd4
Last active August 29, 2015 14:16 — forked from degan/gist:70e8059507d173751294
FREAK Attack server test + timeout 3s
#!/usr/bin/env bash
#base script http://serverfault.com/questions/519402/how-to-determine-ssl-cipher-strength
if [ $# -eq 0 ]
then
echo "No domain argument!"
exit 1
fi
@2xyo
2xyo / cidr2regex.py
Last active August 29, 2015 14:09 — forked from waffle2k/cidr2regex.py
#!/usr/bin/python
''' Not my script, found on the Internet, and rediscovered on my hard drive
'''
import sys
def cidr_to_regex(cidr):
ip, prefix = cidr.split('/')
base = 0
for val in map(int, ip.split('.')):
@2xyo
2xyo / mkappenginevenv.sh
Created May 7, 2012 15:38 — forked from rob-b/mkappenginevenv.sh
Setup virtual env for appengine
#!/bin/bash
#
# Build a virtual environment suitable for running appengine.
# This uses virtualenvwrapper to make the virtual environment
# and modifies the postactivate/postdeactivate scripts to make
# the appengine code happy.
#
# Usage:
# $ curl -s https://raw.github.com/gist/2628491 | bash
#