lalajun / rmideserialize Goto Github PK
View Code? Open in Web Editor NEWRMI 反序列化环境 一步步
RMI 反序列化环境 一步步
已知RMI接口的3个攻击方式中:1实际场景比较少,2和3本质上都是Server反序列化Client发过来的数据,非基础类型都是在Unicast#unmarshalValue的readObject中触发。 所以2和3感觉可以归为1类
LookupPayloadInjectingProxyThread的handleData中用于捕获替换RMI请求的if判断:
if(dataBytes.length > 7 && dataBytes[0] == (byte)0x50) {
在一些网络环境下会失效,测试发现ecs上跑的时候会出现这个问题。
原因在于tcp的粘包,有时候这个0x50开头的包会和前面发送的那个包含ip地址的rmi包粘在一起,导致该if判断失效,建议改成:
int indexOf = indexOfByteArray(dataBytes, new byte[]{(byte)0x50, (byte)0xac, (byte)0xed});
if(dataBytes.length > 7 && indexOf != -1) {
//blockLen和out.write偏移位也需要改一下,加上indexof
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.