A network security engineer teaches you: How to use Kali Linux for Metasploit******? 【Introduction】

Metasploit*** Test Framework Foundation (1)
1. Background Introduction
Metasploit is a vulnerability framework. Its full name is The Metasploit Framework, or MSF for short. As the most popular tool in the world, Metasploit is not only because of its convenience and power, but also because of its framework. It allows users to develop their own vulnerability scripts for testing. How powerful is Metasploit (msf)? Let us study together next!
2. Resource equipment
1. One virtual machine with Kali Linux installed;
2. One Xiaobai ready to go.
3. Strategic arrangement
3.1 Use the graphical interface to start the Metasploit (msf) framework in Kali Linux. It is recommended for Xiaobai to use it, as shown in the figure below.
Steps: Search msf in the search box, select metasploit framework and click to enter.
A network security engineer teaches you: How to use Kali Linux for Metasploit******?  【Introduction】
3.2 Successfully use the graphical interface to start the metasploit (msf)*** framework, as shown in the figure below, the version information of the metasploit*** framework can be obtained.
A network security engineer teaches you: How to use Kali Linux for Metasploit******?  【Introduction】
3.3 Start metasploit (msf)*** framework using secret command line mode, as shown in the figure below.
Command: msfconsole
A network security engineer teaches you: How to use Kali Linux for Metasploit******?  【Introduction】
3.4 metasploit (msf)*** framework is starting, as shown in the figure below.
A network security engineer teaches you: How to use Kali Linux for Metasploit******?  【Introduction】
3.5 The metasploit (msf)*** framework started successfully, as shown in the figure below.
A network security engineer teaches you: How to use Kali Linux for Metasploit******?  【Introduction】
A network security engineer teaches you: How to use Kali Linux for Metasploit******?  【Introduction】

3.6 Use the help command to obtain the operation commands of the metasploit (msf)*** framework, as shown in the figure below.
Command: help
A network security engineer teaches you: How to use Kali Linux for Metasploit******?  【Introduction】
3.7 The main command information of metasploit (msf)*** framework is shown in the figure below.
A network security engineer teaches you: How to use Kali Linux for Metasploit******?  【Introduction】
3.8 The banner command, as shown in the figure below.
banner: Use of Display an awesome metasploit banner
A network security engineer teaches you: How to use Kali Linux for Metasploit******?  【Introduction】
3.9 color command, as shown in the figure below.
color: Switch color
A network security engineer teaches you: How to use Kali Linux for Metasploit******?  【Introduction】
3.10 Use the cd command, as shown in the figure below.
cd: change the current working directory
A network security engineer teaches you: How to use Kali Linux for Metasploit******?  【Introduction】
3.11 exit command, as shown in the figure below.
exit: Exit the command line
A network security engineer teaches you: How to use Kali Linux for Metasploit******?  【Introduction】
3.12 Restart the metasploit (msf)*** framework, as shown in the figure below.
A network security engineer teaches you: How to use Kali Linux for Metasploit******?  【Introduction】
3.13 Use metasploit (msf) command parameters to view the version information of metasploit (msf)*** framework, as shown in the figure below.
Command: msfconsole -v
A network security engineer teaches you: How to use Kali Linux for Metasploit******?  【Introduction】
3.14 Use metasploit (msf) command parameters to view the help information of metasploit (msf)*** framework, as shown in the figure below.
Command: msfconsole -h
A network security engineer teaches you: How to use Kali Linux for Metasploit******?  【Introduction】
Remarks The basic command overview is as follows:
back: move backward from the current situation
banner: Display an awesome metasploit banner
Cd: change the current working directory
Color: switch the color
connect (remote connection): with the host Communication
edit: edit the
exit of the current module with $VISUAL or $EDITOR (exit the command line): exit the console
get (get variable): get the value of a specific context variable
getg (get the variable globally): get the value of a global variable
go_pro: start Metasploit’s web graphical user interface
grep: the output of another grep command
help (help): help menu
info (get module information): display information about one or more modules
irb: enter irb script mode
jobs: display and Management position
kill (end process): end a process
load (load): load a framework plugin
loadpath: search and load from a path module
makerc: save the command entered into a file since the beginning
popm: pop the latest module from the stack And make it active
previous: put the previously loaded module as the current module
pushm: push the active or module list in the module stack
quit (exit the console): exit the console
reload_all Reloads: all modules from all defined module paths
rename_job: rename the job
resource: run storage commands in the file
route: route traffic through sessions
save: store data actively
search (search for module keywords such as exp): search for the name and description of the module
sessions (session function): dump the list of sessions and display related sessions information
set (setting parameter): set the value of a specific context variable
setg (global setting parameter): set the value of a global variable
show (display parameter module): a given type of display module or all modules
sleep: do nothing right the specified number of seconds
spool: write console output to a file and screen
threads: to view and manipulate the background thread
unload (uninstall a plug-in): unloading a plugin framework
unset (cancel a parameter): unset one or more specific The context variable
unsetg (cancel a certain global setting parameter): cancel the use of one or more global variables
(use a module): select the module by name
version (view version information): the displayed framework and console library version numbers
PS: This is the end of the study, thank you for watching, for more dry goods, please continue to pay attention to this number!
Hard work and originality, everyone, please remember to praise and pay attention! You can also search: Kali and programming, learn more Kali Linux*** and white hat programming skills!
Click me to learn more Kali Linux*** testing and network*** practical skills! Please add link description

Guess you like

Origin blog.51cto.com/14308022/2534777