Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Add the getproxy command #43

Merged
merged 1 commit into from
Nov 6, 2013
Merged

Add the getproxy command #43

merged 1 commit into from
Nov 6, 2013

Conversation

OJ
Copy link
Contributor

@OJ OJ commented Oct 30, 2013

On Windows systems there is a system proxy setting that is exposed by IE and Chrome. This commit adds a getproxy command to stdapi which pulls out the details of the proxy settings for the current user.

Sample test run without proxy settings:

meterpreter > getproxy
Auto-detect     : No
Auto config URL : 
Proxy URL       : 
Proxy Bypass    : 

Sample test run with all proxy settings configured:

meterpreter > getproxy
Auto-detect     : Yes
Auto config URL : http://baz:8080/foo.pac
Proxy URL       : foo:80
Proxy Bypass    : test;testagain;<local>

This command is not supported on POSIX.

This commit also adds another helper function called packet_add_tlv_wstring which was used by the getproxy innards. This is the same as packet_add_tlv_string but is for wide-character strings.

The Metasploit side of this PR is rapid7/metasploit-framework#2592

This allows for system proxy setting to be pulled out. Windows-only at
this point.
todb-r7 pushed a commit to todb-r7/meterpreter that referenced this pull request Nov 4, 2013
todb-r7 pushed a commit to todb-r7/meterpreter that referenced this pull request Nov 6, 2013
@todb-r7 todb-r7 mentioned this pull request Nov 6, 2013
todb-r7 pushed a commit that referenced this pull request Nov 6, 2013
This lands #39, #42, and #43. #34 still needs work.
@todb-r7 todb-r7 merged commit 60196ae into rapid7:master Nov 6, 2013
@OJ OJ deleted the get_proxy_config branch November 7, 2013 04:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants