WIP: table md5 search

This commit is contained in:
JohnE 2016-02-09 16:36:23 -08:00
parent 87dba395ea
commit 558c19ccb8
2 changed files with 8 additions and 2 deletions

View File

@ -6,7 +6,6 @@ Action Items from the code review:
-Create a document describing the index file and include an example
-Add a table to the Index to list all the applications that have a fingerprint (include the app version)
-more functionality can result from this information in the index
-Create an example of the FingerprintDB class usage with a standalone tool

View File

@ -54,7 +54,6 @@ class FingerprintIndex:
#
def findFP(self, md5_db, md5_tables):
#print "***** findFP *****\nmd5_db=={} md5_tables=={}\n".format(md5_db, md5_tables)
rows = self.__qDatabaseMD5(md5_db)
# rowcount will be -1 if nothing was returned
if rows.rowcount > 0:
@ -72,6 +71,14 @@ class FingerprintIndex:
#print "***** __qTableMD5 *****\n{}\n".format(retval.keys())
return retval.keys()
#
def findTable(self, md5_db):
rows = self.__qDatabaseMD5(md5_db)
# rowcount will be -1 if nothing was returned
if rows.rowcount > 0:
#print "***** __qDatabaseMD5 *****\n{}\n".format(rows)
return rows
#
def __qDatabaseMD5(self, md5_db):
try: