Land #8692, Fix #8685, Check nil condition for #wordlist_file in jtr modules

bug/bundler_fix
Brent Cook 2017-07-23 07:12:21 -07:00
commit 8c8dbc6d38
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96
6 changed files with 30 additions and 0 deletions

View File

@ -32,6 +32,11 @@ class MetasploitModule < Msf::Auxiliary
# generate our wordlist and close the file handle
wordlist = wordlist_file
unless wordlist
print_error('This module cannot run without a database connected. Use db_connect to connect to a database.')
return
end
wordlist.close
print_status "Wordlist file written out to #{wordlist.path}"
cracker.wordlist = wordlist.path

View File

@ -31,6 +31,11 @@ class MetasploitModule < Msf::Auxiliary
# generate our wordlist and close the file handle
wordlist = wordlist_file
unless wordlist
print_error('This module cannot run without a database connected. Use db_connect to connect to a database.')
return
end
wordlist.close
print_status "Wordlist file written out to #{wordlist.path}"
cracker.wordlist = wordlist.path

View File

@ -46,6 +46,11 @@ class MetasploitModule < Msf::Auxiliary
# generate our wordlist and close the file handle
wordlist = wordlist_file
unless wordlist
print_error('This module cannot run without a database connected. Use db_connect to connect to a database.')
return
end
wordlist.close
print_status "Wordlist file written out to #{wordlist.path}"
cracker.wordlist = wordlist.path

View File

@ -33,6 +33,11 @@ class MetasploitModule < Msf::Auxiliary
# generate our wordlist and close the file handle
wordlist = wordlist_file
unless wordlist
print_error('This module cannot run without a database connected. Use db_connect to connect to a database.')
return
end
wordlist.close
print_status "Wordlist file written out to #{wordlist.path}"
cracker.wordlist = wordlist.path

View File

@ -32,6 +32,11 @@ class MetasploitModule < Msf::Auxiliary
# generate our wordlist and close the file handle
wordlist = wordlist_file
unless wordlist
print_error('This module cannot run without a database connected. Use db_connect to connect to a database.')
return
end
wordlist.close
print_status "Wordlist file written out to #{wordlist.path}"
cracker.wordlist = wordlist.path

View File

@ -36,6 +36,11 @@ class MetasploitModule < Msf::Auxiliary
# generate our wordlist and close the file handle
wordlist = wordlist_file
unless wordlist
print_error('This module cannot run without a database connected. Use db_connect to connect to a database.')
return
end
wordlist.close