A bento (弁当, bentō) is a single-portion take-out or home-packed meal of Japanese origin. Bento Toolkit is a simple and minimal docker container for penetration testers and CTF players.
It has the portability of Docker with the addition of X, so you can also run GUI application (like burp).
Prerequisites
To run bento you need Docker and a Xorg server on your host machine. On Windows you can use vcxsrv, xming, cygwin.
We tested this config with vcxsrv and cygwin.
vcxsrv: just start XLaunch and follow the setupcygwin: you have to install xorg first, then start XLaunch.Installation With Docker
git clone https://github.com/higatowa/bento && cd ./bentoauthorized_keys, containing your public key, in ./keys.docker build -t bento .docker run --cap-add=NET_ADMIN --device /dev/net/tun --sysctl net.ipv6.conf.all.disable_ipv6=0 -p 22:22 -d bentossh -R 6000:localhost:6000 -L 8080:localhost:8080 tamago@bentoipFor GUI tools just run them from the terminal:
Installation With Docker Compose
To be able to quickly deploy multiple instances of bento we decided to write a docker-compose file.
This isn’t only for style but we also added a collaborative pad, codimd.
During our work we have the need to share informations on the target so we decided to implement in bento the solution we use daily.
The pad is exposed by default on port 3000.
Replace the step 3 and 4 of Installation with Docker chapter with:
docker-compose build and docker-compose up
in the project directory.
If you wanto to deploy only bento without codimd:
docker-compose up bento
Known Issues
/home/tamago/burp_fix/burp_fix.sh as root and it will fix it.Current Tools & Utilities
We don’t like bloated distros so we are keeping this container as minimal as possible, adding only tools useful for web and infrastructure PT and CTF but, remember, we are always open to suggestions.
Here is a list of tools and utilities:
VirtualBox is a free, open-source, cross-platform virtualization application maintained by Oracle. It lets you run multiple…
PostgreSQL (also called Postgres) is a free, open-source, object-relational database management system with a strong reputation…
VMware Workstation Player is a mature, stable virtualization platform that lets you run multiple isolated operating…
A properly configured firewall is one of the most important layers of security for any internet-facing server. UFW (Uncomplicated Firewall) is a user-friendly front-end for managing iptables rules that ships pre-installed on Ubuntu. Its defaults are sensible: block all incoming connections, allow all outgoing connections. No outside traffic reaches your server unless you explicitly open a port. This guide covers how to configure a UFW firewall on Ubuntu 18.04, from setting default policies and application profiles to writing allow and deny rules for specific ports, IPs, and subnets. <strong>Prerequisite:</strong> You need sudo access. Configure UFW Firewall on Ubuntu: Defaults, SSH, and Application Profiles If UFW is not installed, add it with: bashsudo…
UFW (Uncomplicated Firewall) is a user-friendly front-end for managing iptables rules on Ubuntu. It ships pre-installed…
Apache Cassandra is a free, open-source NoSQL database designed for high availability and linear scalability with…