mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Merge branch 'develop' of github.com:sleuthkit/autopsy into 7072dev2
This commit is contained in:
commit
b97824a66a
@ -289,12 +289,13 @@ public class ALeappAnalyzerIngestModule implements DataSourceIngestModule {
|
|||||||
private ProcessBuilder buildaLeappCommand(Path moduleOutputPath, String sourceFilePath, String aLeappFileSystemType) {
|
private ProcessBuilder buildaLeappCommand(Path moduleOutputPath, String sourceFilePath, String aLeappFileSystemType) {
|
||||||
|
|
||||||
ProcessBuilder processBuilder = buildProcessWithRunAsInvoker(
|
ProcessBuilder processBuilder = buildProcessWithRunAsInvoker(
|
||||||
"\"" + aLeappExecutable + "\"", //NON-NLS
|
aLeappExecutable.getAbsolutePath(), //NON-NLS
|
||||||
"-t", aLeappFileSystemType, //NON-NLS
|
"-t", aLeappFileSystemType, //NON-NLS
|
||||||
"-i", sourceFilePath, //NON-NLS
|
"-i", sourceFilePath, //NON-NLS
|
||||||
"-o", moduleOutputPath.toString(),
|
"-o", moduleOutputPath.toString(),
|
||||||
"-w"
|
"-w"
|
||||||
);
|
);
|
||||||
|
processBuilder.directory(moduleOutputPath.toFile());
|
||||||
processBuilder.redirectError(moduleOutputPath.resolve("aLeapp_err.txt").toFile()); //NON-NLS
|
processBuilder.redirectError(moduleOutputPath.resolve("aLeapp_err.txt").toFile()); //NON-NLS
|
||||||
processBuilder.redirectOutput(moduleOutputPath.resolve("aLeapp_out.txt").toFile()); //NON-NLS
|
processBuilder.redirectOutput(moduleOutputPath.resolve("aLeapp_out.txt").toFile()); //NON-NLS
|
||||||
return processBuilder;
|
return processBuilder;
|
||||||
@ -303,9 +304,11 @@ public class ALeappAnalyzerIngestModule implements DataSourceIngestModule {
|
|||||||
private ProcessBuilder buildaLeappListCommand(Path moduleOutputPath) {
|
private ProcessBuilder buildaLeappListCommand(Path moduleOutputPath) {
|
||||||
|
|
||||||
ProcessBuilder processBuilder = buildProcessWithRunAsInvoker(
|
ProcessBuilder processBuilder = buildProcessWithRunAsInvoker(
|
||||||
"\"" + aLeappExecutable + "\"", //NON-NLS
|
aLeappExecutable.getAbsolutePath(), //NON-NLS
|
||||||
"-p"
|
"-p"
|
||||||
);
|
);
|
||||||
|
// leapp process creates a text file in addition to outputting to stdout.
|
||||||
|
processBuilder.directory(moduleOutputPath.toFile());
|
||||||
processBuilder.redirectError(moduleOutputPath.resolve("aLeapp_paths_error.txt").toFile()); //NON-NLS
|
processBuilder.redirectError(moduleOutputPath.resolve("aLeapp_paths_error.txt").toFile()); //NON-NLS
|
||||||
processBuilder.redirectOutput(moduleOutputPath.resolve("aLeapp_paths.txt").toFile()); //NON-NLS
|
processBuilder.redirectOutput(moduleOutputPath.resolve("aLeapp_paths.txt").toFile()); //NON-NLS
|
||||||
return processBuilder;
|
return processBuilder;
|
||||||
|
@ -289,11 +289,12 @@ public class ILeappAnalyzerIngestModule implements DataSourceIngestModule {
|
|||||||
private ProcessBuilder buildiLeappCommand(Path moduleOutputPath, String sourceFilePath, String iLeappFileSystemType) {
|
private ProcessBuilder buildiLeappCommand(Path moduleOutputPath, String sourceFilePath, String iLeappFileSystemType) {
|
||||||
|
|
||||||
ProcessBuilder processBuilder = buildProcessWithRunAsInvoker(
|
ProcessBuilder processBuilder = buildProcessWithRunAsInvoker(
|
||||||
"\"" + iLeappExecutable + "\"", //NON-NLS
|
iLeappExecutable.getAbsolutePath(), //NON-NLS
|
||||||
"-t", iLeappFileSystemType, //NON-NLS
|
"-t", iLeappFileSystemType, //NON-NLS
|
||||||
"-i", sourceFilePath, //NON-NLS
|
"-i", sourceFilePath, //NON-NLS
|
||||||
"-o", moduleOutputPath.toString()
|
"-o", moduleOutputPath.toString()
|
||||||
);
|
);
|
||||||
|
processBuilder.directory(moduleOutputPath.toFile());
|
||||||
processBuilder.redirectError(moduleOutputPath.resolve("iLeapp_err.txt").toFile()); //NON-NLS
|
processBuilder.redirectError(moduleOutputPath.resolve("iLeapp_err.txt").toFile()); //NON-NLS
|
||||||
processBuilder.redirectOutput(moduleOutputPath.resolve("iLeapp_out.txt").toFile()); //NON-NLS
|
processBuilder.redirectOutput(moduleOutputPath.resolve("iLeapp_out.txt").toFile()); //NON-NLS
|
||||||
return processBuilder;
|
return processBuilder;
|
||||||
@ -309,9 +310,11 @@ public class ILeappAnalyzerIngestModule implements DataSourceIngestModule {
|
|||||||
private ProcessBuilder buildiLeappListCommand(Path moduleOutputPath) {
|
private ProcessBuilder buildiLeappListCommand(Path moduleOutputPath) {
|
||||||
|
|
||||||
ProcessBuilder processBuilder = buildProcessWithRunAsInvoker(
|
ProcessBuilder processBuilder = buildProcessWithRunAsInvoker(
|
||||||
"\"" + iLeappExecutable + "\"", //NON-NLS
|
iLeappExecutable.getAbsolutePath(), //NON-NLS
|
||||||
"-p"
|
"-p"
|
||||||
);
|
);
|
||||||
|
// leapp process also outputs a file to the working directory in addition to stdout.
|
||||||
|
processBuilder.directory(moduleOutputPath.toFile());
|
||||||
processBuilder.redirectError(moduleOutputPath.resolve("iLeapp_paths_error.txt").toFile()); //NON-NLS
|
processBuilder.redirectError(moduleOutputPath.resolve("iLeapp_paths_error.txt").toFile()); //NON-NLS
|
||||||
processBuilder.redirectOutput(moduleOutputPath.resolve("iLeapp_paths.txt").toFile()); //NON-NLS
|
processBuilder.redirectOutput(moduleOutputPath.resolve("iLeapp_paths.txt").toFile()); //NON-NLS
|
||||||
return processBuilder;
|
return processBuilder;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user