Change info

git-svn-id: file:///home/svn/framework3/trunk@8650 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2010-02-26 01:09:09 +00:00
parent 8ebc16bb4a
commit d5e07a3ba9
2 changed files with 4 additions and 2 deletions

View File

@ -100,6 +100,7 @@ class Metasploit3 < Msf::Auxiliary
conn = Net::SSH::CommandStream.new(self.ssh_socket, '/bin/sh', true)
sess = Msf::Sessions::CommandShell.new(conn.lsock)
sess.set_from_exploit(self)
sess.info = "SSH #{user}:#{pass} (#{ip}:#{port})"
framework.sessions.register(sess)
return [:success, proof]

View File

@ -96,7 +96,7 @@ class Metasploit3 < Msf::Auxiliary
print_status "#{rhost}:#{rport} Telnet - Skipping '#{user}':'#{pass}' due to missing password prompt" if datastore['VERBOSE']
self.no_pass_prompt << this_cred
else
start_telnet_session if login_succeeded?
start_telnet_session(rhost,rport,user,pass) if login_succeeded?
end
end
@ -188,12 +188,13 @@ class Metasploit3 < Msf::Auxiliary
)
end
def start_telnet_session
def start_telnet_session(host,port,user,pass)
# Windows telnet server requires \r\n line endings and it doesn't
# seem to affect anything else.
sock.extend(CRLFLineEndings)
sess = Msf::Sessions::CommandShell.new(sock)
sess.set_from_exploit(self)
sess.info = "TELNET #{user}:#{pass} (#{host}:#{port})"
framework.sessions.register(sess)
end