Remove peer; defined in lib/msf/core/post/common.rb
parent
3535cf3d18
commit
f8943f4821
|
@ -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
|
||||||
#
|
#
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue