this just involved a better understanding of the data types provided by libnl and some refactoring to make querying as a user of the libnl library easier
35 lines
927 B
YAML
35 lines
927 B
YAML
version: '3.8'
|
|
services:
|
|
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 |