Fix bug: table being saved while empty

unstable
sinn3r 2011-11-25 00:54:17 -06:00
parent ec3c37d963
commit 82a5da866a
1 changed files with 3 additions and 1 deletions

View File

@ -136,7 +136,9 @@ class Metasploit3 < Msf::Post
if item =~ /signons\.sqlite/ and datastore['PARSE']
print_status("Parsing signons.sqlite...")
data_tbl = parse(path)
if not data_tbl.nil?
if data_tbl.nil? or data_tbl.rows.empty?
print_status("No data parsed")
else
path = store_loot(
"tb.parsed.#{item}",
"text/plain",