Remove peer; defined in lib/msf/core/post/common.rb
parent
3535cf3d18
commit
f8943f4821
|
@ -31,11 +31,6 @@ class Metasploit3 < Msf::Post
|
|||
], self.class)
|
||||
end
|
||||
|
||||
def peer
|
||||
"#{session.session_host}:#{session.session_port}"
|
||||
end
|
||||
|
||||
|
||||
#
|
||||
# The OSX version uses an apple script to do this
|
||||
#
|
||||
|
|
|
@ -58,11 +58,6 @@ class Metasploit3 < Msf::Post
|
|||
version
|
||||
end
|
||||
|
||||
def peer
|
||||
"#{session.session_host}:#{session.session_port}"
|
||||
end
|
||||
|
||||
|
||||
#
|
||||
# Converts LastSession.plist to xml, and then read it
|
||||
# @param filename [String] The path to LastSession.plist
|
||||
|
|
|
@ -38,22 +38,6 @@ class Metasploit3 < Msf::Post
|
|||
))
|
||||
end
|
||||
|
||||
def r_host
|
||||
if session.type =~ /meterpreter/
|
||||
session.sock.peerhost
|
||||
else
|
||||
session.session_host
|
||||
end
|
||||
end
|
||||
|
||||
def peer
|
||||
if session.type =~ /meterpreter/
|
||||
"#{r_host} (#{sysinfo['Computer']})"
|
||||
else
|
||||
r_host
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
# Decrypt DES encrypted password string
|
||||
#
|
||||
|
@ -215,7 +199,7 @@ class Metasploit3 < Msf::Post
|
|||
print_good "#{peer} - Found Username: '#{user}' Password: '#{pass}'"
|
||||
|
||||
report_cred(
|
||||
ip: r_host,
|
||||
ip: rhost,
|
||||
port: port,
|
||||
service_name: 'http',
|
||||
user: user,
|
||||
|
|
Loading…
Reference in New Issue