macOS and Linux connection proxy test

Configure basic connection proxy on macOS or Linux using http_proxy or
https_proxy environment variables.
This commit is contained in:
Keith McCammon
2018-10-21 11:31:17 -06:00
parent 4ee921e314
commit 2a1d1fd31b
+34
View File
@@ -0,0 +1,34 @@
---
attack_technique: T1090
display_name: Connection Proxy
atomic_tests:
- name: Connection Proxy
description: |
Enable traffic redirection.
To undo changes made by this test:
unset http_proxy
unset https_proxy
Note that this test may conflict with pre-existing system configuration.
supported_platforms:
- macos
- linux
input_arguments:
proxy_server:
description: Proxy server URL (host:port)
type: url
default: 127.0.0.1:8080
proxy_scheme:
description: Protocol to proxy (http or https)
type: string
default: http
executor:
name: sh
command: |
export #{proxy_scheme}_proxy=#{proxy_server}