Skip to content

Instantly share code, notes, and snippets.

@bnagy
bnagy / gootool.go
Last active August 29, 2015 13:59
gootool
package main
import (
"bytes"
"container/list"
"debug/macho"
"encoding/hex"
"flag"
"fmt"
cs "github.com/bnagy/gapstone"
@bnagy
bnagy / srv2.rb
Created October 2, 2014 03:45
openssl issue
require 'openssl'
require 'socket'
# client.rb - minimal SSL client
# require 'openssl'
# require 'socket'
# include OpenSSL::SSL
# HOST = '::1'
@bnagy
bnagy / server.rb
Last active August 29, 2015 14:07
openssl issue
require 'openssl'
require 'socket'
# client.rb - minimal SSL client
# require 'openssl'
# require 'socket'
# include OpenSSL::SSL
# HOST = '::1'
# Abstract access to internal files in docx format. Right now this uses system
# zip and tempfiles because the available ruby zip libraries don't seem to be
# able to produce files that Word will read.
#
# Author: Ben Nagy
# Copyright: Copyright (c) Ben Nagy, 2006-2013.
# License: The MIT License
# (See http://www.opensource.org/licenses/mit-license.php for details.)
require 'tempfile'
@bnagy
bnagy / foo.h
Last active August 29, 2015 14:23
buildmode c-shared
/* Created by "go tool cgo" - DO NOT EDIT. */
/* package github.com/bnagy/cshared */
/* Start of preamble from import "C" comments. */
/* End of preamble from import "C" comments. */
#!/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 / steamed_goat.md
Last active August 29, 2015 14:26
Coriander Steamed Goat
  • 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
//========================================================================
//
// pdftoppm.cc
//
// Copyright 2003 Glyph & Cog, LLC
//
//========================================================================
//========================================================================
//
// 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>
@bnagy
bnagy / foo.rb
Last active September 23, 2015 04:56
afl-consolidate
#! /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