rapid7/metasploit-framework — pull request #2523 by todb-r7 (2013-10-14 22:26:25+00:00)
Title: Use read_response class method

Looks like this was never implemented in other modules, but it collects
data from the socket in the usual get_once sort of way.

Related to #1420 and #2511.

With this fix, I never race, and I'm getting the data consistently for both unattend files.

````
msf auxiliary(windows_deployment_services) > run
[*] Binding to 1A927394-352E-4553-AE3F-7CF4AAFCA620:1.0@ncacn_ip_tcp:192.168.145.60[5040] ...
[+] Bound to 1A927394-352E-4553-AE3F-7CF4AAFCA620:1.0@ncacn_ip_tcp:192.168.145.60[5040]
[*] Sending X64 Client Unattend request ...
[*] Received response ...
[*] Received X64 unattend file ...
[*] Raw version of X64 saved as: /home/todb/.msf4/loot/20131014172300_default_192.168.145.60_windows.unattend_447915.txt
[+] Retrived wds credentials for X64
[*] Sending X86 Client Unattend request ...
[*] Received response ...
[*] Received X86 unattend file ...
[*] Raw version of X86 saved as: /home/todb/.msf4/loot/20131014172300_default_192.168.145.60_windows.unattend_278318.txt
[+] Retrived wds credentials for X86
[*] Sending IA64 Client Unattend request ...
[*] Received response ...
[-] No Unattend received for IA64 architecture
[*] Skipping ARM architecture due to adv option

Windows Deployment Services
===========================

Architecture Type Domain Username Password
------------ ---- ------ -------- --------
X64 wds Fabrikam.com my_username-x64 my_password-x64
X86 wds Fabrikam.com my_username_x86 my_password_x86

[*] Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
````