From 4053764f2168ad5d4fd5e891d4ff81bda654f25c Mon Sep 17 00:00:00 2001 From: Tod Beardsley Date: Fri, 29 Apr 2011 04:16:42 +0000 Subject: [PATCH] In the event an import file isn't an msf_zip, pcapfile, and doesn't have a newline, bail. git-svn-id: file:///home/svn/framework3/trunk@12465 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/core/db.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/msf/core/db.rb b/lib/msf/core/db.rb index 8249cfba4d..c82d8ec76f 100644 --- a/lib/msf/core/db.rb +++ b/lib/msf/core/db.rb @@ -2100,6 +2100,7 @@ class DBManager end di = data.index("\n") + raise DBImportError.new("Could not automatically determine file type") unless di firstline = data[0, di] @import_filedata ||= {} if (firstline.index("