From 012def9e4e4391bb378808fb73d61bdbe373f08a Mon Sep 17 00:00:00 2001 From: Alex Ebadirad Date: Wed, 11 Jul 2012 15:45:21 -0700 Subject: [PATCH] Added info statements when processing files for recent activity Firefox.java, Chrome.java, and ExtractRegistry.java classes. Signed-off-by: Alex Ebadirad --- .../src/org/sleuthkit/autopsy/recentactivity/Chrome.java | 6 ++++++ .../sleuthkit/autopsy/recentactivity/ExtractRegistry.java | 2 +- .../src/org/sleuthkit/autopsy/recentactivity/Firefox.java | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/Chrome.java b/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/Chrome.java index c389e24b97..416a9257e9 100755 --- a/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/Chrome.java +++ b/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/Chrome.java @@ -79,6 +79,7 @@ public class Chrome extends Extract implements IngestServiceImage { int j = 0; if (FFSqlitedb != null && !FFSqlitedb.isEmpty()) { while (j < FFSqlitedb.size()) { + String temps = currentCase.getTempDirectory() + File.separator + FFSqlitedb.get(j).getName().toString() + j + ".db"; try { ContentUtils.writeToFile(FFSqlitedb.get(j), new File(currentCase.getTempDirectory() + File.separator + FFSqlitedb.get(j).getName().toString() + j + ".db")); @@ -92,6 +93,7 @@ public class Chrome extends Extract implements IngestServiceImage { break; } List> tempList = this.dbConnect(temps, chquery); + logger.log(Level.INFO, moduleName + "- Now getting history from " + temps + " with " + tempList.size() + "artifacts identified."); for (HashMap result : tempList) { try { Collection bbattributes = new ArrayList(); @@ -129,6 +131,7 @@ public class Chrome extends Extract implements IngestServiceImage { logger.log(Level.WARNING, "Error while trying to write out a sqlite db.{0}", ex); this.addErrorMessage(this.getName() + ": Error while trying to analyze file:" + FFSqlitedb.get(j).getName()); } + logger.log(Level.INFO, moduleName + "- Now getting Bookmarks from " + temps); File dbFile = new File(temps); if (controller.isCancelled()) { dbFile.delete(); @@ -195,6 +198,7 @@ public class Chrome extends Extract implements IngestServiceImage { } List> tempList = this.dbConnect(temps, chcookiequery); + logger.log(Level.INFO, moduleName + "- Now getting cookies from " + temps + " with " + tempList.size() + "artifacts identified."); for (HashMap result : tempList) { try { Collection bbattributes = new ArrayList(); @@ -242,6 +246,7 @@ public class Chrome extends Extract implements IngestServiceImage { } List> tempList = this.dbConnect(temps, chdownloadquery); + logger.log(Level.INFO, moduleName + "- Now getting downloads from " + temps + " with " + tempList.size() + "artifacts identified."); for (HashMap result : tempList) { try { Collection bbattributes = new ArrayList(); @@ -289,6 +294,7 @@ public class Chrome extends Extract implements IngestServiceImage { break; } List> tempList = this.dbConnect(temps, chloginquery); + logger.log(Level.INFO, moduleName + "- Now getting login information from " + temps + " with " + tempList.size() + "artifacts identified."); for (HashMap result : tempList) { try { Collection bbattributes = new ArrayList(); diff --git a/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/ExtractRegistry.java b/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/ExtractRegistry.java index d13b670612..3d15097b1d 100644 --- a/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/ExtractRegistry.java +++ b/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/ExtractRegistry.java @@ -119,7 +119,7 @@ public class ExtractRegistry extends Extract implements IngestServiceImage { logger.log(Level.WARNING, "Error while trying to read into a sqlite db.{0}", ex); } File regFile = new File(temps); - + logger.log(Level.INFO, moduleName + "- Now getting registry information from " + temps); String txtPath = executeRegRip(temps, j); if (txtPath.length() > 0) { Success = parseReg(txtPath, orgId); diff --git a/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/Firefox.java b/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/Firefox.java index 533b7e8e0d..4b1e704ed2 100644 --- a/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/Firefox.java +++ b/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/Firefox.java @@ -87,6 +87,7 @@ public class Firefox extends Extract implements IngestServiceImage { break; } List> tempList = this.dbConnect(temps, ffquery); + logger.log(Level.INFO, moduleName + "- Now getting history from " + temps + " with " + tempList.size() + "artifacts identified."); for (HashMap result : tempList) { try { Collection bbattributes = new ArrayList(); @@ -130,6 +131,7 @@ public class Firefox extends Extract implements IngestServiceImage { break; } List> tempList = this.dbConnect(temps, ffbookmarkquery); + logger.log(Level.INFO, moduleName + "- Now getting bookmarks from " + temps + " with " + tempList.size() + "artifacts identified."); for (HashMap result : tempList) { try { Collection bbattributes = new ArrayList(); @@ -180,6 +182,7 @@ public class Firefox extends Extract implements IngestServiceImage { } List> tempList = this.dbConnect(temps, query); + logger.log(Level.INFO, moduleName + "- Now getting cookies from " + temps + " with " + tempList.size() + "artifacts identified."); for (HashMap result : tempList) { try { Collection bbattributes = new ArrayList(); @@ -231,6 +234,7 @@ public class Firefox extends Extract implements IngestServiceImage { } List> tempList = this.dbConnect(temps, ffdownloadquery); + logger.log(Level.INFO, moduleName + "- Now getting downloads from " + temps + " with " + tempList.size() + "artifacts identified."); for (HashMap result : tempList) { try { Collection bbattributes = new ArrayList();