File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -13,33 +13,33 @@ module Auxiliary::Report
13
13
optionally_include_metasploit_credential_creation
14
14
15
15
def create_cracked_credential ( opts = { } )
16
- begin
16
+ if active_db?
17
17
super ( opts )
18
- rescue NoMethodError => e
18
+ else
19
19
print_error "There does not appear to be a functioning DB, Credential Data will not be saved!"
20
20
end
21
21
end
22
22
23
23
def create_credential ( opts = { } )
24
- begin
24
+ if active_db?
25
25
super ( opts )
26
- rescue NoMethodError => e
26
+ else
27
27
print_error "There does not appear to be a functioning DB, Credential Data will not be saved!"
28
28
end
29
29
end
30
30
31
31
def create_credential_login ( opts = { } )
32
- begin
32
+ if active_db?
33
33
super ( opts )
34
- rescue NoMethodError => e
34
+ else
35
35
print_error "There does not appear to be a functioning DB, Credential Data will not be saved!"
36
36
end
37
37
end
38
38
39
39
def invalidate_login ( opts = { } )
40
- begin
40
+ if active_db?
41
41
super ( opts )
42
- rescue NoMethodError => e
42
+ else
43
43
print_error "There does not appear to be a functioning DB, Credential Data will not be saved!"
44
44
end
45
45
end
You can’t perform that action at this time.
0 commit comments