mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-22 23:11:52 +08:00
fix: boot-ui not behinder select option
This commit is contained in:
@@ -12,15 +12,6 @@ import java.util.Map;
|
||||
* @since 2024/12/7
|
||||
*/
|
||||
public abstract class AbstractShell {
|
||||
|
||||
/**
|
||||
* 获取当前支持的内存马功能列表
|
||||
*
|
||||
* @return supported tool lists
|
||||
*/
|
||||
public abstract List<ShellTool> getSupportedShellTools();
|
||||
|
||||
|
||||
/**
|
||||
* 获取内存马功能所支持的注入类型列表
|
||||
*
|
||||
@@ -36,22 +27,6 @@ public abstract class AbstractShell {
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查 shellConfig 的配置是否有效
|
||||
*
|
||||
* @param shellConfig 内存马生成配置
|
||||
* @return valid
|
||||
*/
|
||||
public boolean isValid(ShellConfig shellConfig) {
|
||||
List<ShellTool> supportedShellTools = getSupportedShellTools();
|
||||
if (!supportedShellTools.contains(shellConfig.getShellTool())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
List<String> supportedShellTypes = getSupportedShellTypes(shellConfig.getShellTool());
|
||||
return supportedShellTypes.contains(shellConfig.getShellType());
|
||||
}
|
||||
|
||||
public GenerateResult generate(ShellConfig shellConfig, InjectorConfig injectorConfig, ShellToolConfig shellToolConfig) {
|
||||
Pair<Class<?>, Class<?>> shellInjectorPair = getShellInjectorPair(shellConfig.getShellTool(), shellConfig.getShellType());
|
||||
if (shellInjectorPair == null) {
|
||||
|
||||
@@ -27,11 +27,6 @@ public class GlassFishShell extends AbstractShell {
|
||||
public static final String VALVE = "Valve";
|
||||
public static final String JAKARTA_VALVE = "JakartaValve";
|
||||
|
||||
@Override
|
||||
public List<ShellTool> getSupportedShellTools() {
|
||||
return List.of(ShellTool.Command, ShellTool.Godzilla);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Map<String, Pair<Class<?>, Class<?>>> getCommandShellMap() {
|
||||
return Map.of(
|
||||
|
||||
@@ -21,11 +21,6 @@ import java.util.Map;
|
||||
*/
|
||||
public class JbossShell extends AbstractShell {
|
||||
|
||||
@Override
|
||||
public List<ShellTool> getSupportedShellTools() {
|
||||
return List.of(ShellTool.Command, ShellTool.Godzilla);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Map<String, Pair<Class<?>, Class<?>>> getCommandShellMap() {
|
||||
return Map.of(
|
||||
|
||||
@@ -26,11 +26,6 @@ import static com.reajason.javaweb.memshell.config.Constants.*;
|
||||
*/
|
||||
public class JettyShell extends AbstractShell {
|
||||
|
||||
@Override
|
||||
public List<ShellTool> getSupportedShellTools() {
|
||||
return List.of(ShellTool.Godzilla, ShellTool.Command);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Map<String, Pair<Class<?>, Class<?>>> getCommandShellMap() {
|
||||
return Map.of(
|
||||
|
||||
@@ -27,11 +27,6 @@ public class PayaraShell extends AbstractShell {
|
||||
public static final String VALVE = "Valve";
|
||||
public static final String JAKARTA_VALVE = "JakartaValve";
|
||||
|
||||
@Override
|
||||
public List<ShellTool> getSupportedShellTools() {
|
||||
return List.of(ShellTool.Command, ShellTool.Godzilla);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Map<String, Pair<Class<?>, Class<?>>> getCommandShellMap() {
|
||||
return Map.of(
|
||||
|
||||
@@ -24,10 +24,6 @@ import java.util.Map;
|
||||
* @since 2024/12/14
|
||||
*/
|
||||
public class ResinShell extends AbstractShell {
|
||||
@Override
|
||||
public List<ShellTool> getSupportedShellTools() {
|
||||
return List.of(ShellTool.Godzilla, ShellTool.Command);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Map<String, Pair<Class<?>, Class<?>>> getCommandShellMap() {
|
||||
|
||||
@@ -24,11 +24,6 @@ public class SpringMVCShell extends AbstractShell {
|
||||
public static final String CONTROLLER_HANDLER = "ControllerHandler";
|
||||
public static final String JAKARTA_CONTROLLER_HANDLER = "JakartaControllerHandler";
|
||||
|
||||
@Override
|
||||
public List<ShellTool> getSupportedShellTools() {
|
||||
return List.of(ShellTool.Command, ShellTool.Godzilla, ShellTool.Behinder);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Map<String, Pair<Class<?>, Class<?>>> getBehinderShellMap() {
|
||||
return Map.of(
|
||||
|
||||
@@ -33,11 +33,6 @@ public class TomcatShell extends AbstractShell {
|
||||
public static final String UPGRADE = "Upgrade";
|
||||
public static final String EXECUTOR = "Executor";
|
||||
|
||||
@Override
|
||||
public List<ShellTool> getSupportedShellTools() {
|
||||
return List.of(ShellTool.Godzilla, ShellTool.Command);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Map<String, Pair<Class<?>, Class<?>>> getCommandShellMap() {
|
||||
return Map.of(
|
||||
|
||||
@@ -24,10 +24,6 @@ import java.util.Map;
|
||||
* @since 2024/12/10
|
||||
*/
|
||||
public class UndertowShell extends AbstractShell {
|
||||
@Override
|
||||
public List<ShellTool> getSupportedShellTools() {
|
||||
return List.of(ShellTool.Command, ShellTool.Godzilla);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Map<String, Pair<Class<?>, Class<?>>> getCommandShellMap() {
|
||||
|
||||
@@ -24,11 +24,6 @@ import java.util.Map;
|
||||
* @since 2024/12/21
|
||||
*/
|
||||
public class WebSphereShell extends AbstractShell {
|
||||
@Override
|
||||
public List<ShellTool> getSupportedShellTools() {
|
||||
return List.of(ShellTool.Command, ShellTool.Godzilla);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Map<String, Pair<Class<?>, Class<?>>> getCommandShellMap() {
|
||||
return Map.of(
|
||||
|
||||
Reference in New Issue
Block a user