mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 17:06:16 +00:00
commit
bb6eb7e7ec
@ -441,7 +441,7 @@ def retrieve_data(data_file, autopsy_con,autopsy_db_file):
|
|||||||
global failedbool
|
global failedbool
|
||||||
global errorem
|
global errorem
|
||||||
global attachl
|
global attachl
|
||||||
errorem += "There were too many values for attribute type: " + attr[1] + " for artifact with id #" + str(rw[3]) + " for image " + case.image_name + ".\n"
|
errorem += case.image_name + ":There were too many values for attribute type: " + attr[1] + " for artifact with id #" + str(rw[3]) + ".\n"
|
||||||
printerror("There were too many values for attribute type: " + attr[1] + " for artifact with id #" + str(rw[3]) + " for image " + case.image_name + ".")
|
printerror("There were too many values for attribute type: " + attr[1] + " for artifact with id #" + str(rw[3]) + " for image " + case.image_name + ".")
|
||||||
failedbool = True
|
failedbool = True
|
||||||
if(not appnd):
|
if(not appnd):
|
||||||
@ -451,7 +451,7 @@ def retrieve_data(data_file, autopsy_con,autopsy_db_file):
|
|||||||
global failedbool
|
global failedbool
|
||||||
global errorem
|
global errorem
|
||||||
global attachl
|
global attachl
|
||||||
errorem += "There were inconsistents sources for artifact with id #" + str(rw[3]) + " for image " + case.image_name + ".\n"
|
errorem += case.image_name + ":There were inconsistents sources for artifact with id #" + str(rw[3]) + ".\n"
|
||||||
printerror("There were inconsistents sources for artifact with id #" + str(rw[3]) + " for image " + case.image_name + ".")
|
printerror("There were inconsistents sources for artifact with id #" + str(rw[3]) + " for image " + case.image_name + ".")
|
||||||
failedbool = True
|
failedbool = True
|
||||||
if(not appnd):
|
if(not appnd):
|
||||||
@ -473,7 +473,7 @@ def retrieve_data(data_file, autopsy_con,autopsy_db_file):
|
|||||||
rw = autopsy_cur2.fetchone()
|
rw = autopsy_cur2.fetchone()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print('outer exception: ' + str(e))
|
print('outer exception: ' + str(e))
|
||||||
errorem += "There were " + str(case.artifact_count) + " artifacts for " + case.image_name + " and " + str(case.artifact_fail) + " of them were unusable.\n"
|
errorem += case.image_name + ":There were " + str(case.artifact_count) + " artifacts and " + str(case.artifact_fail) + " of them were unusable.\n"
|
||||||
|
|
||||||
def dbDump():
|
def dbDump():
|
||||||
autopsy_db_file = Emailer.make_path(case.output_dir, case.image_name,
|
autopsy_db_file = Emailer.make_path(case.output_dir, case.image_name,
|
||||||
@ -960,7 +960,7 @@ def count_bb_artifacts():
|
|||||||
failedbool = True
|
failedbool = True
|
||||||
global imgfail
|
global imgfail
|
||||||
imgfail = True
|
imgfail = True
|
||||||
errorem += "There was a difference in the number of artifacts for " + case.image + ".\n"
|
errorem += case.image + ":There was a difference in the number of artifacts.\n"
|
||||||
rner = len(database.gold_artifacts)
|
rner = len(database.gold_artifacts)
|
||||||
for type_id in range(1, rner):
|
for type_id in range(1, rner):
|
||||||
if database.gold_artifacts[type_id] != database.autopsy_artifacts[type_id]:
|
if database.gold_artifacts[type_id] != database.autopsy_artifacts[type_id]:
|
||||||
@ -989,7 +989,7 @@ def compare_bb_attributes():
|
|||||||
failedbool = True
|
failedbool = True
|
||||||
global imgfail
|
global imgfail
|
||||||
imgfail = True
|
imgfail = True
|
||||||
errorem += "There was a difference in the number of attributes for " + case.image + ".\n"
|
errorem += case.image + ":There was a difference in the number of attributes.\n"
|
||||||
return exceptions
|
return exceptions
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
exceptions.append("Error: Unable to compare blackboard_attributes.\n")
|
exceptions.append("Error: Unable to compare blackboard_attributes.\n")
|
||||||
@ -1009,7 +1009,7 @@ def compare_tsk_objects():
|
|||||||
failedbool = True
|
failedbool = True
|
||||||
global imgfail
|
global imgfail
|
||||||
imgfail = True
|
imgfail = True
|
||||||
errorem += "There was a difference between the tsk object counts for " + case.image + " .\n"
|
errorem += case.image + ":There was a difference between the tsk object counts.\n"
|
||||||
return exceptions
|
return exceptions
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
exceptions.append("Error: Unable to compare tsk_objects.\n")
|
exceptions.append("Error: Unable to compare tsk_objects.\n")
|
||||||
@ -1075,7 +1075,7 @@ def compare_data(aut, gld):
|
|||||||
global errorem
|
global errorem
|
||||||
global failedbool
|
global failedbool
|
||||||
attachl.append(diff_dir)
|
attachl.append(diff_dir)
|
||||||
errorem += "There was a difference in the Database data for " + case.image_name + " for the file " + gld + ".\n"
|
errorem += case.image_name + ":There was a difference in the Database data for the file " + gld + ".\n"
|
||||||
print("There was a difference in the Database data for " + case.image_name + " for the file " + gld + ".\n")
|
print("There was a difference in the Database data for " + case.image_name + " for the file " + gld + ".\n")
|
||||||
failedbool = True
|
failedbool = True
|
||||||
global imgfail
|
global imgfail
|
||||||
@ -1100,7 +1100,7 @@ def compare_errors():
|
|||||||
global failedbool
|
global failedbool
|
||||||
attachl.append(case.sorted_log)
|
attachl.append(case.sorted_log)
|
||||||
attachl.append(diff_dir)
|
attachl.append(diff_dir)
|
||||||
errorem += "There was a difference in the exceptions Log for " + case.image_name + ".\n"
|
errorem += case.image_name + ":There was a difference in the exceptions Log.\n"
|
||||||
print("Exceptions didn't match.\n")
|
print("Exceptions didn't match.\n")
|
||||||
failedbool = True
|
failedbool = True
|
||||||
global imgfail
|
global imgfail
|
||||||
|
Loading…
x
Reference in New Issue
Block a user