File tree Expand file tree Collapse file tree 9 files changed +11
-0
lines changed
lib/metasploit/framework/login_scanner
support/shared/examples/metasploit/framework Expand file tree Collapse file tree 9 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ def self.model_name
16
16
creds = double ( 'Metasploit::Framework::CredentialCollection' )
17
17
allow ( creds ) . to receive ( :pass_file )
18
18
allow ( creds ) . to receive ( :username ) . and_return ( 'user' )
19
+ allow ( creds ) . to receive ( :password ) . and_return ( 'pass' )
19
20
allow ( creds ) . to receive ( :user_file )
20
21
allow ( creds ) . to receive ( :userpass_file )
21
22
allow ( creds ) . to receive ( :prepended_creds ) . and_return ( [ ] )
Original file line number Diff line number Diff line change 54
54
allow ( creds ) . to receive ( :pass_file )
55
55
allow ( creds ) . to receive ( :username )
56
56
allow ( creds ) . to receive ( :user_file )
57
+ allow ( creds ) . to receive ( :password )
57
58
allow ( creds ) . to receive ( :userpass_file )
58
59
allow ( creds ) . to receive ( :prepended_creds ) . and_return ( [ ] )
59
60
allow ( creds ) . to receive ( :additional_privates ) . and_return ( [ ] )
Original file line number Diff line number Diff line change 43
43
creds = double ( 'Metasploit::Framework::CredentialCollection' )
44
44
allow ( creds ) . to receive ( :pass_file )
45
45
allow ( creds ) . to receive ( :username )
46
+ allow ( creds ) . to receive ( :password )
46
47
allow ( creds ) . to receive ( :user_file )
47
48
allow ( creds ) . to receive ( :userpass_file )
48
49
allow ( creds ) . to receive ( :prepended_creds ) . and_return ( [ ] )
Original file line number Diff line number Diff line change 51
51
creds = double ( 'Metasploit::Framework::CredentialCollection' )
52
52
allow ( creds ) . to receive ( :pass_file )
53
53
allow ( creds ) . to receive ( :username )
54
+ allow ( creds ) . to receive ( :password )
54
55
allow ( creds ) . to receive ( :user_file )
55
56
allow ( creds ) . to receive ( :userpass_file )
56
57
allow ( creds ) . to receive ( :prepended_creds ) . and_return ( [ ] )
Original file line number Diff line number Diff line change 64
64
creds = double ( 'Metasploit::Framework::CredentialCollection' )
65
65
allow ( creds ) . to receive ( :pass_file )
66
66
allow ( creds ) . to receive ( :username )
67
+ allow ( creds ) . to receive ( :password )
67
68
allow ( creds ) . to receive ( :user_file )
68
69
allow ( creds ) . to receive ( :userpass_file )
69
70
allow ( creds ) . to receive ( :prepended_creds ) . and_return ( [ ] )
Original file line number Diff line number Diff line change 16
16
creds = double ( 'Metasploit::Framework::CredentialCollection' )
17
17
allow ( creds ) . to receive ( :pass_file )
18
18
allow ( creds ) . to receive ( :username )
19
+ allow ( creds ) . to receive ( :password )
19
20
allow ( creds ) . to receive ( :user_file )
20
21
allow ( creds ) . to receive ( :userpass_file )
21
22
allow ( creds ) . to receive ( :prepended_creds ) . and_return ( [ ] )
Original file line number Diff line number Diff line change 69
69
creds = double ( 'Metasploit::Framework::CredentialCollection' )
70
70
allow ( creds ) . to receive ( :pass_file )
71
71
allow ( creds ) . to receive ( :username )
72
+ allow ( creds ) . to receive ( :password )
72
73
allow ( creds ) . to receive ( :user_file )
73
74
allow ( creds ) . to receive ( :userpass_file )
74
75
allow ( creds ) . to receive ( :prepended_creds ) . and_return ( [ ] )
175
176
creds = double ( 'Metasploit::Framework::CredentialCollection' )
176
177
allow ( creds ) . to receive ( :pass_file )
177
178
allow ( creds ) . to receive ( :username )
179
+ allow ( creds ) . to receive ( :password )
178
180
allow ( creds ) . to receive ( :user_file )
179
181
allow ( creds ) . to receive ( :userpass_file )
180
182
allow ( creds ) . to receive ( :prepended_creds ) . and_return ( [ ] )
190
192
allow ( creds ) . to receive ( :pass_file )
191
193
allow ( creds ) . to receive ( :pass_file )
192
194
allow ( creds ) . to receive ( :username )
195
+ allow ( creds ) . to receive ( :password )
193
196
allow ( creds ) . to receive ( :user_file )
194
197
allow ( creds ) . to receive ( :userpass_file )
195
198
allow ( creds ) . to receive ( :prepended_creds ) . and_return ( [ ] )
Original file line number Diff line number Diff line change 15
15
creds = double ( 'Metasploit::Framework::CredentialCollection' )
16
16
allow ( creds ) . to receive ( :pass_file )
17
17
allow ( creds ) . to receive ( :username )
18
+ allow ( creds ) . to receive ( :password )
18
19
allow ( creds ) . to receive ( :user_file )
19
20
allow ( creds ) . to receive ( :userpass_file )
20
21
allow ( creds ) . to receive ( :prepended_creds ) . and_return ( [ ] )
Original file line number Diff line number Diff line change 9
9
creds = double ( 'Metasploit::Framework::CredentialCollection' )
10
10
allow ( creds ) . to receive ( :pass_file )
11
11
allow ( creds ) . to receive ( :username )
12
+ allow ( creds ) . to receive ( :password )
12
13
allow ( creds ) . to receive ( :user_file )
13
14
allow ( creds ) . to receive ( :userpass_file )
14
15
allow ( creds ) . to receive ( :prepended_creds ) . and_return ( [ ] )
You can’t perform that action at this time.
0 commit comments