rapid7/metasploit-framework — pull request #346 by alexmaloteaux (2012-04-20 01:01:38+00:00)
Title: enumshare: add srvsvc netshareenum request for compatibility with win 7

the lanman method used by smb_enumshare is not compatible anymore with win 7 or win 2008 r2.

This patch add a srvsvc netshareenum request. By default the lanman method is used and if a smb_not_suported error code is encountered then srvsvc method is used.

It is also possible to force srvsvc with the advanced option USE_SRVSVC_ONLY. srvsvc method is compatible with older version of windows as well.