I'm new to both forensics and java. I just learnt java and I find it quite useful. Recently, I am learning how to integrate commands into the java coding. Is this possible?
I am currently using volatility (CLI) software. I am trying to create a GUI version of it. I have started on some basic research on it and I find it really interesting. However, I do not know how to integrate the commands into java.
Thank you. Any help will be greatly appreciated.
Cheers,
Linify
Edit: Here's how the coding is.
try
{
Runtime rt = Runtime.getRuntime();
Process p = rt.exec("cmd.exe /c start cd C:/Users/User/Desktop/DumpIt &");
BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));
String line=null;
while((line=input.readLine()) != null)
{
System.out.println(line);
}
int exitVal = p.waitFor();
System.out.println("Exited with error code " +exitVal);
}
catch (Exception e)
{
System.out.println(e.toString());
e.printStackTrace();
}