# This file is part of Metasm, the Ruby assembly manipulation suite # Copyright (C) 2006-2009 Yoann GUILLOT # # Licence is LGPL, see LICENCE in the top-level directory # # here we will build an executable file that will shut down the machine # when run # the header part comes from the factorize sample script # require 'metasm' cpu = Metasm::Ia32.new cpu.generate_PIC = false Metasm::PE.compile_c(cpu, DATA.read + <