File tree Expand file tree Collapse file tree 6 files changed +12
-0
lines changed
lib/metasploit/framework/login_scanner
support/shared/examples/metasploit/framework/login_scanner Expand file tree Collapse file tree 6 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 55
55
allow ( creds ) . to receive ( :username )
56
56
allow ( creds ) . to receive ( :user_file )
57
57
allow ( creds ) . to receive ( :userpass_file )
58
+ allow ( creds ) . to receive ( :prepended_creds ) . and_return ( [ ] )
59
+ allow ( creds ) . to receive ( :additional_privates ) . and_return ( [ ] )
58
60
allow ( creds ) . to receive ( :additional_publics ) . and_return ( [ ] )
59
61
ftp_scanner . cred_details = creds
60
62
end
Original file line number Diff line number Diff line change 45
45
allow ( creds ) . to receive ( :username )
46
46
allow ( creds ) . to receive ( :user_file )
47
47
allow ( creds ) . to receive ( :userpass_file )
48
+ allow ( creds ) . to receive ( :prepended_creds ) . and_return ( [ ] )
49
+ allow ( creds ) . to receive ( :additional_privates ) . and_return ( [ ] )
48
50
allow ( creds ) . to receive ( :additional_publics ) . and_return ( [ ] )
49
51
login_scanner . cred_details = creds
50
52
end
Original file line number Diff line number Diff line change 53
53
allow ( creds ) . to receive ( :username )
54
54
allow ( creds ) . to receive ( :user_file )
55
55
allow ( creds ) . to receive ( :userpass_file )
56
+ allow ( creds ) . to receive ( :prepended_creds ) . and_return ( [ ] )
57
+ allow ( creds ) . to receive ( :additional_privates ) . and_return ( [ ] )
56
58
allow ( creds ) . to receive ( :additional_publics ) . and_return ( [ ] )
57
59
login_scanner . cred_details = creds
58
60
end
Original file line number Diff line number Diff line change 66
66
allow ( creds ) . to receive ( :username )
67
67
allow ( creds ) . to receive ( :user_file )
68
68
allow ( creds ) . to receive ( :userpass_file )
69
+ allow ( creds ) . to receive ( :prepended_creds ) . and_return ( [ ] )
70
+ allow ( creds ) . to receive ( :additional_privates ) . and_return ( [ ] )
69
71
allow ( creds ) . to receive ( :additional_publics ) . and_return ( [ ] )
70
72
ssh_scanner . cred_details = creds
71
73
end
Original file line number Diff line number Diff line change 18
18
allow ( creds ) . to receive ( :username )
19
19
allow ( creds ) . to receive ( :user_file )
20
20
allow ( creds ) . to receive ( :userpass_file )
21
+ allow ( creds ) . to receive ( :prepended_creds ) . and_return ( [ ] )
22
+ allow ( creds ) . to receive ( :additional_privates ) . and_return ( [ ] )
21
23
allow ( creds ) . to receive ( :additional_publics ) . and_return ( [ ] )
22
24
login_scanner . cred_details = creds
23
25
end
Original file line number Diff line number Diff line change 17
17
allow ( creds ) . to receive ( :username )
18
18
allow ( creds ) . to receive ( :user_file )
19
19
allow ( creds ) . to receive ( :userpass_file )
20
+ allow ( creds ) . to receive ( :prepended_creds ) . and_return ( [ ] )
21
+ allow ( creds ) . to receive ( :additional_privates ) . and_return ( [ ] )
20
22
allow ( creds ) . to receive ( :additional_publics ) . and_return ( [ ] )
21
23
login_scanner . cred_details = creds
22
24
end
You can’t perform that action at this time.
0 commit comments