Remove peer; defined in lib/msf/core/post/common.rb

bug/bundler_fix
Jon Hart 2015-12-24 07:57:16 -08:00
parent 3535cf3d18
commit f8943f4821
No known key found for this signature in database
GPG Key ID: 2FA9F0A3AFA8E9D3
3 changed files with 1 additions and 27 deletions

View File

@ -31,11 +31,6 @@ class Metasploit3 < Msf::Post
], self.class) ], self.class)
end end
def peer
"#{session.session_host}:#{session.session_port}"
end
# #
# The OSX version uses an apple script to do this # The OSX version uses an apple script to do this
# #

View File

@ -58,11 +58,6 @@ class Metasploit3 < Msf::Post
version version
end end
def peer
"#{session.session_host}:#{session.session_port}"
end
# #
# Converts LastSession.plist to xml, and then read it # Converts LastSession.plist to xml, and then read it
# @param filename [String] The path to LastSession.plist # @param filename [String] The path to LastSession.plist

View File

@ -38,22 +38,6 @@ class Metasploit3 < Msf::Post
)) ))
end 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 # Decrypt DES encrypted password string
# #
@ -215,7 +199,7 @@ class Metasploit3 < Msf::Post
print_good "#{peer} - Found Username: '#{user}' Password: '#{pass}'" print_good "#{peer} - Found Username: '#{user}' Password: '#{pass}'"
report_cred( report_cred(
ip: r_host, ip: rhost,
port: port, port: port,
service_name: 'http', service_name: 'http',
user: user, user: user,