don't log plaintext passwords

git-svn-id: file:///home/svn/framework3/trunk@10422 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2010-09-21 07:00:50 +00:00
parent 4fd054476c
commit 7a58e611e6
1 changed files with 5 additions and 1 deletions

View File

@ -118,7 +118,11 @@ module Exploit::Remote::SMTPDeliver
def raw_send_recv(cmd, nsock=self.sock) def raw_send_recv(cmd, nsock=self.sock)
return false if not nsock return false if not nsock
print_verbose("C: #{cmd.strip}") if cmd =~ /AUTH PLAIN/
print_verbose("C: AUTH PLAIN ...")
else
print_verbose("C: #{cmd.strip}")
end
nsock.put(cmd) nsock.put(cmd)
res = nsock.get_once res = nsock.get_once
print_verbose("S: #{res.strip}") print_verbose("S: #{res.strip}")