adding a bind shell that can allow for more practice with future features such as multiple transports, encryption, transferring files, and a more robust client interface
47 lines
1.3 KiB
YAML
47 lines
1.3 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
|