Skip to content

Instantly share code, notes, and snippets.

View bburky's full-sized avatar

Blake Burkhart bburky

View GitHub Profile
Function Convert-FromUnixDate ($UnixDate) {
[timezone]::CurrentTimeZone.ToLocalTime(([datetime]'1/1/1970').AddSeconds($UnixDate))
}
function global:SteamLastPlayed()
{
$steamGuid = [Guid]"CB91DFC9-B977-43BF-8E70-55F46E410FAB"
$app = [PlayniteUI.App]::CurrentApp
$steamLibrary = $app.Extensions.LibraryPlugins[$steamGuid].Plugin
# HACK HACK HACK: We want to access the Steam plugin's settings to access the user id
@bburky
bburky / Uptown23rd retweeted users.ipynb
Last active November 7, 2018 01:58
Uptown23rd retweeted users
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bburky
bburky / coursera.sh
Last active June 30, 2016 17:30
Automatically configure a VM download Coursera courses
#!/bin/bash
# Automatically configure a VM download Coursera courses.
# This script works as a user data file for use with a cloud VM.
# This script will resume downloading if the VM is restarted.
# This script works with Debian jessie (or possibly Ubuntu with systemd).
# You must enroll in each course and accept the Honor of Code of each course
# before you can download them.
@bburky
bburky / 1-osx-normal.log
Last active May 27, 2016 00:18
kiibohd/controller OSX boot debugging
©SB INIT
CONTROL - pid:0xD, count:0x80034 - bmRequestType:0x80, bRequest:0x6, wValue:0x100, wIndex:0x0, len:0x8 -- 0x1000680 0x80000
desc:0x100
Desc found, 0x1FFFEF3E,0x12,120100020000
setup send 0x1FFFEF3E,0x12 0x1 0x0 0x2 0x0 0x0 0x0 0x40 0x11 0x1C 0x4D 0xB0 0x0 0x1 0x1 0x2 0x3 0x1 ,0x12
CONTROL - pid:0x9, count:0x80064 - PID=IN:0x8
CONTROL - pid:0xD, count:0x80034 - bmRequestType:0x0, bRequest:0x5, wValue:0x1C, wIndex:0x0, len:0x0 -- 0x1C0500 0x0
setup send 0x0,,0x0
CONTROL - pid:0x9, count:0x64 - PID=IN:0xC
set address: 0x1C
@bburky
bburky / MainActivity.java
Created May 1, 2016 17:14
Google CTF 2016 - Little Bobby Application solution
package com.bburky.bobbyapplication_exploit;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;
@bburky
bburky / lanyrd.py
Created December 12, 2015 01:08
Scrape a list of all conference talk PDFs from Lanyrd.com
#!/usr/bin/env python3
'''Scrape a list of all conference talk PDFs from Lanyrd.com
Usage: ./lanyrd.py > talks.json
This script searches Lanyrd for all talks with PDF slides and extracts the data
into nicely formatted JSON.
'''
import sys
@bburky
bburky / whitehats.py
Created May 1, 2015 00:07
Find reddit whitehats
#!/usr/bin/env python3
import asyncio
import aiohttp
import lxml.html
CDX_API_URL = 'http://web.archive.org/cdx/search/cdx'
# This uses an (undocumented?) flag 'id_' to force getting unmodified original files
DOWNLOAD_URL_PATTERN = 'http://web.archive.org/web/{timestamp}id_/{original}'
@bburky
bburky / prototypes.json
Created March 17, 2015 04:51
HashID prototypes to JSON
[
{
"regex": "^[a-f0-9]{4}$",
"modes": [
{
"john": null,
"hashcat": null,
"extended": false,
"name": "CRC-16"
},
We couldn’t find that file to show.
# Only CentOS 6.4 is avialable, not 6.5
#FROM centos:6.4
# Unoffical repository. Has CentOS 6.5
FROM tianon/centos:6.5
# Add zip and sudo. Is sudo usually absent from default installs?
RUN yum install -y sudo zip
# Make a original-docs.zip with some files in it