Metasploit images from Kali Rolling Release, STANDALONE- requires db, AIO- includes postgres
383
last updated: Jan 31, 2025 'working on how best to tag these entries to include both AIO/STANDALONE builds
Images tagged with STANDALONE require DB access from host machine, cloud, or another container, like below:
services:
minisploit:
hostname: minisploit
container_name: minisploit
image: masonville17/mobile_sploit:STANDALONE-latest
cap_add:
- NET_ADMIN
- NET_RAW
- SYS_ADMIN
env_file: ./.env
network_mode: bridge
volumes:
- /var/run/postgresql:/var/run/postgresql
- ./user_scripts:/user_scripts
- msf-data:/home/msf/.msf4
- ./.env:/home/msf/.msf4/environ:rw
privileged: true
security_opt:
- seccomp:unconfined
depends_on:
- db
links:
- db
ports:
- 4444:4444
restart: unless-stopped
db:
hostname: db
container_name: db
image: postgres:16.2-alpine
volumes:
- /var/run/postgresql:/var/run/postgresql
- pg_data:/var/lib/postgresql/data
env_file: ./.env
network_mode: bridge
ports:
- 5432:5432
restart: unless-stopped
volumes:
pg_data:
driver: local
msf-data:
Images tagged with AIO include bundled postgresql service and can be ran with something like:
docker run --name minisploit \
--hostname minisploit \
--cap-add=NET_ADMIN \
--cap-add=NET_RAW \
--cap-add=SYS_ADMIN \
--privileged \
--security-opt seccomp=unconfined \
--env-file ./.env \
--network bridge \
-v /var/run/postgresql:/var/run/postgresql \
-v ./user_scripts:/user_scripts \
-v msf-data:/home/msf/.msf4 \
-v ./.env:/home/msf/.msf4/environ:rw \
-p 4444:4444 \
-p 5432:5432 \
masonville17/mobile_sploit:AIO-latest /bin/bash
If using an env_file, here's some good defaults for starting out with standalone using the above compose file
DATABASE_URL=postgres://postgres@db:5432/msf
POSTGRES_HOST_AUTH_METHOD=trust
POSTGRES_HOST=db
POSTGRES_DB=msf
POSTGRES_USER=postgres
POSTGRES_PORT=5432
POSTGRES_POOL=5
POSTGRES_TIMEOUT=10
Otherwise, if using AIO image, it will look much more like this:
DATABASE_URL=postgres://postgres@localhost:5432/msf
POSTGRES_HOST_AUTH_METHOD=trust
POSTGRES_HOST=localhost
POSTGRES_DB=msf
POSTGRES_USER=postgres
POSTGRES_PASSWORD=
POSTGRES_PORT=5432
POSTGRES_POOL=5
POSTGRES_TIMEOUT=10
Content type
Image
Digest
sha256:7ee8523d5…
Size
983.7 MB
Last updated
over 1 year ago
docker pull masonville17/mobile_sploit