Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Nati Cohen committed Feb 21, 2018
1 parent e15c10d commit 37c61eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
5 changes: 0 additions & 5 deletions levels/03_pivot_root/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ After successfully jailing a process with [chroot()](https://docs.python.org/2/l
```bash
sudo python rd.py run -i ubuntu /bin/bash

# Get breakout.py
echo nameserver 8.8.8.8 > /etc/resolv.conf
apt-get update && apt-get install -y python wget
wget https://raw.githubusercontent.com/Fewbytes/rubber-docker/master/levels/03_pivot_root/breakout.py

# Check that you are inside chroot
ls /

Expand Down
7 changes: 4 additions & 3 deletions packer/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,13 @@ popd
# Fetch images
mkdir -p /workshop/images
pushd /workshop/images
export_image ubuntu:trusty ubuntu /bin/bash -c 'apt-get update && apt-get install -y python stress'
export_image ubuntu:trusty ubuntu-export /bin/bash -c 'apt-get update && apt-get install -y python stress'
export_image busybox busybox /bin/true
cp /workshop/rubber-docker/levels/03_pivot_root/breakout.py ./
chmod +x breakout.py
tar rf ubuntu.tar breakout.py
rm breakout.py
tar cf ubuntu.tar breakout.py
tar Af ubuntu.tar ubuntu-export.tar
rm breakout.py ubuntu-export.tar
popd

# On boot, pull the repo and build the C extension
Expand Down

0 comments on commit 37c61eb

Please sign in to comment.