2009-03-29 07:30:54 +00:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
|
|
|
# This file is part of Metasm, the Ruby assembly manipulation suite
|
2010-09-09 18:19:35 +00:00
|
|
|
# Copyright (C) 2006-2009 Yoann GUILLOT
|
2009-03-29 07:30:54 +00:00
|
|
|
#
|
|
|
|
# Licence is LGPL, see LICENCE in the top-level directory
|
|
|
|
|
|
|
|
require 'metasm'
|
2011-04-06 17:40:01 +00:00
|
|
|
$opts = { :execlass => Metasm::PE, :srctype_data => 'c' }
|
2009-03-29 07:30:54 +00:00
|
|
|
load File.join(File.dirname(__FILE__), 'exeencode.rb')
|
|
|
|
|
|
|
|
__END__
|
2011-04-06 17:40:01 +00:00
|
|
|
__stdcall int MessageBox(int, char*, char*, int);
|
|
|
|
__stdcall void ExitProcess(int);
|
2009-03-29 07:30:54 +00:00
|
|
|
void main(void)
|
|
|
|
{
|
2011-04-06 17:40:01 +00:00
|
|
|
MessageBox(0, "kikoo", "lol", 0);
|
2009-03-29 07:30:54 +00:00
|
|
|
ExitProcess(0);
|
|
|
|
}
|