Penetration testing
Metasploit for Beginners: Modules, Payloads and First Steps

The Metasploit Framework is an open-source collection of exploits and tools for penetration testing, maintained by Rapid7 and included in Kali Linux. It saves testers from writing every exploit by hand. Used without understanding, it teaches very little, so this guide focuses on how it is organized and how to use it carefully. Use it only against your own lab or with written authorization.
The Module Types
- Exploit: code that takes advantage of a specific vulnerability
- Payload: what runs on the target after a successful exploit, such as a command shell or Meterpreter
- Auxiliary: scanners, fuzzers and other tools that do not deliver a payload
- Post: actions after access, such as gathering system information
- Encoders and evasion: change how payloads look; mostly beyond beginner needs
The Basic Workflow in Msfconsole
- Start the console with
msfconsole - Find a module:
searchfollowed by a service or vulnerability name - Select it:
usefollowed by the module name or number - See what it needs:
show optionsandinfo - Set values:
set RHOSTSto the target address,set LHOSTto your Kali address for payloads that connect back - Run it:
runorexploit
Read the module's information before running it. Some modules can crash services, and the description says so.
Payloads: Staged and Stageless
A reverse payload makes the target connect back to you; a bind payload opens a port on the target for you to connect to. Staged payloads send a small first piece that downloads the rest; stageless payloads send everything at once. In a lab, start with the default payload the module suggests.
Meterpreter
Meterpreter is Metasploit's advanced payload. It runs in memory and offers commands to explore the file system, see system information, move files and more. In a real test, use only what the rules of engagement allow, and record everything you do.
Use the Database
Metasploit can store hosts, services and findings in a database. Running Nmap through it (db_nmap) or importing Nmap XML output keeps your results organized across a long test. See Nmap for beginners.
A Good First Lab
Metasploitable 2, a deliberately vulnerable Linux machine, has many services with known exploits. Scan it with Nmap, research each service version, find a matching module, and exploit it. Then write up what you did and how the administrator should fix it. Our home lab guide shows the setup.
Do Not Stop at Metasploit
Professional tests use Metasploit for some steps and manual techniques for many others, especially in web applications and Active Directory. Understand what each module does, and be able to explain the vulnerability without the tool. See penetration testing phases explained.
Learning with an Instructor
Metasploit is taught in our network and Active Directory course alongside Nmap, Nessus and Wireshark, before moving to Active Directory with NetExec, BloodHound and Impacket.
Want to try Metasploit with guidance? Book free trial classes. Contact us or call +91 86868 92922.
Where This Guide Fits in Our Training
- VAPT Training in Hyderabad: the 12-week VAPT Track: application, network and Active Directory testing, and the reports
- Penetration Testing Course in Hyderabad: the VAPT Track, from fundamentals to professional testing
- Cyber Security Course with Practical Labs in Hyderabad: how the labs work and what you practise in each class
Courses Mentioned in This Guide
More Guides
Nmap for Beginners: Essential Scans Explained
Learn Nmap step by step: host discovery, port and version scans, default scripts, timing and saving output, with the commands explained and where to practice legally.
Read the guide →Kali Linux for Beginners: Install, Set Up and First Steps
Start with Kali Linux the right way: what it is, how to install it in a virtual machine, first setup steps, the tool categories, and the Linux skills to learn first.
Read the guide →Nessus for Beginners: Vulnerability Scanning Done Properly
How to use Nessus for vulnerability scanning: editions, scan types, credentialed scans, reading severity, removing false positives and reporting results.
Read the guide →Pivoting in Penetration Testing Explained for Beginners
What pivoting means in penetration testing: single and double pivots, SSH port forwarding, SOCKS proxies, a safe three-machine lab and how defenders detect it.
Read the guide →Start Your Cyber Security Career
Talk to a counselor, choose the right course for your goals, and get the fee, syllabus and next batch dates in writing.
- Call+91 86868 92922
Open 7 days: Mon to Fri 8:30 AM to 8:30 PM IST
Sat and Sun 10 AM to 6 PM IST - Emailinfo@hackingtrainer.com
- VisitGround Floor, G-3, Sri Venkatasai Nest, Kallu Compound Road, Nagarjuna Nagar Colony, Yella Reddy Guda, Ameerpet, Hyderabad – 500073
Open in Google Maps