Autopsy
4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Public Member Functions | |
AutopsyTestCases (boolean isMultiUser) | |
void | screenshot (String name) |
void | testAddSourceWizard1 () |
void | testConfigureHash () |
void | testConfigureIngest1 () |
void | testConfigureIngest2 () |
void | testConfigureSearch () |
void | testExpandDataSourcesTree () |
void | testGenerateReportButton () throws IOException |
void | testGenerateReportToolbar () |
void | testIngest () |
void | testNewCaseWizard () |
void | testNewCaseWizardOpen (String title) |
void | testStartAddImageFileDataSource () |
void | testStartAddLogicalFilesDataSource () |
Static Public Member Functions | |
static String | getEscapedPath (String path) |
Private Member Functions | |
void | expandNodes (JTreeOperator jto, TreePath tp) |
void | logSystemDiagnostics () |
void | setMultiUserPerferences () |
Timeouts | setTimeout (String name, int value) |
Static Private Member Functions | |
static< T > List< T > | getFilteredLimited (List< Map< String, String >> objects, Function< Map< String, String >, T > keyObjMapper, Comparator< T > comparator) |
static List< Pair< String, Long > > | getKeyValLimited (List< Map< String, String >> objects, String keyId, String valId) |
static String | getProcStdOut (String...cmd) throws IOException |
static String | getSystemDiagnostics () |
static String | getWmicString (String wmicQuery, String key) throws IOException |
static List< Map< String, String > > | getWmicTable (String cmd) throws IOException |
Private Attributes | |
long | start |
Static Private Attributes | |
static final long | DIALOG_FIND_TIMEOUT_MINUTES = 5 |
static final Pattern | EQUALS_PATTERN = Pattern.compile("^([^=]*)=(.*)$") |
static Set< String > | IGNORED_PROCESSES = Stream.of("_Total", "Idle", "Memory Compression").collect(Collectors.toSet()) |
static final Logger | logger = Logger.getLogger(AutopsyTestCases.class.getName()) |
static final String | NEWLINE = System.lineSeparator() |
static final int | TOP_NUM = 10 |
Definition at line 84 of file AutopsyTestCases.java.
org.sleuthkit.autopsy.testing.AutopsyTestCases.AutopsyTestCases | ( | boolean | isMultiUser | ) |
Definition at line 114 of file AutopsyTestCases.java.
References org.sleuthkit.autopsy.core.UserPreferences.setIsMultiUserModeEnabled(), and org.sleuthkit.autopsy.testing.AutopsyTestCases.setMultiUserPerferences().
|
private |
Definition at line 518 of file AutopsyTestCases.java.
References org.sleuthkit.autopsy.testing.AutopsyTestCases.logSystemDiagnostics().
Referenced by org.sleuthkit.autopsy.testing.AutopsyTestCases.testExpandDataSourcesTree().
|
static |
Escapes the slashes in a file or directory path.
path | The path to be escaped. |
Definition at line 103 of file AutopsyTestCases.java.
Referenced by org.sleuthkit.autopsy.testing.AutopsyTestCases.screenshot(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testConfigureHash(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testConfigureSearch(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testNewCaseWizard(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testStartAddImageFileDataSource(), and org.sleuthkit.autopsy.testing.AutopsyTestCases.testStartAddLogicalFilesDataSource().
|
staticprivate |
Returns a list of a given type limited to TOP_NUM of the first values.
objects | The objects to sort and filter. |
keyObjMapper | Maps the list of map objects to the new new value. |
comparator | Comparator determining first values. |
Definition at line 697 of file AutopsyTestCases.java.
Referenced by org.sleuthkit.autopsy.testing.AutopsyTestCases.getKeyValLimited(), and org.sleuthkit.autopsy.testing.AutopsyTestCases.getSystemDiagnostics().
|
staticprivate |
Returns a pair of a string key and long number value limited to TOP_NUM of the highest number values.
objects | The list of objects. |
keyId | The id of the key in the map. |
valId | The id of the value in the map. |
Definition at line 672 of file AutopsyTestCases.java.
References org.sleuthkit.autopsy.testing.AutopsyTestCases.getFilteredLimited().
Referenced by org.sleuthkit.autopsy.testing.AutopsyTestCases.getSystemDiagnostics().
|
staticprivate |
Runs the command line entry returning standard output.
cmd | The command. |
IOException |
Definition at line 712 of file AutopsyTestCases.java.
Referenced by org.sleuthkit.autopsy.testing.AutopsyTestCases.getWmicTable().
|
staticprivate |
NOTE: currently only works for windows.
Definition at line 548 of file AutopsyTestCases.java.
References org.sleuthkit.autopsy.testing.AutopsyTestCases.getFilteredLimited(), org.sleuthkit.autopsy.testing.AutopsyTestCases.getKeyValLimited(), org.sleuthkit.autopsy.testing.AutopsyTestCases.getWmicString(), org.sleuthkit.autopsy.testing.AutopsyTestCases.getWmicTable(), org.sleuthkit.autopsy.coreutils.PlatformUtil.isWindowsOS(), and org.sleuthkit.autopsy.testing.AutopsyTestCases.NEWLINE.
Referenced by org.sleuthkit.autopsy.testing.AutopsyTestCases.logSystemDiagnostics().
|
staticprivate |
Returns a string from a wmic query.
wmicQuery | The wmic query. |
key | The key column to return. |
IOException |
Definition at line 767 of file AutopsyTestCases.java.
References org.sleuthkit.autopsy.testing.AutopsyTestCases.getWmicTable().
Referenced by org.sleuthkit.autopsy.testing.AutopsyTestCases.getSystemDiagnostics().
|
staticprivate |
Returns a list of maps mapping the wmic header column (lower cased) to the value for the row.
cmd | The wmic command to run. |
IOException |
Definition at line 731 of file AutopsyTestCases.java.
References org.sleuthkit.autopsy.testing.AutopsyTestCases.getProcStdOut().
Referenced by org.sleuthkit.autopsy.testing.AutopsyTestCases.getSystemDiagnostics(), and org.sleuthkit.autopsy.testing.AutopsyTestCases.getWmicString().
|
private |
Definition at line 531 of file AutopsyTestCases.java.
References org.sleuthkit.autopsy.testing.AutopsyTestCases.getSystemDiagnostics().
Referenced by org.sleuthkit.autopsy.testing.AutopsyTestCases.expandNodes(), org.sleuthkit.autopsy.testing.AutopsyTestCases.setMultiUserPerferences(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testAddSourceWizard1(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testConfigureHash(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testConfigureIngest1(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testConfigureIngest2(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testConfigureSearch(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testExpandDataSourcesTree(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testGenerateReportButton(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testGenerateReportToolbar(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testIngest(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testNewCaseWizard(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testNewCaseWizardOpen(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testStartAddImageFileDataSource(), and org.sleuthkit.autopsy.testing.AutopsyTestCases.testStartAddLogicalFilesDataSource().
void org.sleuthkit.autopsy.testing.AutopsyTestCases.screenshot | ( | String | name | ) |
Definition at line 454 of file AutopsyTestCases.java.
References org.sleuthkit.autopsy.testing.AutopsyTestCases.getEscapedPath().
Referenced by org.sleuthkit.autopsy.testing.AutopsyTestCases.testAddSourceWizard1(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testConfigureHash(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testConfigureIngest1(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testConfigureIngest2(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testConfigureSearch(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testExpandDataSourcesTree(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testGenerateReportButton(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testGenerateReportToolbar(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testIngest(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testNewCaseWizard(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testNewCaseWizardOpen(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testStartAddImageFileDataSource(), and org.sleuthkit.autopsy.testing.AutopsyTestCases.testStartAddLogicalFilesDataSource().
|
private |
Definition at line 483 of file AutopsyTestCases.java.
References org.sleuthkit.autopsy.testing.AutopsyTestCases.logSystemDiagnostics(), org.sleuthkit.autopsy.core.UserPreferences.setDatabaseConnectionInfo(), org.sleuthkit.autopsy.core.UserPreferences.setIndexingServerHost(), org.sleuthkit.autopsy.core.UserPreferences.setIndexingServerPort(), org.sleuthkit.autopsy.core.UserPreferences.setIsMultiUserModeEnabled(), org.sleuthkit.autopsy.core.UserPreferences.setMessageServiceConnectionInfo(), org.sleuthkit.autopsy.core.UserPreferences.setZkServerHost(), and org.sleuthkit.autopsy.core.UserPreferences.setZkServerPort().
Referenced by org.sleuthkit.autopsy.testing.AutopsyTestCases.AutopsyTestCases().
|
private |
Definition at line 477 of file AutopsyTestCases.java.
Referenced by org.sleuthkit.autopsy.testing.AutopsyTestCases.testGenerateReportButton(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testNewCaseWizardOpen(), org.sleuthkit.autopsy.testing.AutopsyTestCases.testStartAddImageFileDataSource(), and org.sleuthkit.autopsy.testing.AutopsyTestCases.testStartAddLogicalFilesDataSource().
void org.sleuthkit.autopsy.testing.AutopsyTestCases.testAddSourceWizard1 | ( | ) |
void org.sleuthkit.autopsy.testing.AutopsyTestCases.testConfigureHash | ( | ) |
void org.sleuthkit.autopsy.testing.AutopsyTestCases.testConfigureIngest1 | ( | ) |
Definition at line 245 of file AutopsyTestCases.java.
References org.sleuthkit.autopsy.testing.AutopsyTestCases.logSystemDiagnostics(), and org.sleuthkit.autopsy.testing.AutopsyTestCases.screenshot().
void org.sleuthkit.autopsy.testing.AutopsyTestCases.testConfigureIngest2 | ( | ) |
Definition at line 312 of file AutopsyTestCases.java.
References org.sleuthkit.autopsy.testing.AutopsyTestCases.logSystemDiagnostics(), and org.sleuthkit.autopsy.testing.AutopsyTestCases.screenshot().
void org.sleuthkit.autopsy.testing.AutopsyTestCases.testConfigureSearch | ( | ) |
void org.sleuthkit.autopsy.testing.AutopsyTestCases.testExpandDataSourcesTree | ( | ) |
void org.sleuthkit.autopsy.testing.AutopsyTestCases.testGenerateReportButton | ( | ) | throws IOException |
void org.sleuthkit.autopsy.testing.AutopsyTestCases.testGenerateReportToolbar | ( | ) |
Definition at line 405 of file AutopsyTestCases.java.
References org.sleuthkit.autopsy.testing.AutopsyTestCases.logSystemDiagnostics(), and org.sleuthkit.autopsy.testing.AutopsyTestCases.screenshot().
void org.sleuthkit.autopsy.testing.AutopsyTestCases.testIngest | ( | ) |
Definition at line 367 of file AutopsyTestCases.java.
References org.sleuthkit.autopsy.ingest.IngestManager.getInstance(), org.sleuthkit.autopsy.ingest.IngestManager.isIngestRunning(), org.sleuthkit.autopsy.testing.AutopsyTestCases.logSystemDiagnostics(), and org.sleuthkit.autopsy.testing.AutopsyTestCases.screenshot().
void org.sleuthkit.autopsy.testing.AutopsyTestCases.testNewCaseWizard | ( | ) |
void org.sleuthkit.autopsy.testing.AutopsyTestCases.testNewCaseWizardOpen | ( | String | title | ) |
void org.sleuthkit.autopsy.testing.AutopsyTestCases.testStartAddImageFileDataSource | ( | ) |
Definition at line 159 of file AutopsyTestCases.java.
References org.sleuthkit.autopsy.testing.AutopsyTestCases.getEscapedPath(), org.sleuthkit.autopsy.testing.AutopsyTestCases.logSystemDiagnostics(), org.sleuthkit.autopsy.testing.AutopsyTestCases.screenshot(), and org.sleuthkit.autopsy.testing.AutopsyTestCases.setTimeout().
void org.sleuthkit.autopsy.testing.AutopsyTestCases.testStartAddLogicalFilesDataSource | ( | ) |
Definition at line 194 of file AutopsyTestCases.java.
References org.sleuthkit.autopsy.testing.AutopsyTestCases.getEscapedPath(), org.sleuthkit.autopsy.testing.AutopsyTestCases.logSystemDiagnostics(), org.sleuthkit.autopsy.testing.AutopsyTestCases.screenshot(), and org.sleuthkit.autopsy.testing.AutopsyTestCases.setTimeout().
|
staticprivate |
Definition at line 90 of file AutopsyTestCases.java.
|
staticprivate |
Definition at line 719 of file AutopsyTestCases.java.
|
staticprivate |
Definition at line 539 of file AutopsyTestCases.java.
|
staticprivate |
Definition at line 86 of file AutopsyTestCases.java.
|
staticprivate |
Definition at line 535 of file AutopsyTestCases.java.
Referenced by org.sleuthkit.autopsy.testing.AutopsyTestCases.getSystemDiagnostics().
|
private |
Definition at line 87 of file AutopsyTestCases.java.
Referenced by org.sleuthkit.autopsy.testing.AutopsyTestCases.testAddSourceWizard1().
|
staticprivate |
Definition at line 537 of file AutopsyTestCases.java.
Copyright © 2012-2022 Basis Technology. Generated on: Tue Jun 27 2023
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.