From be01cd96a337cb3ff5fc2ee6cd7a2cdc538d472b Mon Sep 17 00:00:00 2001 From: Tod Beardsley Date: Wed, 7 Aug 2013 11:43:46 -0500 Subject: [PATCH] Adds a test module for space checking This module should throw three errors on lines 17, 18, and 19 when checked against the new msftidy.rb that is space-tolerant (but not tab-space tolerant) --- test/modules/auxiliary/test/space-check.rb | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 test/modules/auxiliary/test/space-check.rb diff --git a/test/modules/auxiliary/test/space-check.rb b/test/modules/auxiliary/test/space-check.rb new file mode 100644 index 0000000000..54284b424a --- /dev/null +++ b/test/modules/auxiliary/test/space-check.rb @@ -0,0 +1,47 @@ +## +# 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::Auxiliary + + include Msf::Auxiliary::Report + include Msf::Exploit::Remote::HttpClient + + def initialize(info = {}) + super(update_info(info, + 'Name' => "Check Test", + 'Description' => %q{ + This module ensures that 'check' actually functions for Auxiilary modules. + }, + 'References' => + [ + [ 'OSVDB', '0' ] + ], + 'Author' => + [ + 'todb' + ], + 'License' => MSF_LICENSE + )) + + register_options( + [ + Opt::RPORT(80) + ], self.class) + end + + def check + print_debug "Check is successful" + return Msf::Exploit::CheckCode::Vulnerable + end + + def run + print_debug "Run is successful." + end + +end