Cleanup some of the output
git-svn-id: file:///home/svn/framework3/trunk@8942 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
c3eccf2cb5
commit
b0425f10cd
|
@ -100,14 +100,14 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
if rport == 443 or ssl
|
if rport == 443 or ssl
|
||||||
proto = "https"
|
proto = "https"
|
||||||
end
|
end
|
||||||
"#{proto}://#{rhost}:#{rport}#{@uri}"
|
"#{proto}://#{rhost}:#{rport}#{@uri.to_s}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def run_host(ip)
|
def run_host(ip)
|
||||||
|
|
||||||
@uri = find_auth_uri
|
@uri = find_auth_uri
|
||||||
if ! @uri
|
if ! @uri
|
||||||
print_error("No URI found that asks for HTTP authentication")
|
print_error("#{target_url} No URI found that asks for HTTP authentication")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -136,9 +136,6 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
if success
|
if success
|
||||||
print_good("#{target_url} - Successful login '#{user}' : '#{pass}'")
|
print_good("#{target_url} - Successful login '#{user}' : '#{pass}'")
|
||||||
|
|
||||||
# XXX: Was this a valid user:pass, a valid pass, or a valid user?
|
|
||||||
# Some services only care about one of the two being valid
|
|
||||||
|
|
||||||
any_user = false
|
any_user = false
|
||||||
any_pass = false
|
any_pass = false
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
while XDR.decode_int!(resp) == 1 do
|
while XDR.decode_int!(resp) == 1 do
|
||||||
grp << XDR.decode_string!(resp)
|
grp << XDR.decode_string!(resp)
|
||||||
end
|
end
|
||||||
print_line("#{ip}\t#{dir}\t[#{grp.join(", ")}]")
|
print_good("#{ip} NFS Export: #{dir} [#{grp.join(", ")}]")
|
||||||
shares << [dir, grp]
|
shares << [dir, grp]
|
||||||
end
|
end
|
||||||
report_note(
|
report_note(
|
||||||
|
|
|
@ -300,3 +300,4 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue