rapid7/metasploit-framework — pull request #3098 by wchen-r7 (2014-03-13 04:11:06+00:00)
Title: Fix check command host selection behavior

[SeeRM #8768] Instead of using the saved value for host, the check command should use whatever the user specifies.

### Please verify the following ###

Scenario: The check command should use the RHOST option you specify instead of using whatever is in the config file.

- [ ] Make sure you have a Win XP SP3 that's vulnerable to ms08_067_netapi for testing.
- [ ] Run ```msfconsole```
- [ ] Enter: ```use exploit/windows/smb/ms08_067_netapi```
- [ ] Enter: ```set RHOST [IP 1]```
- [ ] Enter: ```save```
- [ ] Enter: ```set RHOST [IP 2]```
- [ ] Enter: ```check```
- [ ] Confirm that the check command runs against IP 2, and not IP 1.

Scenario: The check command should still use the saved option if it isn't specified by the user.

- [ ] Make sure you still have the saved RHOST option (IP 1) from the previous test.
- [ ] Make sure you're in ```msfconsole```
- [ ] Make sure you're in ```exploit/windows/smb/ms08_067_netapi```
- [ ] Enter: ```check```
- [ ] Confirm that the check command runs against IP 1.