Autopsy
4.7.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Classes | |
interface | ProcessTerminator |
class | StreamToStringRedirect |
class | StreamToWriterRedirect |
class | TimedProcessTerminator |
Public Member Functions | |
synchronized String | execute (final String aCommand, final String...params) throws IOException, InterruptedException |
synchronized void | execute (final Writer stdoutWriter, final String aCommand, final String...params) throws IOException, InterruptedException |
synchronized int | getExitValue () |
synchronized void | stop () |
Static Public Member Functions | |
static int | execute (ProcessBuilder processBuilder) throws SecurityException, IOException |
static int | execute (ProcessBuilder processBuilder, ProcessTerminator terminator) throws SecurityException, IOException |
static int | execute (ProcessBuilder processBuilder, long timeOut, TimeUnit units, ProcessTerminator terminator) throws SecurityException, IOException |
static void | killProcess (Process process) |
Private Attributes | |
ExecUtil.StreamToStringRedirect | errorStringRedirect = null |
int | exitValue = -100 |
ExecUtil.StreamToStringRedirect | outputStringRedirect = null |
ExecUtil.StreamToWriterRedirect | outputWriterRedirect = null |
Process | proc = null |
Static Private Attributes | |
static final long | DEFAULT_TIMEOUT = 5 |
static final TimeUnit | DEFAULT_TIMEOUT_UNITS = TimeUnit.SECONDS |
static final Logger | logger = Logger.getLogger(ExecUtil.class.getName()) |
Executes a command line using an operating system process with a configurable timeout and pluggable logic to kill or continue the process on timeout.
Definition at line 37 of file ExecUtil.java.
|
static |
Runs a process without a timeout and terminator.
processBuilder | A process builder used to configure and construct the process to be run. |
SecurityException | if a security manager exists and vetoes any aspect of running the process. |
IOException | if an I/O error occurs. |
Definition at line 118 of file ExecUtil.java.
References org.sleuthkit.autopsy.coreutils.ExecUtil.execute().
Referenced by org.sleuthkit.autopsy.coreutils.ExecUtil.execute(), and org.sleuthkit.autopsy.casemodule.LocalFilesDSProcessor.extractLogicalEvidenceFileContents().
|
static |
Runs a process using the default timeout and a custom terminator.
processBuilder | A process builder used to configure and construct the process to be run. |
terminator | The terminator. |
SecurityException | if a security manager exists and vetoes any aspect of running the process. |
IOException | if an I/O error occurs. |
Definition at line 140 of file ExecUtil.java.
References org.sleuthkit.autopsy.coreutils.ExecUtil.DEFAULT_TIMEOUT, org.sleuthkit.autopsy.coreutils.ExecUtil.DEFAULT_TIMEOUT_UNITS, and org.sleuthkit.autopsy.coreutils.ExecUtil.execute().
|
static |
Runs a process using a custom terminator.
processBuilder | A process builder used to configure and construct the process to be run. |
timeOut | The duration of the timeout. |
units | The units for the timeout. |
terminator | The terminator. |
SecurityException | if a security manager exists and vetoes any aspect of running the process. |
IOException | if an I/o error occurs. |
Definition at line 159 of file ExecUtil.java.
References org.sleuthkit.autopsy.coreutils.Logger.getLogger(), and org.sleuthkit.autopsy.coreutils.ExecUtil.killProcess().
synchronized String org.sleuthkit.autopsy.coreutils.ExecUtil.execute | ( | final String | aCommand, |
final String... | params | ||
) | throws IOException, InterruptedException |
Execute a process. Redirect asynchronously stdout to a string and stderr to nowhere. Use only for small outputs, otherwise use the execute() variant with Writer.
aCommand | command to be executed |
params | parameters of the command |
Definition at line 236 of file ExecUtil.java.
References org.sleuthkit.autopsy.coreutils.ExecUtil.errorStringRedirect, and org.sleuthkit.autopsy.coreutils.ExecUtil.outputStringRedirect.
synchronized void org.sleuthkit.autopsy.coreutils.ExecUtil.execute | ( | final Writer | stdoutWriter, |
final String | aCommand, | ||
final String... | params | ||
) | throws IOException, InterruptedException |
Execute a process. Redirect asynchronously stdout to a passed in writer and stderr to nowhere.
stdoutWriter | file writer to write stdout to |
aCommand | command to be executed |
params | parameters of the command |
Definition at line 283 of file ExecUtil.java.
References org.sleuthkit.autopsy.coreutils.ExecUtil.errorStringRedirect, and org.sleuthkit.autopsy.coreutils.ExecUtil.outputWriterRedirect.
synchronized int org.sleuthkit.autopsy.coreutils.ExecUtil.getExitValue | ( | ) |
Gets the exit value returned by the subprocess used to execute a command.
Definition at line 356 of file ExecUtil.java.
References org.sleuthkit.autopsy.coreutils.ExecUtil.exitValue.
|
static |
Kills a process and its children
process | The parent process to kill |
Definition at line 193 of file ExecUtil.java.
References org.sleuthkit.autopsy.coreutils.Win32Process.getChildren(), org.sleuthkit.autopsy.coreutils.ExecUtil.logger, and org.sleuthkit.autopsy.coreutils.Win32Process.terminate().
Referenced by org.sleuthkit.autopsy.coreutils.ExecUtil.execute().
synchronized void org.sleuthkit.autopsy.coreutils.ExecUtil.stop | ( | ) |
Interrupt the running process and stop its stream redirect threads
Definition at line 326 of file ExecUtil.java.
References org.sleuthkit.autopsy.coreutils.ExecUtil.errorStringRedirect, org.sleuthkit.autopsy.coreutils.ExecUtil.outputStringRedirect, and org.sleuthkit.autopsy.coreutils.ExecUtil.outputWriterRedirect.
|
staticprivate |
Definition at line 39 of file ExecUtil.java.
Referenced by org.sleuthkit.autopsy.coreutils.ExecUtil.execute().
|
staticprivate |
Definition at line 40 of file ExecUtil.java.
Referenced by org.sleuthkit.autopsy.coreutils.ExecUtil.execute().
|
private |
Definition at line 220 of file ExecUtil.java.
Referenced by org.sleuthkit.autopsy.coreutils.ExecUtil.execute(), and org.sleuthkit.autopsy.coreutils.ExecUtil.stop().
|
private |
Definition at line 223 of file ExecUtil.java.
Referenced by org.sleuthkit.autopsy.coreutils.ExecUtil.getExitValue().
|
staticprivate |
EVERYTHING FOLLOWING THIS LINE IS DEPRECATED AND SLATED FOR REMOVAL
Definition at line 218 of file ExecUtil.java.
Referenced by org.sleuthkit.autopsy.coreutils.ExecUtil.killProcess().
|
private |
Definition at line 221 of file ExecUtil.java.
Referenced by org.sleuthkit.autopsy.coreutils.ExecUtil.execute(), and org.sleuthkit.autopsy.coreutils.ExecUtil.stop().
|
private |
Definition at line 222 of file ExecUtil.java.
Referenced by org.sleuthkit.autopsy.coreutils.ExecUtil.execute(), and org.sleuthkit.autopsy.coreutils.ExecUtil.stop().
|
private |
Definition at line 219 of file ExecUtil.java.
Copyright © 2012-2016 Basis Technology. Generated on: Mon Jun 18 2018
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.