#!/usr/bin/env ruby # This file is part of Metasm, the Ruby assembly manipulation suite # Copyright (C) 2007 Yoann GUILLOT # # Licence is LGPL, see LICENCE in the top-level directory # # in this exemple we can write a shellcode using a C function # require 'metasm' # load and decode the file sc = Metasm::Shellcode.new(Metasm::Ia32.new) sc.parse <