Regression test for check in exploits

unstable
Tod Beardsley 2013-05-23 11:46:16 -05:00
parent a852304ba3
commit eeea1d9109
2 changed files with 49 additions and 1 deletions

View File

@ -0,0 +1,45 @@
##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/framework/
##
require 'msf/core'
class Metasploit3 < Msf::Exploit
def initialize(info = {})
super(update_info(info,
'Name' => "Check Test Exploit",
'Description' => %q{
This module ensures that 'check' actually functions for Exploit modules.
},
'References' =>
[
[ 'OSVDB', '0' ]
],
'Author' =>
[
'todb'
],
'License' => MSF_LICENSE,
'DisclosureDate' => 'May 23 2013'
))
register_options(
[
Opt::RPORT(80)
], self.class)
end
def check
print_debug "Check is successful"
return Msf::Exploit::CheckCode::Vulnerable
end
def exploit
print_debug "Exploit is successful."
end
end

View File

@ -4,4 +4,7 @@
use auxiliary/test/check use auxiliary/test/check
set rhost www.metasploit.com set rhost www.metasploit.com
check check
exit
use exploit/test/check
set rhost www.metasploit.com
check