Skip to content

Instantly share code, notes, and snippets.

View rossja's full-sized avatar

Jason Ross rossja

View GitHub Profile
@rossja
rossja / runpi.sh
Last active October 22, 2020 14:52
QEMU Raspberry Pi 2 Emulation on Mac OS X
#!/bin/bash
# tested on Max OS X 10.13.2 "High Sierra"
# install qemu using: `brew install qemu`
# get kernel from: https://github.com/dhruvvyas90/qemu-rpi-kernel/blob/master/kernel-qemu-4.4.34-jessie?raw=true
# get raspbian image from: http://downloads.raspberrypi.org/raspbian_latest
qemu-system-arm \
-kernel kernel-qemu-4.4.34-jessie \
-cpu arm1176 \
@rossja
rossja / laforge_cty_error_fix.md
Last active February 12, 2019 01:52
Fixing Laforge cty.primitiveType errors

When running laforge, if you get the following error:

panic: gob: registering duplicate types for "github.com/zclconf/go-cty/cty.primitiveType": cty.primitiveType != cty.primitiveType

The following steps can be taken to fix it:

  1. Edit $GOPATH/src/github.com/hashicorp/terraform/vendor/github.com/zclconf/go-cty/cty/types_to_register.go
  2. Comment out the following import statements:
 "math/big"
@rossja
rossja / keybase.md
Created November 22, 2018 15:52
keybase proof

Keybase proof

I hereby claim:

  • I am rossja on github.
  • I am algorythm (https://keybase.io/algorythm) on keybase.
  • I have a public key ASDFgB-KRHOkKCnCMP7SAoAOOmOGk4pcMM2hoYF-n5h78wo

To claim this, I am signing this object:

#!/usr/bin/perl
use strict;
my @chars=(
"\x0a","\x0a","\x3d","\x78",
"\x3d","\x20","\x0a","\x6f",
"\x20","\x2e","\x20","\x0a",
"\x5e","\x5f","\x5f","\x5f",
"\x5e","\x0a","\x0a","\x79",
@rossja
rossja / authy-export.js
Created March 19, 2019 15:17
JSON export of TOTP keys from Authy
/*
// JSON export of TOTP keys from Authy
// based on the scripts and comments at <https://gist.github.com/gboudreau/94bb0c11a6209c82418d01a59d958c93>
// Last tested: 2019-03-19
// -----------------------------------------------------------
// Tested on:
// - Chrome version 72.0.3626.121 (Official Build) (64-bit)
// - Authy version 2.6.0
// -----------------------------------------------------------
// Directions:
@rossja
rossja / ECB Cryptolocker.md
Last active February 25, 2020 23:04
ECB CryptoLocker

ECB CryptoLocker Idea

Random musings from a 3 AM brain spin. Likely a very stupid idea :)

To Lock

  • create a list of files to lock
  • randomize the list order
  • generate a random 8 bit ascii hex string to use as an IV
@rossja
rossja / config.py
Created May 5, 2020 14:55
Dockerized Overviewer
worlds["default"] = "/tmp/server/world/"
worlds["nether"] = "/tmp/server/world_nether/"
renders["default_day"] = {
"world": "default",
"title": "Default Day",
"rendermode": smooth_lighting,
"dimension": "overworld",
}
#!/usr/bin/env python3
# =================================================
# stupid script to dump kik profile data without a login or bot API key
# example command: `kiksnarf.py Kikteam`
# example output:
# fetching profile from: https://ws2.kik.com/user/Kikteam
# Name: Kik Team
# Display Pic URL: http://profilepics.cf.kik.com/9wG3zRZW8sLxLnpmyOfwNE7ChYk/orig.jpg
# Display Pic Last Updated: 2018-07-12T18:00:02Z
# =================================================
@rossja
rossja / DC28Streams.md
Last active August 9, 2020 16:01
DEF CON 28 (Safe Mode) Stream List