Skip to content

Instantly share code, notes, and snippets.

View kevinpostal's full-sized avatar

Kevin Postal kevinpostal

View GitHub Profile
Afrobeat
Apala
Benga
Bongo Flava
Bikutsi
Cape Jazz
Chimurenga
Fuji music
Genge
Highlife
require 'rubygems'
require 'openssl'
require 'digest/md5'
key = OpenSSL::PKey::RSA.new(2048)
cipher = OpenSSL::Cipher::AES.new(256, :CBC)
ctx = OpenSSL::SSL::SSLContext.new
puts "Spoof must be in DER format and saved as root.cer"
raw = File.read "root.cer"
cert = OpenSSL::X509::Certificate.new raw
cert.version = 2
We couldn’t find that file to show.
package hello
import (
"html/template"
"encoding/json"
"io/ioutil"
"fmt"
"strings"
"net/http"
"golang.org/x/net/context"

Keybase proof

I hereby claim:

  • I am kevinpostal on github.
  • I am zod (https://keybase.io/zod) on keybase.
  • I have a public key whose fingerprint is 54C8 AF3F B790 E669 7544 FDA4 095C BA02 3694 9316

To claim this, I am signing this object:

@kevinpostal
kevinpostal / client.go
Created November 22, 2016 07:30
SSH Remote Port Fowarding
package main
import (
"log"
"dev.justinjudd.org/justin/easyssh"
"golang.org/x/crypto/ssh"
)
func main() {
@kevinpostal
kevinpostal / install_aircrack.sh
Last active January 13, 2018 01:41
Aircrack Install - Tegra / Ubuntu from source
sudo apt-get install -y build-essential libtool
sudo apt-get install autotools-dev autoconf
sudo apt-get install -y libnl-3-dev libnl-genl-3-dev
sudo apt-get install -y sqlite3 libsqlite3-dev
sudo apt-get install -y libgcrypt20-dev libpcap-dev duma
sudo apt-get install -y libgcrypt11-dev
sudo apt-get install -y libpcre3-dev
sudo apt-get install -y libnl-3-dev libnl-genl-3-dev
./configure --with-experimental --with-ext-scripts --with-gcrypt --with-gcrypt --with-duma --with-simd
@kevinpostal
kevinpostal / lss.py
Last active April 10, 2018 21:12
Attempt
import re
import itertools
import sys
from collections import Counter
from os import listdir
from os.path import isfile, join
filelist = []
fileset = set()
parse_number = lambda num: "%%0%sd" % len(num)
@kevinpostal
kevinpostal / JsonImporter.py
Created May 8, 2017 02:12
JsonImporter.py
import json
import logging
import os
import os.path
import sys
import django
import requests
from optparse import OptionParser
parser = OptionParser()
first_line = "3"
second_line = "1 2 4"
def main(first_line, second_line):
if int(first_line) != len(second_line.split()):
return False
else:
return sum((int(item) for item in second_line.split()))