Skip to content

Instantly share code, notes, and snippets.

View shpedoikal's full-sized avatar

Kent Yoder shpedoikal

  • Cisco Systems, Inc.
  • Hudson, OH
View GitHub Profile
import os
import struct
import shutil
import subprocess
class macho_intel32_shellcode():
"""
Mach-O Intel x32 shellcode class
"""
@shpedoikal
shpedoikal / ubuntu-netflow-dns-log.ks
Created June 21, 2015 17:16
Ubuntu kickstart script for SiLK netflow collection and dns logging
#
# Kickstart an Ubuntu image
# - 2 network interfaces, and internal and external
# - forward all traffic from internal -> external
# - Log all traffic using the SiLK netflow package to /data
# - Log all DNS traffic as pcaps in /var/log/ulogd
# - Backup all netflow and dns to an external server
#
# Before using this kickstart script, search and replace 'kyoder' with your username
#
@shpedoikal
shpedoikal / priv-esc.py
Created October 16, 2015 19:15
local priv-esc checker in python
def exploitCheck():
# Shout out to Bernardo Damele for letting me use this code! Thanks again!
# Check out his blog at http://bernardodamele.blogspot.com
exploitdb_url = "http://www.exploit-db.com/exploits"
enlightenment_url = "http://www.grsecurity.net/~spender/enlightenment.tgz"
print "[+] Results for local kernel version %s" % kernel
found_exploit = False
@shpedoikal
shpedoikal / sshpub-to-rsa
Created September 13, 2016 00:13 — forked from thwarted/sshpub-to-rsa
converts an openssh RSA public key into a format usable by openssl rsautl (if you don't have openssh 5.6 or later with ssh-keygen PEM export format)
#!/usr/bin/env python
# with help and inspiration from
# * ASN1_generate_nconf(3) (specifically the SubjectPublicKeyInfo structure)
# * http://www.sysmic.org/dotclear/index.php?post/2010/03/24/Convert-keys-betweens-GnuPG%2C-OpenSsh-and-OpenSSL
# * http://blog.oddbit.com/2011/05/converting-openssh-public-keys.html
import sys
import base64
import struct
@shpedoikal
shpedoikal / gm.js
Last active April 3, 2020 18:54
Delete promoted tweets greasemonkey script
// ==UserScript==
// @name Delete promoted tweets
// @namespace kyoder
// @include *mobile.twitter.com/*
// @include *m.twitter.com/*
// @include *.twitter.com/*
// @include http://twitter.com/*
// @include https://twitter.com/*
// @version 1
// @grant none