T1090 add proxy reg key (#653)

Adds a registry key to set up a proxy on the endpoint at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PortProxy\v4tov4
This commit is contained in:
bmorgan-code
2019-11-13 17:41:46 -06:00
committed by Carrie Roberts
parent 406b4a1f77
commit b22483e2f1
+31 -1
View File
@@ -30,4 +30,34 @@ atomic_tests:
export #{proxy_scheme}_proxy=#{proxy_server}
cleanup_command: |
unset http_proxy
unset https_proxy
unset https_proxy
- name: portproxy reg key
description: |
Adds a registry key to set up a proxy on the endpoint at
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PortProxy\v4tov4
supported_platforms:
- windows
input_arguments:
listenport:
description: Specifies the IPv4 port, by port number or service name, on which to listen.
type: string
default: 1337
connectport:
description: Specifies the IPv4 port, by port number or service name, to which to connect. If connectport is not specified, the default is the value of listenport on the local computer.
type: string
default: 1337
connectaddress:
description: Specifies the IPv4 address to which to connect. Acceptable values are IP address, computer NetBIOS name, or computer DNS name. If an address is not specified, the default is the local computer.
type: string
default: 127.0.0.1
executor:
name: powershell
elevation_required: true
command: netsh interface portproxy add v4tov4 listenport=#{listenport} connectport=#{connectport} connectaddress=#{connectaddress}
cleanup_command: netsh interface portproxy delete v4tov4 listenport=#{listenport}