2010-08-25 14:33:09 +00:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
|
|
|
dllbase = File.expand_path(File.dirname(__FILE__))
|
|
|
|
msfbase = File.expand_path(File.join(dllbase, "..", "..", ".."))
|
2015-06-08 16:30:04 +00:00
|
|
|
msfv = File.join(msfbase, "msfvenom")
|
2010-08-25 14:33:09 +00:00
|
|
|
|
|
|
|
Dir.chdir(dllbase)
|
|
|
|
|
2015-06-08 16:30:04 +00:00
|
|
|
system("ruby #{msfv} -p windows/exec CMD=calc.exe -f exe -o runcalc.exe")
|
|
|
|
system("ruby #{msfv} -p windows/exec CMD=calc.exe -f dll -o runcalc.dll")
|
|
|
|
system("ruby #{msfv} -p windows/exec CMD='cmd.exe /c echo yes > exploited.txt' -f dll -o runtest.dll")
|
|
|
|
system("ruby #{msfv} -p windows/exec CMD='cmd.exe /c echo yes > exploited.txt' -f exe -o runtest.exe")
|
2010-08-25 14:33:09 +00:00
|
|
|
|