Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions modules/utilities/unix/container/docker/docker.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
$images = $secgen_params['images']

# install
include 'docker'
# include 'docker'

# TODO: configure proxy via secgen argument?
#class { 'docker':
# proxy => "http://172.22.0.51:3128",
#}
class { 'docker':
proxy => "http://172.22.0.51:3128",
}


# remove proxy config (it's in the template, and this overrides)
Expand Down Expand Up @@ -47,11 +47,11 @@
# }

# remove proxy config (it's in the template, and this overrides)
exec { 'remove_docker_proxy_conf':
command => 'sudo rm /etc/systemd/system/docker.service.d/*proxy.conf',
path => ['/bin', '/usr/bin', '/sbin', '/usr/sbin'],
onlyif => 'test -d /etc/systemd/system/docker.service.d && ls /etc/systemd/system/docker.service.d/*proxy.conf',
}
# exec { 'remove_docker_proxy_conf':
# command => 'sudo rm /etc/systemd/system/docker.service.d/*proxy.conf',
# path => ['/bin', '/usr/bin', '/sbin', '/usr/sbin'],
# onlyif => 'test -d /etc/systemd/system/docker.service.d && ls /etc/systemd/system/docker.service.d/*proxy.conf',
# }

# download (pull) a set of images
$images.each |$image| {
Expand Down
6 changes: 3 additions & 3 deletions scenarios/ctf/container_escape.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

<system>
<system_name>desktop</system_name>
<base distro="Debian 9" type="desktop" name="KDE"/>
<base distro="Debian 12" type="desktop" name="KDE"/>

<input into_datastore="IP_addresses">
<value>172.16.0.2</value>
Expand Down Expand Up @@ -151,7 +151,7 @@
<utility module_path=".*/docker">
<input into="images">
<value>ubuntu:xenial</value>
<value>debian:stretch</value>
<value>debian:bookworm</value>
<value>busybox</value>
</input>
</utility>
Expand Down Expand Up @@ -188,7 +188,7 @@

<system>
<system_name>chroot_esc_server</system_name>
<base distro="Debian 9" type="desktop" name="KDE"/>
<base distro="Debian 12" type="desktop" name="KDE"/>

<utility module_path=".*/handy_cli_tools"/>
<utility module_path=".*/nmap"/>
Expand Down