Information Gathering & Enumeration
Host discovery, port/service scanning, and surface mapping.
Port & Service Scanning with Nmap
Nmap maps which ports are open on a host, which services/versions are bound to them, and (optionally) the OS and running NSE scripts can flag misconfigurations. It is almost always the first command run against a Boot2Root target because every later step depends on knowing the attack surface.
Directory & Virtual Host Discovery
Web servers often expose admin panels, backups, or APIs that aren't linked from the visible site. Directory/content discovery brute-forces paths against a wordlist to surface them; virtual-host discovery finds additional sites hosted on the same IP under different Host headers.
SMB Enumeration
SMB (ports 139/445) often allows anonymous ('null session') access to list shares, users, and OS/domain info, which is frequently enough to leak credentials, scripts, or a foothold on both Windows and Linux (Samba) boxes.