Using docker-compose:
git clone https://github.com/NullArray/AutoSploit.git
cd Autosploit/Docker
docker-compose run --rm autosploitUsing just Docker:
git clone https://github.com/NullArray/AutoSploit.git
cd Autosploit/Docker
# If you wish to edit default postgres service details, edit database.yml. Should work out of the box
# nano database.yml
docker network create -d bridge haknet
docker run --network haknet --name msfdb -e POSTGRES_PASSWORD=s3cr3t -d postgres
docker build -t autosploit .
docker run -it --network haknet -p 80:80 -p 443:443 -p 4444:4444 autosploit- Launching
Autosploitas a Docker container makes it very easy to use the tool in a hosted cloud environment (AWS, Azure, ...) - Separate
postgresdatabase into individual service for data persistence and potential async updating of the database - Create a small bridge network
haknetso the service discovery is automatic - Launch
postgresandAutosploitcontainer, both linked byhaknet - Autosploit will automatically launch preconfigured
msfconsoleto the externalpostgrescontainer throughhaknettransparent network - Total image size of Kali + Metasploit + Autosploit : 1.75GB
This will enable the Metasploit Framework to talk to the postgres database using its hostname, making it abstract.
A Tor Socks Proxy can also be added to perform transparent proxy when launching exploits (not for reverse shells though, obviously).
docker network create -d bridge haknetAll automagically linked
Launch a vanilla postgres service, linked to haknet
docker run --network haknet --name msfdb -e POSTGRES_PASSWORD=s3cr3t -d postgresLaunch Autosploit.
This Dockerfile will copy the default database config to ~/.msf4/database.yml. You can edit the configuration file database.yml to your liking before building.
Please be aware that the first build will take some time (~10mn)
Building will be faster if done on a hosted server as it benefits from the -grade bandwidth
git clone https://github.com/NullArray/AutoSploit.git
cd Autosploit/Docker
nano database.yml # Exemple configuration should work fine
docker build -t autosploit .
docker run -it --network haknet -p 80:80 -p 443:443 -p 4444:4444 autosploit