43 lines
886 B
Ruby
43 lines
886 B
Ruby
##
|
|
# This module requires Metasploit: https://metasploit.com/download
|
|
# Current source: https://github.com/rapid7/metasploit-framework
|
|
##
|
|
|
|
|
|
class MetasploitModule < 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' => '2013-05-23'
|
|
))
|
|
|
|
register_options(
|
|
[
|
|
Opt::RPORT(80)
|
|
], self.class)
|
|
end
|
|
|
|
def check
|
|
vprint_status("Check is successful")
|
|
return Msf::Exploit::CheckCode::Vulnerable
|
|
end
|
|
|
|
def exploit
|
|
vprint_status("Exploit is successful.")
|
|
end
|
|
|
|
end
|