我原来有试过,好玩而已,用下面的函数, 具体看msdn的帮助(不要跟我说你不会的导入api函数)
============================
WNetAddConnection
The WNetAddConnection function enables the calling application to connect a local device to a network resource. A successful connection is persistent, meaning that Windows automatically restores the connection during subsequent logon operations.
This function is provided for compatibility with earlier versions of Microsoft Windows. For new applications, use the WNetAddConnection2 function.
DWORD WNetAddConnection(
LPTSTR lpRemoteName, // pointer to network device name
LPTSTR lpPassword, // pointer to password
LPTSTR lpLocalName // pointer to local device name
);
++++++++++++++++++++++++++++++++++++++++++
其中lppassword可以用穷举法,一直试,或者用字典
比如1 2..a.bc 一个个试,在局域网中是很快的,我试过