Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Starting the Metasploit Framework
- General use of Linux Kali
- According to the Policy Network Services Linux Kali , no network services and database services on startup, so there are a few steps that must be taken into account for the implementation and support Metasploit a database .
- 1- Start the PostgreSQL service of Kali
- Metasploit using PostgreSQL as its database so you need to be logged previously .
- service postgresql start
- You can verify that it is running PostgreSQL reviewing the response of ss -ant and making sure that port 5432 is listening.
- State Recv- Q Send - Q Local Address : Port Peer Address : Port
- LISTEN 0 128 ::: 22 ::: *
- LISTEN 0 128 * 22 * : *
- 127.0.0.1:5432 LISTEN 0 128 * : *
- LISTEN 0 128 :: 1:5432 ::: *
- 2- Start the Metasploit in Kali
- With PostgreSQL running, the next step is to run the Metasploit service. The first time the service runs a database user msf3 data and a database called msf3 be created. The service will also run the required RPC and web servers.
- service metasploit start
- 3-Start msfconsole Kali
- Once started services Metasploit and PostgreSQL , you can start msfconsole and verify connectivity database with the following command : db_status
- msfconsole
- msf > db_status
- [ * ] Postgresql connected to msf3
- msf >
- Configure Metasploit to run at startup
- 4- If you prefer PostgreSQL Metasploit and run at startup, you can use update- rc.d to enable services as shown below:
- update- rc.d enable postgresql
- update- rc.d enable metasploit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement