Skip to content

Instantly share code, notes, and snippets.

Ben Nagy bnagy

View GitHub Profile
@bnagy
bnagy / scansion.ipynb
Created Jun 26, 2018
Teaching a computer to teach me how to scan latin poetry
View scansion.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bnagy
bnagy / afl-llvm-rt.o.c
Last active Jun 13, 2018
AFL SHM with guard pages
View afl-llvm-rt.o.c
/*
american fuzzy lop - LLVM instrumentation bootstrap
---------------------------------------------------
Written by Laszlo Szekeres <lszekeres@google.com> and
Michal Zalewski <lcamtuf@google.com>
LLVM integration design comes from Laszlo Szekeres.
Copyright 2015 Google Inc. All rights reserved.
@bnagy
bnagy / foo.rb
Last active Sep 23, 2015
afl-consolidate
View foo.rb
#! /usr/bin/env ruby
require 'fileutils'
require 'digest/sha1'
def die_usage
fail "Usage: #{$0} /path/to/fuzzing/root /path/to/output [extension]"
end
class Collision < StandardError; end
View pdfium_test.cc
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
View pdftoppm.cc
//========================================================================
//
// pdftoppm.cc
//
// Copyright 2003 Glyph & Cog, LLC
//
//========================================================================
//========================================================================
//
View afl-pause.sh
#!/bin/sh
#
# american fuzzy lop - pause a set of fuzzers
# --------------------------------------
#
# By @rantyben, based on afl-whatsup, which is:
# Written and maintained by Michal Zalewski <lcamtuf@google.com>
#
# Copyright 2015 Google Inc. All rights reserved.
#
@bnagy
bnagy / steamed_goat.md
Last active Aug 29, 2015
Coriander Steamed Goat
View steamed_goat.md
  • 1 kg rack of young goat or lamb
  • 3-4 small bunches coriander
  • 2 tbsb coriander seed
  • 1 tsp szechuan pepper
  • 1 tsp salt
  • 1 thumb of ginger
  • 2 garlic cloves
  • 3 green cardamom pods
  • 4-5 fresh green chilis (or to taste)
  • 1-2 cups chicken stock
View pollenate.rb
#! /usr/bin/env ruby
# Pollenate ONE sync dir from each target into all other
# targets fuzzing the same format. Assumes that work
# dirs are named as by github.com/bnagy/afl-launch.
#
# Each target syncs inside its own directory already
# so copying any of the sync dirs works. It is possible
# that you'll miss some stuff, but it saves N * N-1 sync
#
View afl-cmin-clobber
#!/usr/bin/env bash
#
# american fuzzy lop - corpus minimization tool
# ---------------------------------------------
#
# Written and maintained by Michal Zalewski <lcamtuf@google.com>
#
# Copyright 2014, 2015 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
@bnagy
bnagy / gpgmutt.md
Last active Feb 2, 2019
Mutt, Gmail and GPG
View gpgmutt.md

GPG / Mutt / Gmail

About

This is a collection of snippets, not a comprehensive guide. I suggest you start with Operational PGP.

Here is an incomplete list of things that are different from other approaches:

  • I don't use keyservers. Ever.
  • Yes, I use Gmail instead of some bespoke hipster freedom service
You can’t perform that action at this time.