As we all know, since the launch of the rolling version on the kali official website in 2016.1, it has attracted praise from the industry! This is also the case for new users who may encounter many problems! I would like to summarize the problems I have encountered and learn from them for reference only! 0X1: familiar with metasploit services, but there are also many descriptions of its service startup and configuration on the Internet.
As we all know, since the launch of the rolling version on the kali official website in 2016.1, it has attracted praise from the industry! This is also the case for new users who may encounter many problems! I would like to summarize the problems I have encountered and learn from them for reference only! 0X1: familiar with metasploit services, but there are also many descriptions of its service startup and configuration on the Internet.
As we all know, since the launch of the rolling version on the kali official website in 2016.1, it has attracted praise from the industry! This is also the case for new users who may encounter many problems! I would like to summarize the problems I have encountered and learn from them for reference only!0X1: familiar with metasploit services, but there are also a lot of descriptions about its service startup and configuration on the Internet. Unfortunately, these posts are too early, so they do not work for the rolling version; next, let's introduce metasploit services of kali2.0 and above (including kali2.0. 0X2: In kali, metasploit uses postgresql as its database by default. To enable metasploit, you must first open the postgresql database. The command is as follows: service postgresql start (or:/etc/init. d/postgresql start); because all services in kali are not the default boot self-start, so you want to boot self-start, the command is as follows: update-rc.d postgresql enable1_x3: The first time you open the Database Service to initialize, the command is as follows: msfdb init result is as follows: (default database name: msf, msf_test; User name: msf; password is blank by default)
0X4: The next step is to start metasploit. After kali2.0, you only need to start the msf console. The command is as follows: msfconsole. (The command before kali2.0 is like this: service metasploit start; for 2.0 or later, I will test it myself !!!) See the figure below:
0X5: Check the connection status with the database on the msf console. The command is db_status. If yes, the connection is successful!
0X6: small Editor message: Large Internet, we view a large amount of information every day, but you have considered those useful, valuable, and correct, there is no out-of-date information (for computers, information is more time-sensitive); so when you often play, you will keep up with the information trend, not be out, but try it yourself, think and solve the problem!