metasploit-framework
Metasploit Framework image (built monthly) with RPC server and database connection setup.
5.9K
This is not the official Metasploit Framework Docker image. It can be found here.
The Metasploit Framework image is updated usually once every three months and doesn't provide environment variables for DB or RPC setup.
sadparad1se/metasploit-framework:latest image is built from the official MSF repository, and only the labels are updatedsadparad1se/metasploit-framework:rpc image automatically tries to connect to the database and starts the RPC serverAlways run the images with the --tty option. Otherwise, the MSF console will keep restarting.
docker run --tty --network host --detach sadparad1se/metasploit-framework:rpc
services:
metasploit:
restart: always
image: sadparad1se/metasploit-framework:rpc
container_name: metasploit
network_mode: host
environment:
METASPLOIT_DB_HOST: 127.0.0.1
METASPLOIT_DB_PORT: 5432
METASPLOIT_DB_NAME: msf
METASPLOIT_DB_USERNAME: msf
METASPLOIT_DB_PASSWORD: msf
tty: true
depends_on:
metasploit_db:
condition: service_healthy
metasploit_db:
restart: always
image: postgres:16
container_name: metasploit-db
environment:
POSTGRES_PASSWORD: msf
POSTGRES_USER: msf
POSTGRES_DB: msf
POSTGRES_HOST_AUTH_METHOD: md5
volumes:
- msf_db_data:/var/lib/postgresql/data
healthcheck:
test: /usr/bin/pg_isready -U $$POSTGRES_USER
interval: 5s
timeout: 10s
retries: 5
ports:
- "127.0.0.1:5432:5432"
volumes:
msf_db_data:
These variables are only to be used with the rpc* tag.
METASPLOIT_LHOSTSets the LHOST global datastore option in msfconsole.
METASPLOIT_LPORTSets the LPORT global datastore option in msfconsole.
METASPLOIT_RPC_HOSTHost to serve the RPC server at.
Default: 127.0.0.1
METASPLOIT_RPC_PORTPort to serve the RPC server at.
Default: 55553
METASPLOIT_RPC_SSLWhether to use SSL for communication with the RPC server.
Default: true
METASPLOIT_RPC_USERNAMEUsername used for RPC.
Default: msf
METASPLOIT_RPC_PASSWORDPassword used for RPC.
Default: root
METASPLOIT_DB_HOSTDatabase host.
Default: 127.0.0.1
METASPLOIT_DB_PORTDatabase port.
Default: 5432
METASPLOIT_DB_NAMEName of the database to connect to.
Default: msf
METASPLOIT_DB_USERNAMEUsername for the database user.
Default: msf
METASPLOIT_DB_PASSWORDPassword for the database user.
Default: msf
METASPLOIT_DB_PREPARED_STATEMENTSWhether to use prepared statements.
Default: true
Set to false if using an external pooler like PgBouncer.
METASPLOIT_DB_ADVISORY_LOCKSWhether to use advisory locks.
Default: true
Set to false if using an external pooler like PgBouncer.
Content type
Image
Digest
sha256:629a2128b…
Size
815.1 MB
Last updated
20 days ago
docker pull sadparad1se/metasploit-framework:rpc