Penetration Testing 7 commands
Metasploit Framework
World's most used penetration testing framework. Provides information about security vulnerabilities and aids in penetration testing and IDS signature development.
exploitationpentestingpost-exploitationframework
Installation
# Kali Linux (pre-installed)
sudo apt install metasploit-framework
# or
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && chmod 755 msfinstall && ./msfinstallCommands & usage
7 entriesmsfconsoleStart Metasploit console
search <keyword>Search for modules
use <module>Select a module
set RHOSTS <target>Set target host
exploit / runExecute the module
sessions -lList active sessions
msfvenom -p <payload> LHOST=<ip> LPORT=<port> -f <format>Generate payloads
Use cases
ExploitationPayload generationPost-exploitationVulnerability validationSocial engineering