This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import opcode | |
import new | |
import bisect | |
from itertools import islice, chain | |