Merge pull request #2 from wchen-r7/pr6226

Don't name the method #send
bug/bundler_fix
KING SABRI 2016-01-20 05:37:40 +03:00
commit 911bcc7792
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ module Metasploit
xml_payloads
end
def send(xml)
def send_wp_request(xml)
opts =
{
'method' => 'POST',
@ -87,7 +87,7 @@ module Metasploit
def attempt_login(credential)
#$stderr.puts "Testing: #{credential.public}"
generate_xml(credential.public).each do |xml|
send(xml)
send_wp_request(xml)
req_xml = Nokogiri::Slop(xml)
res_xml = Nokogiri::Slop(@res.to_s.scan(/<.*>/).join)
res_xml.search("methodResponse/params/param/value/array/data/value").each_with_index do |value, i|