FIX: the path parsing and the database file name have improved parsing

This commit is contained in:
JohnE 2016-02-26 01:18:17 -08:00
parent fd45cf6123
commit 19851a88eb
2 changed files with 5 additions and 2 deletions

View File

@ -24,6 +24,7 @@ class AndroidAppPull:
if (0 < stdout.find('failed')):
logging.error("Error executing adb shell")
logging.info("Make sure adb is in root mode, 'adb root'")
return dir_names
strings = stdout.split('\n')
for sstr in strings:

View File

@ -1,6 +1,7 @@
#
#
#
import os
import re
import json
import sqlite3
@ -73,8 +74,9 @@ class FingerprintDB:
try:
# extract file name from path+filename
self.metadata['db-name'] = ToolBox.parseFilenameIncExt(filein)
except:
self.metadata['db-name'] = os.path.basename(filein)
except Exception as ex:
logging.error(ex)
self.metadata['db-name'] = filein
try:
# read database schema, parse the schema