File tree Expand file tree Collapse file tree 6 files changed +30
-0
lines changed
modules/auxiliary/analyze Expand file tree Collapse file tree 6 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,11 @@ def run
32
32
33
33
# generate our wordlist and close the file handle
34
34
wordlist = wordlist_file
35
+ unless wordlist
36
+ print_error ( 'This module cannot run without a database connected. Use db_connect to connect to a database.' )
37
+ return
38
+ end
39
+
35
40
wordlist . close
36
41
print_status "Wordlist file written out to #{ wordlist . path } "
37
42
cracker . wordlist = wordlist . path
Original file line number Diff line number Diff line change @@ -31,6 +31,11 @@ def run
31
31
32
32
# generate our wordlist and close the file handle
33
33
wordlist = wordlist_file
34
+ unless wordlist
35
+ print_error ( 'This module cannot run without a database connected. Use db_connect to connect to a database.' )
36
+ return
37
+ end
38
+
34
39
wordlist . close
35
40
print_status "Wordlist file written out to #{ wordlist . path } "
36
41
cracker . wordlist = wordlist . path
Original file line number Diff line number Diff line change @@ -46,6 +46,11 @@ def run
46
46
47
47
# generate our wordlist and close the file handle
48
48
wordlist = wordlist_file
49
+ unless wordlist
50
+ print_error ( 'This module cannot run without a database connected. Use db_connect to connect to a database.' )
51
+ return
52
+ end
53
+
49
54
wordlist . close
50
55
print_status "Wordlist file written out to #{ wordlist . path } "
51
56
cracker . wordlist = wordlist . path
Original file line number Diff line number Diff line change @@ -33,6 +33,11 @@ def run
33
33
34
34
# generate our wordlist and close the file handle
35
35
wordlist = wordlist_file
36
+ unless wordlist
37
+ print_error ( 'This module cannot run without a database connected. Use db_connect to connect to a database.' )
38
+ return
39
+ end
40
+
36
41
wordlist . close
37
42
print_status "Wordlist file written out to #{ wordlist . path } "
38
43
cracker . wordlist = wordlist . path
Original file line number Diff line number Diff line change @@ -32,6 +32,11 @@ def run
32
32
33
33
# generate our wordlist and close the file handle
34
34
wordlist = wordlist_file
35
+ unless wordlist
36
+ print_error ( 'This module cannot run without a database connected. Use db_connect to connect to a database.' )
37
+ return
38
+ end
39
+
35
40
wordlist . close
36
41
print_status "Wordlist file written out to #{ wordlist . path } "
37
42
cracker . wordlist = wordlist . path
Original file line number Diff line number Diff line change @@ -36,6 +36,11 @@ def run
36
36
37
37
# generate our wordlist and close the file handle
38
38
wordlist = wordlist_file
39
+ unless wordlist
40
+ print_error ( 'This module cannot run without a database connected. Use db_connect to connect to a database.' )
41
+ return
42
+ end
43
+
39
44
wordlist . close
40
45
41
46
You can’t perform that action at this time.
0 commit comments