当前位置:网站首页>MSF tips

MSF tips

2022-06-09 09:51:00 Always a teenager

Today, let's continue to introduce the relevant knowledge of penetration testing , The main content of this paper is MSF Use tips .

disclaimer :
The content introduced in this article is only for learning and communication , It is strictly prohibited to use the technology in the text for illegal acts , Otherwise, you will bear all serious consequences !
Again : It is forbidden to perform penetration tests on unauthorized equipment !

One 、MSF Command line on

MSF Can be in Kali Linux In the system, it is opened directly through the graphical page . however , If we want to start it manually MSF, Then we must first open MSF Dependence ——postgresql.
In high version MSF in , Even if we don't open postgresql,MSF It can also start normally , But it will lose the function of recording .
postgresql The start command of is as follows :

systemctl start postgresql 

In the open postgresql After the database , We can execute the order :

msfconsole

To open MSF Interactive pages for .

Two 、MSF sign out

We're entering MSF After a module of , If you want to exit the module , Can execute orders :

back

Never carry out orders :

exit

This command will cause the entire MSF Interactive page .

3、 ... and 、MSF Database import and export

MSF Support to save the results of the previous scan in the database , And support data import and export .
stay MSF Under interactive page , Carry out orders :

db_export -f xml /root/bak.xml

The data content can be divided into XML Format export , among -f Specifies the format of the export file , We have no choice but to xml Out of format , You can also choose pwdump The format of .
The execution result of the above command is as follows :
 Insert picture description here
after , We delete one host Content , Then re import the data we just exported , See the effect .
 Insert picture description here
MSF The data import command for is as follows :

db_import /root/bak.xml

The execution result of this command is as follows :
 Insert picture description here
As can be seen from the above figure , We can use database import to restore the original content .

Four 、MSF Session settings

MSF After using the module to establish a link to the target host , We can execute exit Command exit , however , Although we exited the interactive page , But in fact MSF No session interruption .
We carry out orders :

sessions

You can view the current and MSF Device linked sessions , As shown below :
 Insert picture description here
If we want to enter a session again , Can execute orders :

sessions -i 【 Session number 】

that will do , The above command is executed as follows :
 Insert picture description here
Originality is not easy. , Reprint please explain the source :https://blog.csdn.net/weixin_40228200

原网站

版权声明
本文为[Always a teenager]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/160/202206090922286555.html