# -*- coding: binary -*- module Msf # Mini-mixin for making SMBUser/SMBPass/SMBDomain regular options vs advanced # Included when the module needs credentials to function module Exploit::Remote::SMB::Authenticated include Msf::Exploit::Remote::SMB def initialize(info = {}) super register_options( [ OptString.new('SMBUser', [ false, 'The username to authenticate as', '']), OptString.new('SMBPass', [ false, 'The password for the specified username', '']), OptString.new('SMBDomain', [ false, 'The Windows domain to use for authentication', 'WORKGROUP']), ], Msf::Exploit::Remote::SMB::Authenticated) end end end