rapid7/metasploit-framework — pull request #943 by mubix (2012-10-21 07:15:57+00:00)
Title: add proxy setting cloning module

Changing SYSTEM's proxy settings to match the current users':
```
msf post(clone_proxy_settings) > show options

Module options (post/clone_proxy_settings):

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, defaults to SYSTEM

msf post(clone_proxy_settings) > set SESSION 4
SESSION => 4
msf post(clone_proxy_settings) > run

[*] Proxy settings being copied:
[*]	Proxy Counter = 33
[*]	Setting: WPAD and Proxy server
[*]	Proxy Server: 192.168.1.1:80
[*]	Additional Info:
[*]	AutoConfigURL: blah
[*] Attempting to read target's settings...
[*] Current proxy settings for target:
[*]	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
[*] Cloning... bahh..
[*] New settings:
[*] Current proxy settings for target:
[*]	Proxy Counter = 33
[*]	Setting: WPAD and Proxy server
[*]	Proxy Server: 192.168.1.1:80
[*]	Additional Info:
[*]	AutoConfigURL: blah
[*] Post module execution completed
```