Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Autopsy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IRT
Autopsy
Commits
45867149
Commit
45867149
authored
2 years ago
by
Mark McKinnon
Browse files
Options
Downloads
Patches
Plain Diff
Update ALeappAnalyzerIngestModule.java
Fix misc spellings
parent
69d18bd5
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Core/src/org/sleuthkit/autopsy/modules/leappanalyzers/ALeappAnalyzerIngestModule.java
+10
-10
10 additions, 10 deletions
...sy/modules/leappanalyzers/ALeappAnalyzerIngestModule.java
with
10 additions
and
10 deletions
Core/src/org/sleuthkit/autopsy/modules/leappanalyzers/ALeappAnalyzerIngestModule.java
+
10
−
10
View file @
45867149
...
@@ -86,7 +86,7 @@ public class ALeappAnalyzerIngestModule implements DataSourceIngestModule {
...
@@ -86,7 +86,7 @@ public class ALeappAnalyzerIngestModule implements DataSourceIngestModule {
@NbBundle
.
Messages
({
@NbBundle
.
Messages
({
"ALeappAnalyzerIngestModule.executable.not.found=aLeapp Executable Not Found."
,
"ALeappAnalyzerIngestModule.executable.not.found=aLeapp Executable Not Found."
,
"ALeappAnalyzerIngestModule.requires.windows=aLeapp module requires windows."
,
"ALeappAnalyzerIngestModule.requires.windows=aLeapp module requires windows."
,
"ALeappAnalyzerIngestModule.error.
i
leapp.file.processor.init=Failure to initialize aLeappProcessFile"
})
"ALeappAnalyzerIngestModule.error.
a
leapp.file.processor.init=Failure to initialize aLeappProcessFile"
})
@Override
@Override
public
void
startUp
(
IngestJobContext
context
)
throws
IngestModuleException
{
public
void
startUp
(
IngestJobContext
context
)
throws
IngestModuleException
{
this
.
context
=
context
;
this
.
context
=
context
;
...
@@ -102,7 +102,7 @@ public void startUp(IngestJobContext context) throws IngestModuleException {
...
@@ -102,7 +102,7 @@ public void startUp(IngestJobContext context) throws IngestModuleException {
try
{
try
{
aLeappFileProcessor
=
new
LeappFileProcessor
(
XMLFILE
,
ALeappAnalyzerModuleFactory
.
getModuleName
(),
ALEAPP
,
context
);
aLeappFileProcessor
=
new
LeappFileProcessor
(
XMLFILE
,
ALeappAnalyzerModuleFactory
.
getModuleName
(),
ALEAPP
,
context
);
}
catch
(
IOException
|
IngestModuleException
|
NoCurrentCaseException
ex
)
{
}
catch
(
IOException
|
IngestModuleException
|
NoCurrentCaseException
ex
)
{
throw
new
IngestModuleException
(
Bundle
.
ALeappAnalyzerIngestModule_error_
i
leapp_file_processor_init
(),
ex
);
throw
new
IngestModuleException
(
Bundle
.
ALeappAnalyzerIngestModule_error_
a
leapp_file_processor_init
(),
ex
);
}
}
try
{
try
{
...
@@ -148,7 +148,7 @@ public ProcessResult process(Content dataSource, DataSourceIngestModuleProgress
...
@@ -148,7 +148,7 @@ public ProcessResult process(Content dataSource, DataSourceIngestModuleProgress
writeErrorMsgToIngestInbox
();
writeErrorMsgToIngestInbox
();
return
ProcessResult
.
ERROR
;
return
ProcessResult
.
ERROR
;
}
}
aLeappPathsToProcess
=
load
I
leappPathFile
(
tempOutputPath
);
aLeappPathsToProcess
=
load
A
leappPathFile
(
tempOutputPath
);
if
(
aLeappPathsToProcess
.
isEmpty
())
{
if
(
aLeappPathsToProcess
.
isEmpty
())
{
logger
.
log
(
Level
.
SEVERE
,
String
.
format
(
"Error getting file paths to search, list is empty"
));
logger
.
log
(
Level
.
SEVERE
,
String
.
format
(
"Error getting file paths to search, list is empty"
));
writeErrorMsgToIngestInbox
();
writeErrorMsgToIngestInbox
();
...
@@ -178,7 +178,7 @@ public ProcessResult process(Content dataSource, DataSourceIngestModuleProgress
...
@@ -178,7 +178,7 @@ public ProcessResult process(Content dataSource, DataSourceIngestModuleProgress
}
}
statusHelper
.
switchToIndeterminate
();
statusHelper
.
switchToIndeterminate
();
statusHelper
.
progress
(
Bundle
.
I
LeappAnalyzerIngestModule_processing_
i
Leapp_results
());
statusHelper
.
progress
(
Bundle
.
A
LeappAnalyzerIngestModule_processing_
a
Leapp_results
());
extractFilesFromDataSource
(
dataSource
,
aLeappPathsToProcess
,
tempOutputPath
);
extractFilesFromDataSource
(
dataSource
,
aLeappPathsToProcess
,
tempOutputPath
);
processALeappFs
(
dataSource
,
currentCase
,
statusHelper
,
tempOutputPath
.
toString
());
processALeappFs
(
dataSource
,
currentCase
,
statusHelper
,
tempOutputPath
.
toString
());
...
@@ -219,7 +219,7 @@ private void processALeappFile(Content dataSource, Case currentCase, DataSourceI
...
@@ -219,7 +219,7 @@ private void processALeappFile(Content dataSource, Case currentCase, DataSourceI
return
;
return
;
}
}
add
I
LeappReportToReports
(
moduleOutputPath
,
currentCase
);
add
A
LeappReportToReports
(
moduleOutputPath
,
currentCase
);
}
catch
(
IOException
ex
)
{
}
catch
(
IOException
ex
)
{
logger
.
log
(
Level
.
SEVERE
,
String
.
format
(
"Error when trying to execute aLeapp program against file %s"
,
aLeappFile
.
getLocalAbsPath
()),
ex
);
logger
.
log
(
Level
.
SEVERE
,
String
.
format
(
"Error when trying to execute aLeapp program against file %s"
,
aLeappFile
.
getLocalAbsPath
()),
ex
);
...
@@ -227,7 +227,7 @@ private void processALeappFile(Content dataSource, Case currentCase, DataSourceI
...
@@ -227,7 +227,7 @@ private void processALeappFile(Content dataSource, Case currentCase, DataSourceI
}
}
if
(
context
.
dataSourceIngestIsCancelled
())
{
if
(
context
.
dataSourceIngestIsCancelled
())
{
logger
.
log
(
Level
.
INFO
,
"
I
Leapp Analyser ingest module run was canceled"
);
//NON-NLS
logger
.
log
(
Level
.
INFO
,
"
a
Leapp Analyser ingest module run was canceled"
);
//NON-NLS
return
;
return
;
}
}
...
@@ -262,7 +262,7 @@ private void processALeappFs(Content dataSource, Case currentCase, DataSourceIng
...
@@ -262,7 +262,7 @@ private void processALeappFs(Content dataSource, Case currentCase, DataSourceIng
return
;
return
;
}
}
add
I
LeappReportToReports
(
moduleOutputPath
,
currentCase
);
add
A
LeappReportToReports
(
moduleOutputPath
,
currentCase
);
}
catch
(
IOException
ex
)
{
}
catch
(
IOException
ex
)
{
logger
.
log
(
Level
.
SEVERE
,
String
.
format
(
"Error when trying to execute aLeapp program against file system"
),
ex
);
logger
.
log
(
Level
.
SEVERE
,
String
.
format
(
"Error when trying to execute aLeapp program against file system"
),
ex
);
...
@@ -270,7 +270,7 @@ private void processALeappFs(Content dataSource, Case currentCase, DataSourceIng
...
@@ -270,7 +270,7 @@ private void processALeappFs(Content dataSource, Case currentCase, DataSourceIng
}
}
if
(
context
.
dataSourceIngestIsCancelled
())
{
if
(
context
.
dataSourceIngestIsCancelled
())
{
logger
.
log
(
Level
.
INFO
,
"
I
Leapp Analyser ingest module run was canceled"
);
//NON-NLS
logger
.
log
(
Level
.
INFO
,
"
a
Leapp Analyser ingest module run was canceled"
);
//NON-NLS
return
;
return
;
}
}
...
@@ -335,7 +335,7 @@ private static File locateExecutable(String executableName) throws FileNotFoundE
...
@@ -335,7 +335,7 @@ private static File locateExecutable(String executableName) throws FileNotFoundE
* Find the index.html file in the aLeapp output directory so it can be
* Find the index.html file in the aLeapp output directory so it can be
* added to reports
* added to reports
*/
*/
private
void
add
I
LeappReportToReports
(
Path
aLeappOutputDir
,
Case
currentCase
)
{
private
void
add
A
LeappReportToReports
(
Path
aLeappOutputDir
,
Case
currentCase
)
{
List
<
String
>
allIndexFiles
=
new
ArrayList
<>();
List
<
String
>
allIndexFiles
=
new
ArrayList
<>();
try
(
Stream
<
Path
>
walk
=
Files
.
walk
(
aLeappOutputDir
))
{
try
(
Stream
<
Path
>
walk
=
Files
.
walk
(
aLeappOutputDir
))
{
...
@@ -363,7 +363,7 @@ private void addILeappReportToReports(Path aLeappOutputDir, Case currentCase) {
...
@@ -363,7 +363,7 @@ private void addILeappReportToReports(Path aLeappOutputDir, Case currentCase) {
* Reads the aLeapp paths file to get the paths that we want to extract
* Reads the aLeapp paths file to get the paths that we want to extract
*
*
*/
*/
private
List
<
String
>
load
I
leappPathFile
(
Path
moduleOutputPath
)
throws
FileNotFoundException
,
IOException
{
private
List
<
String
>
load
A
leappPathFile
(
Path
moduleOutputPath
)
throws
FileNotFoundException
,
IOException
{
List
<
String
>
aLeappPathsToProcess
=
new
ArrayList
<>();
List
<
String
>
aLeappPathsToProcess
=
new
ArrayList
<>();
Path
filePath
=
Paths
.
get
(
moduleOutputPath
.
toString
(),
ALEAPP_PATHS_FILE
);
Path
filePath
=
Paths
.
get
(
moduleOutputPath
.
toString
(),
ALEAPP_PATHS_FILE
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment