Metasploit mailing list archives
Smal patch for smb_enumshares
From: Konrads Smelkovs <konrads () smelkovs com>
Date: Fri, 2 Apr 2010 13:33:27 +0300
Hi, When SMB server does not allow to list shared, smb_enumshares exits with a nasty error that clutters screen: msf > use auxiliary/scanner/smb/smb_enumshares msf auxiliary(smb_enumshares) > set RHOSTS 127.0.0.1 RHOSTS => 127.0.0.1 msf auxiliary(smb_enumshares) > exploit Error: 127.0.0.1 Rex::Proto::SMB::Exceptions::ErrorCode The server responded with error: STATUS_ACCESS_DENIED (Command=37 WordCount=0) ["/msf3/lib/rex/proto/smb/client.rb:176:in `smb_recv_parse'", "/msf3/lib/rex/proto/smb/client.rb:1250:in `trans'", "(eval):63:in `block in run_host'", "(eval):54:in `each'", "(eval):54:in `run_host'", "/msf3/lib/msf/core/auxiliary/scanner.rb:92:in `block in run'"] My five-liner patch solves it (attached). P.S. I was thinking that this should be part of LoginError actually... -- Konrads Smelkovs Applied IT sorcery.
Attachment:
smb_enumshares.rb.diff
Description:
_______________________________________________ https://mail.metasploit.com/mailman/listinfo/framework
Current thread:
- Smal patch for smb_enumshares Konrads Smelkovs (Apr 02)