File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -12,34 +12,43 @@ module Auxiliary::Report
12
12
13
13
optionally_include_metasploit_credential_creation
14
14
15
+ def db_warning_given?
16
+ if @warning_issued
17
+ true
18
+ else
19
+ @warning_issued = true
20
+ false
21
+ end
22
+ end
23
+
15
24
def create_cracked_credential ( opts = { } )
16
25
if active_db?
17
26
super ( opts )
18
- else
27
+ elsif ! db_warning_given?
19
28
vprint_warning ( 'No active DB -- Credential data will not be saved!' )
20
29
end
21
30
end
22
31
23
32
def create_credential ( opts = { } )
24
33
if active_db?
25
34
super ( opts )
26
- else
35
+ elsif ! db_warning_given?
27
36
vprint_warning ( 'No active DB -- Credential data will not be saved!' )
28
37
end
29
38
end
30
39
31
40
def create_credential_login ( opts = { } )
32
41
if active_db?
33
42
super ( opts )
34
- else
43
+ elsif ! db_warning_given?
35
44
vprint_warning ( 'No active DB -- Credential data will not be saved!' )
36
45
end
37
46
end
38
47
39
48
def invalidate_login ( opts = { } )
40
49
if active_db?
41
50
super ( opts )
42
- else
51
+ elsif ! db_warning_given?
43
52
vprint_warning ( 'No active DB -- Credential data will not be saved!' )
44
53
end
45
54
end
You can’t perform that action at this time.
0 commit comments