From 9b4c7faf6c3c84326fe5123033a2506357e3ba4f Mon Sep 17 00:00:00 2001 From: HD Moore Date: Sat, 22 Mar 2008 06:52:11 +0000 Subject: [PATCH] Handle STAT and QUIT and RSET and LIST git-svn-id: file:///home/svn/framework3/trunk@5454 4d416f70-5f16-0410-b530-b9f4589650da --- modules/auxiliary/server/capture/pop3.rb | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/modules/auxiliary/server/capture/pop3.rb b/modules/auxiliary/server/capture/pop3.rb index 3619f5e077..f3bfc3272c 100644 --- a/modules/auxiliary/server/capture/pop3.rb +++ b/modules/auxiliary/server/capture/pop3.rb @@ -92,7 +92,22 @@ class Auxiliary::Server::Capture::Pop3 < Msf::Auxiliary return end - print_status("POP3 COMMAND #{@state[c][:name]} \"#{data.strip}\"") + if(cmd.upcase == "STAT") + c.put "+OK 0 0\r\n" + return + end + + if(cmd.upcase == "LIST") + c.put "+OK 0 Messages\r\n" + return + end + + if(cmd.upcase == "QUIT" || cmd.upcase == "RSET" || cmd.upcase == "DELE") + c.put "+OK\r\n" + return + end + + print_status("POP3 UNKNOWN CMD #{@state[c][:name]} \"#{data.strip}\"") c.put "+OK\r\n" end