mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +00:00
Merge remote-tracking branch 'upstream/develop' into develop
This commit is contained in:
commit
edf3311f14
@ -326,7 +326,6 @@ final class IngestTasksScheduler {
|
|||||||
// Try to add the most recently added directory from the
|
// Try to add the most recently added directory from the
|
||||||
// directory tasks queue to the pending file tasks queue.
|
// directory tasks queue to the pending file tasks queue.
|
||||||
FileIngestTask directoryTask = this.directoryTasks.remove(this.directoryTasks.size() - 1);
|
FileIngestTask directoryTask = this.directoryTasks.remove(this.directoryTasks.size() - 1);
|
||||||
this.tasksInProgress.remove(directoryTask);
|
|
||||||
if (shouldEnqueueFileTask(directoryTask)) {
|
if (shouldEnqueueFileTask(directoryTask)) {
|
||||||
addToPendingFileTasksQueue(directoryTask);
|
addToPendingFileTasksQueue(directoryTask);
|
||||||
} else {
|
} else {
|
||||||
@ -351,9 +350,7 @@ final class IngestTasksScheduler {
|
|||||||
this.directoryTasks.add(childTask);
|
this.directoryTasks.add(childTask);
|
||||||
} else if (shouldEnqueueFileTask(childTask)) {
|
} else if (shouldEnqueueFileTask(childTask)) {
|
||||||
// Found a file, put the task directly into the
|
// Found a file, put the task directly into the
|
||||||
// pending file tasks queue. The new task will
|
// pending file tasks queue.
|
||||||
// be put into the tasks in progress list by the
|
|
||||||
// addToPendingFileTasksQueue() helper.
|
|
||||||
this.tasksInProgress.add(childTask);
|
this.tasksInProgress.add(childTask);
|
||||||
addToPendingFileTasksQueue(childTask);
|
addToPendingFileTasksQueue(childTask);
|
||||||
}
|
}
|
||||||
@ -667,7 +664,7 @@ final class IngestTasksScheduler {
|
|||||||
this.dirQueueSize = countTasksForJob(IngestTasksScheduler.this.directoryTasks, jobId);
|
this.dirQueueSize = countTasksForJob(IngestTasksScheduler.this.directoryTasks, jobId);
|
||||||
this.fileQueueSize = countTasksForJob(IngestTasksScheduler.this.pendingFileTasks, jobId);
|
this.fileQueueSize = countTasksForJob(IngestTasksScheduler.this.pendingFileTasks, jobId);
|
||||||
this.dsQueueSize = countTasksForJob(IngestTasksScheduler.this.pendingDataSourceTasks, jobId);
|
this.dsQueueSize = countTasksForJob(IngestTasksScheduler.this.pendingDataSourceTasks, jobId);
|
||||||
this.runningListSize = countTasksForJob(IngestTasksScheduler.this.tasksInProgress, jobId) - fileQueueSize - dsQueueSize;
|
this.runningListSize = countTasksForJob(IngestTasksScheduler.this.tasksInProgress, jobId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -297,7 +297,7 @@ class ExtractRegistry extends Extract {
|
|||||||
regOutputFiles.autopsyPlugins = outFilePathBase + "-autopsy.txt"; //NON-NLS
|
regOutputFiles.autopsyPlugins = outFilePathBase + "-autopsy.txt"; //NON-NLS
|
||||||
String errFilePath = outFilePathBase + "-autopsy.err.txt"; //NON-NLS
|
String errFilePath = outFilePathBase + "-autopsy.err.txt"; //NON-NLS
|
||||||
logger.log(Level.INFO, "Writing RegRipper results to: {0}", regOutputFiles.autopsyPlugins); //NON-NLS
|
logger.log(Level.INFO, "Writing RegRipper results to: {0}", regOutputFiles.autopsyPlugins); //NON-NLS
|
||||||
executeRegRipper(regFilePath, autopsyType, regOutputFiles.autopsyPlugins, errFilePath);
|
executeRegRipper(RR_PATH, regFilePath, autopsyType, regOutputFiles.autopsyPlugins, errFilePath);
|
||||||
}
|
}
|
||||||
if (context.dataSourceIngestIsCancelled()) {
|
if (context.dataSourceIngestIsCancelled()) {
|
||||||
return regOutputFiles;
|
return regOutputFiles;
|
||||||
@ -308,16 +308,16 @@ class ExtractRegistry extends Extract {
|
|||||||
regOutputFiles.fullPlugins = outFilePathBase + "-full.txt"; //NON-NLS
|
regOutputFiles.fullPlugins = outFilePathBase + "-full.txt"; //NON-NLS
|
||||||
String errFilePath = outFilePathBase + "-full.err.txt"; //NON-NLS
|
String errFilePath = outFilePathBase + "-full.err.txt"; //NON-NLS
|
||||||
logger.log(Level.INFO, "Writing Full RegRipper results to: {0}", regOutputFiles.fullPlugins); //NON-NLS
|
logger.log(Level.INFO, "Writing Full RegRipper results to: {0}", regOutputFiles.fullPlugins); //NON-NLS
|
||||||
executeRegRipper(regFilePath, fullType, regOutputFiles.fullPlugins, errFilePath);
|
executeRegRipper(RR_FULL_PATH, regFilePath, fullType, regOutputFiles.fullPlugins, errFilePath);
|
||||||
}
|
}
|
||||||
return regOutputFiles;
|
return regOutputFiles;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void executeRegRipper(String hiveFilePath, String hiveFileType, String outputFile, String errFile) {
|
private void executeRegRipper(String regRipperPath, String hiveFilePath, String hiveFileType, String outputFile, String errFile) {
|
||||||
try {
|
try {
|
||||||
logger.log(Level.INFO, "Writing RegRipper results to: {0}", outputFile); //NON-NLS
|
logger.log(Level.INFO, "Writing RegRipper results to: {0}", outputFile); //NON-NLS
|
||||||
List<String> commandLine = new ArrayList<>();
|
List<String> commandLine = new ArrayList<>();
|
||||||
commandLine.add(RR_PATH);
|
commandLine.add(regRipperPath);
|
||||||
commandLine.add("-r"); //NON-NLS
|
commandLine.add("-r"); //NON-NLS
|
||||||
commandLine.add(hiveFilePath);
|
commandLine.add(hiveFilePath);
|
||||||
commandLine.add("-f"); //NON-NLS
|
commandLine.add("-f"); //NON-NLS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user