Skip to content

Commit ecf246b

Browse files
committed
Fix more prepended_creds issues
1 parent 9efa842 commit ecf246b

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

spec/lib/metasploit/framework/login_scanner/ftp_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@
5555
allow(creds).to receive(:username)
5656
allow(creds).to receive(:user_file)
5757
allow(creds).to receive(:userpass_file)
58+
allow(creds).to receive(:prepended_creds).and_return([])
59+
allow(creds).to receive(:additional_privates).and_return([])
5860
allow(creds).to receive(:additional_publics).and_return([])
5961
ftp_scanner.cred_details = creds
6062
end

spec/lib/metasploit/framework/login_scanner/mssql_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
allow(creds).to receive(:username)
4646
allow(creds).to receive(:user_file)
4747
allow(creds).to receive(:userpass_file)
48+
allow(creds).to receive(:prepended_creds).and_return([])
49+
allow(creds).to receive(:additional_privates).and_return([])
4850
allow(creds).to receive(:additional_publics).and_return([])
4951
login_scanner.cred_details = creds
5052
end

spec/lib/metasploit/framework/login_scanner/smb_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
allow(creds).to receive(:username)
5454
allow(creds).to receive(:user_file)
5555
allow(creds).to receive(:userpass_file)
56+
allow(creds).to receive(:prepended_creds).and_return([])
57+
allow(creds).to receive(:additional_privates).and_return([])
5658
allow(creds).to receive(:additional_publics).and_return([])
5759
login_scanner.cred_details = creds
5860
end

spec/lib/metasploit/framework/login_scanner/ssh_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@
6666
allow(creds).to receive(:username)
6767
allow(creds).to receive(:user_file)
6868
allow(creds).to receive(:userpass_file)
69+
allow(creds).to receive(:prepended_creds).and_return([])
70+
allow(creds).to receive(:additional_privates).and_return([])
6971
allow(creds).to receive(:additional_publics).and_return([])
7072
ssh_scanner.cred_details = creds
7173
end

spec/lib/metasploit/framework/login_scanner/telnet_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
allow(creds).to receive(:username)
1919
allow(creds).to receive(:user_file)
2020
allow(creds).to receive(:userpass_file)
21+
allow(creds).to receive(:prepended_creds).and_return([])
22+
allow(creds).to receive(:additional_privates).and_return([])
2123
allow(creds).to receive(:additional_publics).and_return([])
2224
login_scanner.cred_details = creds
2325
end

spec/support/shared/examples/metasploit/framework/login_scanner/ntlm.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
allow(creds).to receive(:username)
1818
allow(creds).to receive(:user_file)
1919
allow(creds).to receive(:userpass_file)
20+
allow(creds).to receive(:prepended_creds).and_return([])
21+
allow(creds).to receive(:additional_privates).and_return([])
2022
allow(creds).to receive(:additional_publics).and_return([])
2123
login_scanner.cred_details = creds
2224
end

0 commit comments

Comments
 (0)