symbol tables appear to be messed up and it doesn't work with async Rust, so will try to refactor the code to be sync and see how it fares
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
version: '3.8'
|
|
services:
|
|
build:
|
|
build:
|
|
context: .devcontainer
|
|
dockerfile: Dockerfile.alpine
|
|
volumes:
|
|
- ${CARGO_HOME}/registry:${CARGO_HOME}/registry
|
|
- /workspaces/sparse:/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 |