Skip to content

Instantly share code, notes, and snippets.

@pich4ya
Created July 26, 2018 06:05
Show Gist options
  • Save pich4ya/e7be40000c4fe7e487460dbebf1832fb to your computer and use it in GitHub Desktop.
Save pich4ya/e7be40000c4fe7e487460dbebf1832fb to your computer and use it in GitHub Desktop.
Setup Metasploit Database in Kali Docker Container
$ apt update && apt -y upgrade
$ apt install metasploit-framework
$ service postgresql start
Starting PostgreSQL 10 database server: main.
$ msfdb init
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
[+] Starting database
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
[+] Creating database user 'msf'
[+] Creating databases 'msf'
[+] Creating databases 'msf_test'
[+] Creating configuration file '/usr/share/metasploit-framework/config/database.yml'
[+] Creating initial database schema
$ msfconsole
msf > db_status
[*] postgresql connected to msf
msf >
@meetarun-m
Copy link

I am also facing the same issue, how did you resolve this. Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment