Skip to content

Instantly share code, notes, and snippets.

View DipSwitch's full-sized avatar

DipSwitch DipSwitch

  • Confed Solutions B.V.
  • Netherlands, The
View GitHub Profile
@DipSwitch
DipSwitch / gdbinit
Created May 22, 2011 13:40
gdbinit74
# INSTALL INSTRUCTIONS: save as ~/.gdbinit
#
# DESCRIPTION: A user-friendly gdb configuration file.
#
# REVISION : 7.4 (22/05/2011)
#
# CONTRIBUTORS: mammon_, elaine, pusillus, mong, zhang le, l0kit,
# truthix the cyberpunk, fG!, gln, dipswitch
#
# FEEDBACK: https://www.reverse-engineering.net
@DipSwitch
DipSwitch / resolveentry.sh
Created May 24, 2011 23:04
Get entrypoints from elf files
#!/bin/bash
# Get program entry points with the help of objdump and hexdump
# Copyleft dipswitch@ownage4u.nl 2011
if [[ -z $1 ]]; then
echo "Usage: $0 <elf>" 1>&2;
exit 1;
fi;
@DipSwitch
DipSwitch / syscall.py
Created October 24, 2012 21:44
Resolve the syscall number from your header files
#!/usr/bin/env python
#
# Filename: syscall.py
# Description: Resolve the syscall number from your header files
# Author: DipSwitch
# Maintainer: DipSwitch
# Created: Wed Oct 24 23:40:13 2012 (+0200)
# Version: v1.0
# Last-Updated: Thu Oct 25 07:34:19 2012 (+0200)
# By: DipSwitch
@DipSwitch
DipSwitch / event.py
Last active August 29, 2015 14:05
Python Event object With Signature Checking on Handler Addition
"""
The Event logic.
Including short unit test.
Why did I make this? Because I don't want to try and trigger
events which are almost never called. And now at leased the assigned
handlers will be raising an exception directly when they are assigned
with the wrong signature (which is at the start of the application most
of the times) instead of when the Event occurs.