replaced dev container Dockerfile with one which uses Ubuntu instead of Alpine. The Docker in Docker feature only works on Ubuntu, not Debian or Alpine, and the LLDB extension to enable debugging only supports Debian/Ubuntu
45 lines
1.2 KiB
YAML
45 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 build"
|
|
|
|
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 |