Skip to content

Instantly share code, notes, and snippets.

@anall
anall / populate.pl
Last active December 20, 2015 06:08 — forked from afuna/populate.pl
#!/usr/bin/perl
use strict;
use warnings;
use Getopt::Long qw{GetOptions};
use lib "$ENV{LJHOME}/cgi-bin";
BEGIN { require "ljlib.pl"; }
BITS 32
org 0x08048000
ehdr:
db 0x7F, "ELF", 1, 1, 1, 0
times 8 db 0
dw 2
dw 3
dd 1
dd _start
dd phdr - $$