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.springframework.shell:spring-shell-table
Advanced tools
= Spring Shell image:https://img.shields.io/badge/Revved%20up%20by-Develocity-06A0CE?logo=Gradle&labelColor=02303A["Revved up by Develocity", link="https://ge.spring.io/scans?search.rootProjectNames=spring-shell"]
Spring Shell helps you to create Spring-powered, production-grade applications targeting CLI space. It takes an opinionated view of the Spring platform so that new and existing users can quickly get to the bits they need.
You can use Spring Shell to create stand-alone Java applications that can be started using java -jar or more sophisticated GraalVM native ways to create platform dependant apps.
Our primary goals are:
== Installation and Getting Started
Here is a quick teaser of a complete Spring Shell application in Java:
import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.shell.standard.ShellComponent; import org.springframework.shell.standard.ShellMethod;
@SpringBootApplication @ShellComponent public class DemoApplication {
@ShellMethod
public String hi() {
return "hi";
}
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
Running it as jar interactive:
$ java -jar demo.jar
shell:>help AVAILABLE COMMANDS
Built-In Commands help: Display help about available commands stacktrace: Display the full stacktrace of the last error. clear: Clear the shell screen. quit, exit: Exit the shell. history: Display or save the history of previously run commands version: Show version info script: Read and execute commands from a file.
Demo Application hi:
Running it as jar non-interactive:
$ java -jar demo.jar hi
== Getting Help Are you having trouble with Spring Shell? We want to help!
== Reporting Issues Spring Shell uses GitHub's integrated issue tracking system to record bugs and feature requests. If you want to raise an issue, please follow the recommendations below:
== Building from Source
Active development branch is main
targeting work for 3.2.x
. 3.1.x
, 3.0.x
and 2.1.x
are for maintaining current active releases.
Building and running tests:
./gradlew build
Publishing to local maven cache:
./gradlew publishToMavenLocal
== Example
https://github.com/spring-projects/spring-shell/tree/main/spring-shell-samples/[Samples] contains various examples how to use spring-shell
.
./gradlew :spring-shell-samples:spring-shell-sample-catalog:build -x test
./gradlew :spring-shell-samples:spring-shell-sample-commands:build -x test
./gradlew :spring-shell-samples:spring-shell-sample-e2e:build -x test
Native build can be enabled using property -PspringShellSampleNative=true
. On linux a musl
can be activated with -PspringShellSampleMusl=true
. Note that musl needs to be properly configured in the environment.
== License Spring Shell is Open Source software released under the https://www.apache.org/licenses/LICENSE-2.0.html[Apache 2.0 license].
FAQs
Spring Shell Table
We found that org.springframework.shell:spring-shell-table demonstrated a healthy version release cadence and project activity because the last version was released less than 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.