Skip to content

Instantly share code, notes, and snippets.

View rossja's full-sized avatar

Jason Ross rossja

View GitHub Profile
/**
* utils module - provides various utility functions used by the application
* @module utils
*/
/**
* A function to sort an array of indices by a given property
* put simply: this lets you sort an array of json objects by
* whatever property you tell it to use.
* Example: `var teams = data.teams.sort(utils.GetSortOrder("name"))`
@rossja
rossja / web-servers.md
Created October 22, 2021 18:24 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@rossja
rossja / DC28Streams.md
Last active August 9, 2020 16:01
DEF CON 28 (Safe Mode) Stream List
#!/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 / 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",
}
@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 / 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:
#!/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 / 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: