Skip to content

Instantly share code, notes, and snippets.

View mjmckinnon's full-sized avatar

Michael McKinnon mjmckinnon

View GitHub Profile
@mjmckinnon
mjmckinnon / hf_mfu_amiibo.lua
Created August 7, 2021 10:36
Single script to restore Amiibo backups (540 byte .bin files) using a Proxmark3 (iceman build)
local cmds = require('commands')
local getopt = require('getopt')
local lib14a = require('read14a')
local utils = require('utils')
local ansicolors = require('ansicolors')
-- global
local DEBUG = true -- the debug flag
local bxor = bit32.bxor
#!/usr/bin/python
# used once in a CTF for dumping audio data
f = 'song.mp3'
from pydub import AudioSegment
sound = AudioSegment.from_mp3(f)
#!/bin/sh
clear
# Instructions:
# Step 1 - Create a new empty folder called 'MyLog' (or similar)
# Step 2 - Inside that folder drop this file called log.sh (or similar)
# Step 3 - Make the log.sh file executable
# Step 4 - Run the following commands:
# git init
# git add .
#!/bin/sh
# Written by: Michael McKinnon @bigmac
# Part two of a quick and dirty script
# to get a cowrie SSH honeypot up and running
# Yes, this needs to run as root.
# Init - a name for your juicy looking honeypot and ssh port
HONEYPOTNAME = "usd-bank-01"
#!/bin/sh
# Written by: Michael McKinnon @bigmac
# Part one of a quick and dirty script
# to get a cowrie SSH honeypot up and running
# This one just changes the SSH port, the
# good stuff happens in the Part two :)
# Init the actual SSH port we will use to
@mjmckinnon
mjmckinnon / rsa_crt_recovery.py
Last active March 23, 2024 09:11
Recovery of a full RSA PrivateKey from only the CRT exponent1 (dP) and exponent2 (dQ)
#!/usr/bin/python
# Written by: Michael McKinnon @bigmac
# Get in contact with me if you found this useful
import os
import sys
import gmpy2
from Crypto.PublicKey import RSA
from Crypto.Cipher import PKCS1_v1_5

Keybase proof

I hereby claim:

  • I am mjmckinnon on github.
  • I am mjmckinnon (https://keybase.io/mjmckinnon) on keybase.
  • I have a public key ASDwks09vfVS6tYYCXxZYHaFbRRYviwauzRyeqxDVpqaTQo

To claim this, I am signing this object:

@mjmckinnon
mjmckinnon / gist:1d82a067a3f8fbb9fa9a
Last active August 29, 2015 14:24
Ubuntu Backup Script
#!/bin/sh
##############################################################
# Ubuntu Backup Script
# Michael J. McKinnon
#
# date ver comment
# ------------ ------ --------------------------------------
# 5/2/2009 1.0 Initial version
# 9/2/2009 1.1 Added mySQL Database Name to output