WIP: table md5 search
This commit is contained in:
parent
87dba395ea
commit
558c19ccb8
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue