Introduction
Welcome to this hands-on lab focused on Server Message Block (SMB) enumeration and exploitation. SMB is a network file sharing protocol that allows applications on a computer to read and write to files and to request services from server programs in a computer network. Due to its widespread use, it's a common target for attackers.
In this lab, you will step into the shoes of a penetration tester. You'll start with basic network reconnaissance to confirm the target is online. Next, you'll use the powerful scanning tool nmap to discover an open SMB service. Finally, you'll use smbclient to investigate the service, find a misconfiguration that allows anonymous guest access, and retrieve a hidden flag from a public share.
Upon completion, you will understand how to:
- Verify network connectivity using
ping. - Scan for open SMB ports and services using
nmap. - Enumerate and connect to SMB shares using
smbclient. - Exploit a guest access misconfiguration to retrieve files.
Let's begin.



