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)
end
def peer
"#{session.session_host}:#{session.session_port}"
end
#
# The OSX version uses an apple script to do this
#

View File

@ -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

View File

@ -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,