Skip to content

Instantly share code, notes, and snippets.

@antsaasma
antsaasma / helloworld.asm
Created May 2, 2012 18:06
69 byte hello world
BITS 32
org 0x00010000
db 0x7F, "ELF" ; e_ident
dd 1 ; p_type
dd 0 ; p_offset
dd $$ ; p_vaddr
dw 2 ; e_type ; p_paddr
dw 3 ; e_machine
dd _start ; e_version ; p_filesz
@antsaasma
antsaasma / analyze.py
Created April 30, 2009 14:39
Python decompiler for language integrated queries
# -*- coding: utf-8 -*-
import opcode
import new
import bisect
from itertools import islice, chain