rapid7/metasploit-framework — pull request #942 by mubix (2012-10-21 03:37:11+00:00)
Title: proxy parsing post module

Standard user output with specific settings set and autoconfig url:
```
msf post(enum_proxy) > show options

Module options (post/windows/gather/enum_proxy):

Name Current Setting Required Description
---- --------------- -------- -----------
RHOST no Remote host to clone settings to, defaults to local
SESSION 1 yes The session to run this module on.
SID no SID of user to clone settings to (SYSTEM is S-1-5-18)

msf post(enum_proxy) > run

[*] Proxy Counter = 24
[*] Setting: Set proxy via AutoConfigure script
[*] Proxy Server: ftp=172.16.10.206:6588;http=172.16.10.206:6588;https=172.16.10.206:6588;socks=172.16.10.206:1080
[*] Additional Info:
[*] AutoConfigURL: http://www.projectmentor.net/proxy.pac
[*] Post module execution completed
```
Enumerating SYSTEM's proxy settings:
```
msf post(enum_proxy) > set SID S-1-5-18
SID => S-1-5-18
msf post(enum_proxy) > show options

Module options (post/windows/gather/enum_proxy):

Name Current Setting Required Description
---- --------------- -------- -----------
RHOST no Remote host to clone settings to, defaults to local
SESSION 1 yes The session to run this module on.
SID S-1-5-18 no SID of user to clone settings to (SYSTEM is S-1-5-18)

msf post(enum_proxy) > run

[*] Proxy Counter = 9
[*] Setting: WPAD
[*] Post module execution completed

```
Current user's proxy settings on a remote system (remote registry must be allowed to the user)
```
msf post(enum_proxy) > show options

Module options (post/windows/gather/enum_proxy):

Name Current Setting Required Description
---- --------------- -------- -----------
RHOST 172.16.10.206 no Remote host to clone settings to, defaults to local
SESSION 1 yes The session to run this module on.
SID no SID of user to clone settings to (SYSTEM is S-1-5-18)

msf post(enum_proxy) > run

[*] Proxy Counter = 15
[*] Setting: No proxy settings
[*] Proxy Server: 127.0.0.1:6588
[*] Additional Info:
[*] Post module execution completed
```
Remotely enumerating SYSTEM's proxy settings:
```
msf post(enum_proxy) > set SID S-1-5-18
SID => S-1-5-18
msf post(enum_proxy) > show options

Module options (post/windows/gather/enum_proxy):

Name Current Setting Required Description
---- --------------- -------- -----------
RHOST 172.16.10.206 no Remote host to clone settings to, defaults to local
SESSION 1 yes The session to run this module on.
SID S-1-5-18 no SID of user to clone settings to (SYSTEM is S-1-5-18)

msf post(enum_proxy) > run

[*] Proxy Counter = 22
[*] Setting: No proxy settings
[*] Post module execution completed
msf post(enum_proxy) >

```