Skip to content

Commit 5fac0a6

Browse files
committed
Land rapid7#5995, advanced options on Metasploit::Framework::LoginScanner::SMB
2 parents 32dbb8c + 2b7ffdc commit 5fac0a6

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

modules/auxiliary/scanner/smb/smb_login.rb

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ def initialize
5555
register_options(
5656
[
5757
Opt::Proxies,
58-
OptString.new('SMBPass', [ false, "SMB Password" ]),
59-
OptString.new('SMBUser', [ false, "SMB Username" ]),
60-
OptString.new('SMBDomain', [ false, "SMB Domain", '' ]),
6158
OptBool.new('PRESERVE_DOMAINS', [ false, "Respect a username that contains a domain name.", true ]),
6259
OptBool.new('RECORD_GUEST', [ false, "Record guest-privileged random logins to the database", false ])
6360
], self.class)
@@ -79,6 +76,16 @@ def run_host(ip)
7976
send_delay: datastore['TCP::send_delay'],
8077
framework: framework,
8178
framework_module: self,
79+
smb_verify_signature: datastore['SMB::VerifySignature'],
80+
use_ntlmv2: datastore['NTLM::UseNTLMv2'],
81+
use_ntlm2_session: datastore['NTLM::UseNTLM2_session'],
82+
send_lm: datastore['NTLM::SendLM'],
83+
use_lmkey: datastore['NTLM::UseLMKey'],
84+
send_ntlm: datastore['NTLM::SendNTLM'],
85+
smb_native_os: datastore['SMB::Native_OS'],
86+
smb_native_lm: datastore['SMB::Native_LM'],
87+
send_spn: datastore['NTLM::SendSPN'],
88+
host: ip
8289
)
8390

8491
bogus_result = @scanner.attempt_bogus_login(domain)

0 commit comments

Comments
 (0)