sparse/docker-compose.yml
2023-09-17 14:07:31 -04:00

53 lines
1.4 KiB
YAML

version: "3.8"
services:
build:
build:
context: .devcontainer
dockerfile: Dockerfile.alpine
volumes:
- ${CARGO_HOME}/registry:/usr/local/cargo/registry
- ./:/workspaces/sparse
working_dir: /workspaces/sparse
entrypoint: /usr/local/cargo/bin/cargo
tty: true
examples_bindshell_target:
build:
context: examples/secure-image
dockerfile: Dockerfile
volumes:
- ./target:/workspaces/sparse/target
command: /workspaces/sparse/target/debug/ex-bind-shell-backdoor
# privileged flag is for iptables, not for the backdoor
privileged: true
examples_bindshell_client:
image: alpine
volumes:
- ./target:/workspaces/sparse/target
command: /workspaces/sparse/target/debug/ex-bind-shell-client examples_bindshell_target:54248
examples_revshell_beacon:
build:
context: examples/secure-image
dockerfile: Dockerfile
volumes:
- ./target:/workspaces/sparse/target
command: /workspaces/sparse/target/debug/ex-revshell-beacon
# privileged flag is for iptables, not for the backdoor
privileged: true
examples_revshell_server:
image: alpine
volumes:
- ./target:/workspaces/sparse/target
expose:
- "54248/udp"
command: /workspaces/sparse/target/debug/ex-revshell-server
tcptest_client:
image: alpine
volumes:
- ./target:/workspaces/sparse/target
command: /workspaces/sparse/target/debug/tcp-target