
通过 jvm 启动参数 以及 jps pid进行拦截非法参数
Javascript interpreter.Intercept illegal parameters via JVM startup parameters and jps pid.

-----------------------load......
cve-2022-42889 check start
cve-2022-42889 is_deep_match org.apache.commons.text.StringSubstitutor
md.getReturnType().getActualName() java.lang.String
[cve-2022-42899] class found!: class org.apache.commons.text.StringSubstitutor
(StringSubstitutor replace disabled)
[CVE 2022-42889] StringSubstitutorclass org.apache.commons.text.StringSubstitutor: (sanitized) PoC Output: %_script:javascript:195 + 324_
by arksec.cn
Using the Attach API to remotely load a Java agent will no longer execute before the main method, depending on when another virtual machine invokes the Attach API. Furthermore, it no longer runs the premain method, but instead runs a method called agentmain. The Java virtual machine does not limit the number of Java agents. You can append multiple
-javaagentparameters after the java command, or remotely attach multiple Java agents. The Java virtual machine will execute these Java agents in the order they are defined or attached.
-javaagent:/path/to/dir/CVE-2022-42889-Agent-1.0-SNAPSHOT-jar-with-dependencies.jar
Attach (first import tools.jar)