diff --git a/tools/exploit/randomized_compile_c.rb b/tools/exploit/randomized_compile_c.rb deleted file mode 100644 index 2513b4bc0c..0000000000 --- a/tools/exploit/randomized_compile_c.rb +++ /dev/null @@ -1,26 +0,0 @@ -msfbase = __FILE__ -while File.symlink?(msfbase) - msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase)) -end -$:.unshift(File.expand_path(File.join(File.dirname(msfbase), '..', '..', 'lib'))) - -require 'msf/core' -require 'metasploit/framework/compiler/windows' - -template = %Q| -#define CONTENT "HELLO WORLD" -#define TITLE "HI" -#include - -void TryHelloWorld() { - MessageBox(NULL, CONTENT, TITLE, MB_OK); -} - -int main() { - TryHelloWorld(); - return 0; -}| - -out_file = '/tmp/helloworld.exe' -Metasploit::Framework::Compiler::Windows.compile_random_c_to_file(out_file, template) -puts "saved as #{out_file}" \ No newline at end of file