Files
metasploit-gs/lib/msf/core/exploit/smb/authenticated.rb
T
2013-02-19 12:55:06 -06:00

23 lines
645 B
Ruby

# -*- 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