Module: Msf::Exploit::Remote::SMB::Authenticated

Includes:
Msf::Exploit::Remote::SMB
Included in:
Psexec
Defined in:
lib/msf/core/exploit/smb/authenticated.rb

Overview

Mini-mixin for making SMBUser/SMBPass/SMBDomain regular options vs advanced Included when the module needs credentials to function

Constant Summary

Constants included from Msf::Exploit::Remote::SMB

CONST, DCERPCClient, DCERPCPacket, DCERPCResponse, DCERPCUUID, NDR, SIMPLE, XCEPT

Instance Attribute Summary

Attributes included from Msf::Exploit::Remote::SMB

#simple

Instance Method Summary collapse

Methods included from Msf::Exploit::Remote::SMB

#connect, #domain, #domain_username_split, #smb_create, #smb_direct, #smb_enumprinters, #smb_enumprintproviders, #smb_file_exist?, #smb_file_rm, #smb_fingerprint, #smb_hostname, #smb_login, #smb_open, #smb_peer_lm, #smb_peer_os, #smbhost, #splitname, #unicode

Methods included from Tcp

#chost, #cleanup, #connect, #connect_timeout, #cport, #disconnect, #handler, #lhost, #lport, #proxies, #rhost, #rport, #set_tcp_evasions, #ssl, #ssl_version

Instance Method Details

#initialize(info = {}) ⇒ Object


11
12
13
14
15
16
17
18
19
# File 'lib/msf/core/exploit/smb/authenticated.rb', line 11

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