46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
version: '3.8'
|
|
services:
|
|
build:
|
|
build:
|
|
context: .devcontainer
|
|
dockerfile: Dockerfile.alpine
|
|
volumes:
|
|
- ${CARGO_HOME}/registry:${CARGO_HOME}/registry
|
|
- ${PWD}:/sparse
|
|
working_dir: /sparse
|
|
entrypoint: /usr/local/cargo/bin/cargo
|
|
tty: true
|
|
|
|
examples_bindshell_target:
|
|
build:
|
|
context: examples/secure-image
|
|
dockerfile: Dockerfile
|
|
volumes:
|
|
- ./target:/backdoor
|
|
command: /backdoor/release/ex-bind-shell-backdoor
|
|
# privileged flag is for iptables, not for the backdoor
|
|
privileged: true
|
|
|
|
examples_bindshell_client:
|
|
image: alpine
|
|
volumes:
|
|
- ./target:/backdoor
|
|
command: /backdoor/release/ex-bind-shell-client examples_bindshell_target:54248
|
|
|
|
examples_revshell_beacon:
|
|
build:
|
|
context: examples/secure-image
|
|
dockerfile: Dockerfile
|
|
volumes:
|
|
- ./target:/bacodkkr
|
|
command: /backdoor/release/ex-revshell-beacon
|
|
# privileged flag is for iptables, not for the backdoor
|
|
privileged: true
|
|
|
|
examples_revshell_server:
|
|
image: alpine
|
|
volumes:
|
|
- ./target:/backdoor
|
|
expose:
|
|
- '54248/udp'
|
|
command: /backdoor/release/ex-revshell-server |