How it works...

Let's go through a quick note about the service, its exploit, and how it works. Samba is used for printers and file sharing between Linux and Windows machines. This module, by specifying a username containing shell meta characters, can execute arbitrary commands. No authentication is needed to exploit this vulnerability, since this option is used to map usernames prior to authentication!

Get Metasploit Penetration Testing Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.