mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-10 07:09:32 +00:00
added missing postArtifact calls for Safari and moved call in chrome
This commit is contained in:
parent
6693f1806e
commit
a30b1b51f6
@ -364,8 +364,6 @@ class Chrome extends Extract {
|
|||||||
RecentActivityExtracterModuleFactory.getModuleName(), domain));
|
RecentActivityExtracterModuleFactory.getModuleName(), domain));
|
||||||
bbart.addAttributes(bbattributes);
|
bbart.addAttributes(bbattributes);
|
||||||
|
|
||||||
// index the artifact for keyword search
|
|
||||||
postArtifact(bbart);
|
|
||||||
bbartifacts.add(bbart);
|
bbartifacts.add(bbart);
|
||||||
} catch (TskCoreException ex) {
|
} catch (TskCoreException ex) {
|
||||||
logger.log(Level.SEVERE, "Error while trying to insert Chrome bookmark artifact{0}", ex); //NON-NLS
|
logger.log(Level.SEVERE, "Error while trying to insert Chrome bookmark artifact{0}", ex); //NON-NLS
|
||||||
@ -374,6 +372,7 @@ class Chrome extends Extract {
|
|||||||
this.getName(), bookmarkFile.getName()));
|
this.getName(), bookmarkFile.getName()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
postArtifact(bbartifacts);
|
||||||
dbFile.delete();
|
dbFile.delete();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -291,12 +291,7 @@ final class ExtractSafari extends Extract {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Collection<BlackboardArtifact> bbartifacts = getHistoryArtifacts(historyFile, tempHistoryFile.toPath(), context);
|
postArtifact(getHistoryArtifacts(historyFile, tempHistoryFile.toPath(), context));
|
||||||
if (!bbartifacts.isEmpty()) {
|
|
||||||
services.fireModuleDataEvent(new ModuleDataEvent(
|
|
||||||
RecentActivityExtracterModuleFactory.getModuleName(),
|
|
||||||
BlackboardArtifact.ARTIFACT_TYPE.TSK_WEB_HISTORY, bbartifacts));
|
|
||||||
}
|
|
||||||
} finally {
|
} finally {
|
||||||
tempHistoryFile.delete();
|
tempHistoryFile.delete();
|
||||||
}
|
}
|
||||||
@ -323,12 +318,7 @@ final class ExtractSafari extends Extract {
|
|||||||
File tempFile = createTemporaryFile(context, file);
|
File tempFile = createTemporaryFile(context, file);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Collection<BlackboardArtifact> bbartifacts = getBookmarkArtifacts(file, tempFile, context);
|
postArtifact( getBookmarkArtifacts(file, tempFile, context));
|
||||||
if (!bbartifacts.isEmpty()) {
|
|
||||||
services.fireModuleDataEvent(new ModuleDataEvent(
|
|
||||||
RecentActivityExtracterModuleFactory.getModuleName(),
|
|
||||||
BlackboardArtifact.ARTIFACT_TYPE.TSK_WEB_BOOKMARK, bbartifacts));
|
|
||||||
}
|
|
||||||
} finally {
|
} finally {
|
||||||
tempFile.delete();
|
tempFile.delete();
|
||||||
}
|
}
|
||||||
@ -356,12 +346,8 @@ final class ExtractSafari extends Extract {
|
|||||||
File tempFile = createTemporaryFile(context, file);
|
File tempFile = createTemporaryFile(context, file);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Collection<BlackboardArtifact> bbartifacts = getDownloadArtifacts(dataSource, file, tempFile);
|
postArtifacts(getDownloadArtifacts(dataSource, file, tempFile));
|
||||||
if (!bbartifacts.isEmpty()) {
|
|
||||||
services.fireModuleDataEvent(new ModuleDataEvent(
|
|
||||||
RecentActivityExtracterModuleFactory.getModuleName(),
|
|
||||||
BlackboardArtifact.ARTIFACT_TYPE.TSK_WEB_DOWNLOAD, bbartifacts));
|
|
||||||
}
|
|
||||||
} finally {
|
} finally {
|
||||||
if (tempFile != null) {
|
if (tempFile != null) {
|
||||||
tempFile.delete();
|
tempFile.delete();
|
||||||
@ -389,13 +375,8 @@ final class ExtractSafari extends Extract {
|
|||||||
try {
|
try {
|
||||||
tempFile = createTemporaryFile(context, file);
|
tempFile = createTemporaryFile(context, file);
|
||||||
|
|
||||||
Collection<BlackboardArtifact> bbartifacts = getCookieArtifacts(file, tempFile, context);
|
postArtifacts(getCookieArtifacts(file, tempFile, context));
|
||||||
|
|
||||||
if (!bbartifacts.isEmpty()) {
|
|
||||||
services.fireModuleDataEvent(new ModuleDataEvent(
|
|
||||||
RecentActivityExtracterModuleFactory.getModuleName(),
|
|
||||||
BlackboardArtifact.ARTIFACT_TYPE.TSK_WEB_COOKIE, bbartifacts));
|
|
||||||
}
|
|
||||||
} finally {
|
} finally {
|
||||||
if (tempFile != null) {
|
if (tempFile != null) {
|
||||||
tempFile.delete();
|
tempFile.delete();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user