Module: Msf::Exploit::Remote::SMB::Client::Authenticated
- Includes:
- Kerberos::ServiceAuthenticator::Options, Kerberos::Ticket::Storage, Msf::Exploit::Remote::SMB::Client
- Defined in:
- lib/msf/core/exploit/remote/smb/client/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::Client
CONST, DCERPCClient, DCERPCPacket, DCERPCResponse, DCERPCUUID, NDR, SIMPLE, XCEPT
Instance Attribute Summary
Attributes included from Msf::Exploit::Remote::SMB::Client
Attributes included from Tcp
Instance Method Summary collapse
Methods included from Kerberos::ServiceAuthenticator::Options
Methods included from Kerberos::Ticket::Storage
#kerberos_storage_options, #kerberos_ticket_storage, store_ccache
Methods included from Msf::Exploit::Remote::SMB::Client
#connect, #domain, #domain_username_split, #smb_create, #smb_direct, #smb_enumprinters, #smb_enumprintproviders, #smb_file_exist?, #smb_file_rm, #smb_fingerprint, #smb_fingerprint_windows_lang, #smb_fingerprint_windows_sp, #smb_hostname, #smb_lanman_netshareenumall, #smb_login, #smb_lookup_share_type, #smb_netshareenumall, #smb_netsharegetinfo, #smb_open, #smb_peer_lm, #smb_peer_os, #smb_srvsvc_netshareenumall, #smb_srvsvc_netsharegetinfo, #smbhost, #splitname, #unicode
Methods included from Tcp
#chost, #cleanup, #connect, #connect_timeout, #cport, #disconnect, #handler, #lhost, #lport, #peer, #print_prefix, #proxies, #rhost, #rport, #set_tcp_evasions, #shutdown, #ssl, #ssl_cipher, #ssl_verify_mode, #ssl_version
Instance Method Details
#initialize(info = {}) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/msf/core/exploit/remote/smb/client/authenticated.rb', line 13 def initialize(info = {}) super ( [ OptString.new('SMBUser', [ false, 'The username to authenticate as', ''], fallbacks: ['USERNAME']), OptString.new('SMBPass', [ false, 'The password for the specified username', ''], fallbacks: ['PASSWORD']), OptString.new('SMBDomain', [ false, 'The Windows domain to use for authentication', '.'], fallbacks: ['DOMAIN']), ], Msf::Exploit::Remote::SMB::Client::Authenticated) ( [ *(protocol: 'SMB'), *(protocol: 'SMB', auth_methods: Msf::Exploit::Remote::AuthOption::SMB_OPTIONS), ], Msf::Exploit::Remote::SMB::Client::Authenticated ) end |