Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
org.jprocesses:jProcesses
Advanced tools
Get crossplatform processes details with Java
To install jProcesses you can add the dependecy to your software project management tool: http://mvnrepository.com/artifact/org.jprocesses/jProcesses/1.6.4
For example, for Maven you have just to add to your pom.xml:
<dependency>
<groupId>org.jprocesses</groupId>
<artifactId>jProcesses</artifactId>
<version>1.6.4</version>
</dependency>
Instead, you can direct download the JAR file and add it to your classpath. http://central.maven.org/maven2/org/jprocesses/jProcesses/1.6.4/jProcesses-1.6.4.jar
The only dependency you will need to add to the classpath is WMI4Java. You can download de JAR file here.
List<ProcessInfo> processesList = JProcesses.getProcessList();
for (final ProcessInfo processInfo : processesList) {
System.out.println("Process PID: " + processInfo.getPid());
System.out.println("Process Name: " + processInfo.getName());
System.out.println("Process Time: " + processInfo.getTime());
System.out.println("User: " + processInfo.getUser());
System.out.println("Virtual Memory: " + processInfo.getVirtualMemory());
System.out.println("Physical Memory: " + processInfo.getPhysicalMemory());
System.out.println("CPU usage: " + processInfo.getCpuUsage());
System.out.println("Start Time: " + processInfo.getStartTime());
System.out.println("Priority: " + processInfo.getPriority());
System.out.println("Full command: " + processInfo.getCommand());
System.out.println("------------------");
}
boolean success = JProcesses.killProcess(3844).isSuccess();
Unix/Mac:
boolean ok = JProcesses.changePriority(3844, 5).isSuccess();
Windows:
boolean ok = JProcesses.changePriority(3844, WindowsPriority.HIGH).isSuccess();
Webpage: http://www.jprocesses.org
@jkuharev: for his help to make jProcess work on Mac
@Gobliins: for fixing executeCommand hang with lots of process using ProcessBuilder
@janhoy: for his contribution that fix long date parsing with locales different from english (Norwegian in his case)
FAQs
Library to manage system processes using Java
We found that org.jprocesses:jProcesses demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.