From 8daeccafa63e2583066f6433caac38ac28f1192b Mon Sep 17 00:00:00 2001 From: Tod Beardsley Date: Tue, 27 Jul 2010 22:12:18 +0000 Subject: [PATCH] Changing logic for the VRFY test. git-svn-id: file:///home/svn/framework3/trunk@9940 4d416f70-5f16-0410-b530-b9f4589650da --- modules/auxiliary/scanner/smtp/smtp_enum.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/auxiliary/scanner/smtp/smtp_enum.rb b/modules/auxiliary/scanner/smtp/smtp_enum.rb index 9706f7d35a..df47ff311d 100644 --- a/modules/auxiliary/scanner/smtp/smtp_enum.rb +++ b/modules/auxiliary/scanner/smtp/smtp_enum.rb @@ -86,7 +86,7 @@ class Metasploit3 < Msf::Auxiliary begin cmd = 'VRFY' + " " + "root" + "\r\n" smtp_send(cmd,!@connected) - if (@result.match(%r{Cannot}).nil?) or (@result.match(%r{recognized}).nil?) + unless (@result.match(%r{Cannot}).nil?) or (@result.match(%r{recognized}).nil?) print_status("VRFY command disabled") if datastore['VERBOSE'] else print_status("VRFY command enabled") if datastore['VERBOSE']