Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Install ssh and metasploit under kali linux 2.0

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

The compressed package of kali system downloaded from kali official website (the compressed package of vmware virtual machine that has been installed). Generally speaking, I am used to using ssh client connection.

1. Enable ssh:

Kali linux2.0 has ssh installed, but it does not start automatically, and the configuration file does not allow password login and root login. So we need to modify the configuration file.

1. Modify the configuration file of ssh through vi / etc/ssh/sshd_config

Set PermitRootLogin prohibit-password to PermitRootLogin yes

Remove the # in front of # PasswordAuthentication yes

Then save the file.

2. The next step is to start the ssh service: service ssh start

3. In order to boot ssh and facilitate connection, add this command to the self-boot file: vi / etc/rc.local

2. Enable metasploit:

Kali linux 2. 0 itself is built in metasploit,kali 2. 0 no longer has the metasploit service, so the service metasploit start approach doesn't work.

Starting msf with database support in kali 2.0 is as follows:

# 1 start the postgresql database: / etc/init.d/postgresql start; or service postgresql start first

# 2 initialize the MSF database (key steps! ): msfdb init

# 3 run msfconsole:msfconsole

# 4 check database connection status in msf: db_status

# 5 set the postgresql database to boot: update-rc.d postgresql enable

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report