Skip to content

Instantly share code, notes, and snippets.

Ben Nagy bnagy

Block or report user

Report or block bnagy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gootool.go
package main
import (
"bytes"
"container/list"
"debug/macho"
"encoding/hex"
"flag"
"fmt"
cs "github.com/bnagy/gapstone"
@bnagy
bnagy / srv2.rb
Created Oct 2, 2014
openssl issue
View srv2.rb
require 'openssl'
require 'socket'
# client.rb - minimal SSL client
# require 'openssl'
# require 'socket'
# include OpenSSL::SSL
# HOST = '::1'
@bnagy
bnagy / server.rb
Last active Aug 29, 2015
openssl issue
View server.rb
require 'openssl'
require 'socket'
# client.rb - minimal SSL client
# require 'openssl'
# require 'socket'
# include OpenSSL::SSL
# HOST = '::1'
View gist:b2b7670714ae35f5eac3
# 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 Aug 29, 2015
buildmode c-shared
View foo.h
/* 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. */
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 / 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 pdftoppm.cc
//========================================================================
//
// pdftoppm.cc
//
// Copyright 2003 Glyph & Cog, LLC
//
//========================================================================
//========================================================================
//
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>
@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
You can’t perform that action at this time.