mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 07:56:16 +00:00
Merge pull request #5499 from wschaeferB/5716-RawMediaArtifactType
5716 raw media artifact type
This commit is contained in:
commit
39f730caf4
@ -44,7 +44,7 @@ FileSearchPanel.hashSetCheckbox.text=Hash Set:
|
|||||||
FileSearchPanel.tagsCheckbox.text=Tag:
|
FileSearchPanel.tagsCheckbox.text=Tag:
|
||||||
FileSearchPanel.interestingItemsCheckbox.text=Interesting Item:
|
FileSearchPanel.interestingItemsCheckbox.text=Interesting Item:
|
||||||
FileSearchPanel.scoreCheckbox.text=Has Score:
|
FileSearchPanel.scoreCheckbox.text=Has Score:
|
||||||
FileSearchPanel.exifCheckbox.text=Must contain EXIF data
|
FileSearchPanel.exifCheckbox.text=Possibly User Created
|
||||||
FileSearchPanel.notableCheckbox.text=Must have been tagged as notable
|
FileSearchPanel.notableCheckbox.text=Must have been tagged as notable
|
||||||
FileSearchPanel.objectsCheckbox.text=Object Detected:
|
FileSearchPanel.objectsCheckbox.text=Object Detected:
|
||||||
ResultsPanel.currentPageLabel.text=Page: -
|
ResultsPanel.currentPageLabel.text=Page: -
|
||||||
|
@ -150,7 +150,7 @@ FileSearchPanel.hashSetCheckbox.text=Hash Set:
|
|||||||
FileSearchPanel.tagsCheckbox.text=Tag:
|
FileSearchPanel.tagsCheckbox.text=Tag:
|
||||||
FileSearchPanel.interestingItemsCheckbox.text=Interesting Item:
|
FileSearchPanel.interestingItemsCheckbox.text=Interesting Item:
|
||||||
FileSearchPanel.scoreCheckbox.text=Has Score:
|
FileSearchPanel.scoreCheckbox.text=Has Score:
|
||||||
FileSearchPanel.exifCheckbox.text=Must contain EXIF data
|
FileSearchPanel.exifCheckbox.text=Possibly User Created
|
||||||
FileSearchPanel.notableCheckbox.text=Must have been tagged as notable
|
FileSearchPanel.notableCheckbox.text=Must have been tagged as notable
|
||||||
FileSearchPanel.objectsCheckbox.text=Object Detected:
|
FileSearchPanel.objectsCheckbox.text=Object Detected:
|
||||||
FileSorter.SortingMethod.datasource.displayName=Data Source
|
FileSorter.SortingMethod.datasource.displayName=Data Source
|
||||||
|
@ -146,14 +146,22 @@ public class ResultsPanel extends javax.swing.JPanel {
|
|||||||
*/
|
*/
|
||||||
synchronized void populateInstancesList() {
|
synchronized void populateInstancesList() {
|
||||||
SwingUtilities.invokeLater(() -> {
|
SwingUtilities.invokeLater(() -> {
|
||||||
instancesList.removeListSelectionListener(listener);
|
List<AbstractFile> files = getInstancesForSelected();
|
||||||
instancesListModel.removeAllElements();
|
if (files.isEmpty()) {
|
||||||
for (AbstractFile file : getInstancesForSelected()) {
|
//if there are no files currently remove the current items without removing listener to cause content viewer to reset
|
||||||
instancesListModel.addElement(file);
|
instancesListModel.removeAllElements();
|
||||||
}
|
} else {
|
||||||
instancesList.addListSelectionListener(listener);
|
//remove listener so content viewer node is not set multiple times
|
||||||
if (!instancesListModel.isEmpty()) {
|
instancesList.removeListSelectionListener(listener);
|
||||||
instancesList.setSelectedIndex(0);
|
instancesListModel.removeAllElements();
|
||||||
|
for (AbstractFile file : files) {
|
||||||
|
instancesListModel.addElement(file);
|
||||||
|
}
|
||||||
|
//add listener back to allow selection of first index to cause content viewer node to be set
|
||||||
|
instancesList.addListSelectionListener(listener);
|
||||||
|
if (!instancesListModel.isEmpty()) {
|
||||||
|
instancesList.setSelectedIndex(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
CannotRunFileTypeDetection=Cannot run file type detection.
|
CannotRunFileTypeDetection=Cannot run file type detection.
|
||||||
ExifParserFileIngestModule.indexError.message=Failed to post EXIF Metadata artifact(s).
|
ExifParserFileIngestModule.indexError.message=Failed to post EXIF Metadata artifact(s).
|
||||||
|
ExifParserFileIngestModule.userContent.description=EXIF metadata exists for this file.
|
||||||
OpenIDE-Module-Display-Category=Ingest Module
|
OpenIDE-Module-Display-Category=Ingest Module
|
||||||
OpenIDE-Module-Long-Description=Exif metadata ingest module. \n\nThe ingest module analyzes image files, extracts Exif information and posts the Exif data as results.
|
OpenIDE-Module-Long-Description=Exif metadata ingest module. \n\nThe ingest module analyzes image files, extracts Exif information and posts the Exif data as results.
|
||||||
OpenIDE-Module-Name=ExifParser
|
OpenIDE-Module-Name=ExifParser
|
||||||
|
@ -49,6 +49,7 @@ import org.sleuthkit.datamodel.AbstractFile;
|
|||||||
import org.sleuthkit.datamodel.Blackboard;
|
import org.sleuthkit.datamodel.Blackboard;
|
||||||
import org.sleuthkit.datamodel.BlackboardArtifact;
|
import org.sleuthkit.datamodel.BlackboardArtifact;
|
||||||
import static org.sleuthkit.datamodel.BlackboardArtifact.ARTIFACT_TYPE.TSK_METADATA_EXIF;
|
import static org.sleuthkit.datamodel.BlackboardArtifact.ARTIFACT_TYPE.TSK_METADATA_EXIF;
|
||||||
|
import static org.sleuthkit.datamodel.BlackboardArtifact.ARTIFACT_TYPE.TSK_USER_CONTENT_SUSPECTED;
|
||||||
import org.sleuthkit.datamodel.BlackboardAttribute;
|
import org.sleuthkit.datamodel.BlackboardAttribute;
|
||||||
import static org.sleuthkit.datamodel.BlackboardAttribute.ATTRIBUTE_TYPE.TSK_DATETIME_CREATED;
|
import static org.sleuthkit.datamodel.BlackboardAttribute.ATTRIBUTE_TYPE.TSK_DATETIME_CREATED;
|
||||||
import static org.sleuthkit.datamodel.BlackboardAttribute.ATTRIBUTE_TYPE.TSK_DEVICE_MAKE;
|
import static org.sleuthkit.datamodel.BlackboardAttribute.ATTRIBUTE_TYPE.TSK_DEVICE_MAKE;
|
||||||
@ -130,6 +131,7 @@ public final class ExifParserFileIngestModule implements FileIngestModule {
|
|||||||
return processFile(content);
|
return processFile(content);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Messages({"ExifParserFileIngestModule.userContent.description=EXIF metadata exists for this file."})
|
||||||
private ProcessResult processFile(AbstractFile file) {
|
private ProcessResult processFile(AbstractFile file) {
|
||||||
|
|
||||||
try (BufferedInputStream bin = new BufferedInputStream(new ReadContentInputStream(file));) {
|
try (BufferedInputStream bin = new BufferedInputStream(new ReadContentInputStream(file));) {
|
||||||
@ -193,11 +195,13 @@ public final class ExifParserFileIngestModule implements FileIngestModule {
|
|||||||
// Create artifact if it doesn't already exist.
|
// Create artifact if it doesn't already exist.
|
||||||
if (!blackboard.artifactExists(file, TSK_METADATA_EXIF, attributes)) {
|
if (!blackboard.artifactExists(file, TSK_METADATA_EXIF, attributes)) {
|
||||||
BlackboardArtifact bba = file.newArtifact(TSK_METADATA_EXIF);
|
BlackboardArtifact bba = file.newArtifact(TSK_METADATA_EXIF);
|
||||||
|
BlackboardArtifact bba2 = file.newArtifact(TSK_USER_CONTENT_SUSPECTED);
|
||||||
bba.addAttributes(attributes);
|
bba.addAttributes(attributes);
|
||||||
|
bba2.addAttribute(new BlackboardAttribute(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_DESCRIPTION, MODULE_NAME, Bundle.ExifParserFileIngestModule_userContent_description()));
|
||||||
try {
|
try {
|
||||||
// index the artifact for keyword search
|
// index the artifact for keyword search
|
||||||
blackboard.postArtifact(bba, MODULE_NAME);
|
blackboard.postArtifact(bba, MODULE_NAME);
|
||||||
|
blackboard.postArtifact(bba2, MODULE_NAME);
|
||||||
} catch (Blackboard.BlackboardException ex) {
|
} catch (Blackboard.BlackboardException ex) {
|
||||||
logger.log(Level.SEVERE, "Unable to index blackboard artifact " + bba.getArtifactID(), ex); //NON-NLS
|
logger.log(Level.SEVERE, "Unable to index blackboard artifact " + bba.getArtifactID(), ex); //NON-NLS
|
||||||
MessageNotifyUtil.Notify.error(
|
MessageNotifyUtil.Notify.error(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user