Skip to content

Instantly share code, notes, and snippets.

H4sIAAAAAAAAAzWQTUsCH4sIAAAAAAAAAzWQTUsCH4sIAAAAAAAAAzWQTUsCH4sIAAAAAAAAAzWQTUs
URSG70QDMQRX123O0j9gURSG70QDMQRX123O0j9gURSG70QDMQRX123O0j9gURSG70QDMQRX123O0j9
DBKUpGRE7SSi1Vh30qhGDBKUpGRE7SSi1Vh30qhGBKUpGRE7SSi1Vh30qhOGBKUpGRE7SSi1Vh30qhO
nCmxVYWbPvwH/YVqFYiLnCmxVYWbPvwH/YVqYiLnCmxVYWbPvwH/YVqYiLnCmKxVYWbPvwH/YVqYiLn
TM2PVkm0CAp1eXfWKnd1TM2PVkm0CAp1efWKnd1TM2PVkm0CAp1efWKnd1TM2PVkvm0CAp1efWKnd1T
7rG5cN/znufcGQ5vohQ+7rG5cN/znufGQ5vohQ+7rG5cN/znufGQ5vohQ+7rG5cN/zSnufGQ5vohQ+7
1RirbDLG5Dy6MhpWVZIo1RirbDLG5y6MhpWnVZIo1RirbDLG5y6MhpWnVZIo1RrbDLG5ty6MhpWnVZI
hXfVaBo919t6UmN0eEBfhXfVaBo99t6UmN0peEfhXfVaBo99t6UmN0peEfhVXfaBo99t6dUmN0peEfh
Q8tD0ubDV5tH+h1NBpHYQ8tD0ubV5tH+h1NOBpYQ8tD0ubV5tH+h1NOBpYQF8t0ubV5tH+vh1NOBpYQ
3Pz4on5Cav/9iPpJ+Y0f3Pz4onCav/9iPpJE+Yf3Pz4onjCav/9ipJE+Yf3XPzonjCav/9ifpJE+Yf3
@psifertex
psifertex / 1_Snippet_Instructions.txt
Last active April 15, 2025 11:17
my current collection of snippets
Welcome to Jordan's grab-bag of common Binary Ninja Snippets.
These snippest are meant to run with the Binary Ninja Snippets Plugin
(http://github.com/Vector35/snippets) though they can all also be pasted
directly into the python console or turned into stand-alone plugins if needed.
To install the entire collection at once, just install the Snippets plugin via
the plugin manager (CMD/CTL-SHIFT-M), confirm the Snippet Editor works
(Tool/Snippets/Snippet Editor), and unzip this bundle (Download ZIP above) into
your Snippets folder.
@psifertex
psifertex / gist:91253a2fec94195cb9cf89a72db0e695
Last active March 26, 2020 16:47
live online training platform wish-list
The number of cancelled conferences has really driven home to me that we have
crap for online training. The educational market surely has solutions to these
problems, but in the paid commercial training space, where are the platforms
designed for live interactive training that aren't just video chat with a very
thing skin on them?!
Here's my proposed wish-list of features. I've added a [ranking] where [1] is
must have, and [3] is nice to have.
- [2] Ability to drive students to specific web resources or local
@psifertex
psifertex / README.md
Last active January 7, 2025 19:48
quick and dirty live graphing of memory usage

Quick Raw Data Graph

With thanks to willpatera for the google apps script this is based on.

Instructions:

  1. Make a new google sheet (add column headers like "uss", "rss" or "vss" as posted in log-memory.py as appropriate)
  2. Tools / Script Editor
  3. Paste google code.js into the window
  4. Run / Setup (Authorize the app)
@psifertex
psifertex / .bashrc
Created April 22, 2020 06:30
random bash aliases
if which dig >/dev/null 2>/dev/null
then
alias remoteip="dig +short myip.opendns.com @resolver1.opendns.com"
elif which curl >/dev/null 2>/dev/null
then
alias remoteip="curl http://ipecho.net/plain"
fi
function localip()
{
case "$OSTYPE" in
@psifertex
psifertex / scan.py
Created May 19, 2020 01:53
scan for getenv and dlopen calls
# Quick and dirty BN script for part of the whooo-r-u challenge during DEFCON Quals 2020.
# Used to identify likely environment variables and library names that were
# fed to other fuzzing sripts for SUID abuse
from binaryninja import *
import os
from pprint import pprint
import json
libname = "getenv" #re-ran the script with different arguments, not elegant, but it's CTF and both take a string in the first parameter...
@psifertex
psifertex / batch.py
Created May 25, 2020 21:01
simple batch processing script
#!/usr/bin/env python3
from binaryninja import *
import glob, sys, os
if len(sys.argv) > 1:
path = sys.argv[1:]
else:
path = ["/bin/ls"]
for arg in path:
for f in [x for x in glob.glob(arg) if os.path.isfile(x) and os.access(x, os.R_OK)]:
@psifertex
psifertex / public-slack.md
Last active September 22, 2020 20:36
Notes on running a "public" slack

My recommended settings for setting up a slack that you plan to allow public access to. Methods for adding public users include third-party utilities like slackin (https://github.com/emedvedev/slackin-extended) which enable active user badges, or simpler methods such as using the Share Invite Link from slack itself.

SUPER IMPORTANT

If you only do two things, make it these two: Make sure to disable all app integrations. There's a bunch that aren't secure for public slacks. Either deny all, or require review by an admin: https://YOURSLACK.slack.com/apps/manage/permissions Second, disable email in the profile view: https://binaryninja.slack.com/admin/settings#display_email_addresses

The reset are optional settings that may or may not be required depending on the slack:

@psifertex
psifertex / resumes.js
Last active January 21, 2022 17:51
google apps script to save/sort incoming resumes
function processResumes()
{
/* Configuration */
var labelToSave = 'Resumes';
var labelToMarkSaved = 'Resumes/Saved';
var labelBroken = 'Resumes/Saved/Broken';
var resumeFolderID = 'INSERTYOURFOLDERIDHERE';
// Folder ID can be found just by browsing to the folder in google drive
/* Configuration Goes Here */
@psifertex
psifertex / gist:04f673069c10ee16a97e420e26228863
Created April 7, 2021 21:38
append to setters pydoc in a class decorator
We couldn’t find that file to show.