Skip to content

Commit

Permalink
🧪 test(xray/v2_payload_test): add payloads test
Browse files Browse the repository at this point in the history
  • Loading branch information
WAY29 committed May 20, 2022
1 parent 11f8364 commit 46143ca
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions pocs/test/xray/v2_payload_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: poc-yaml-example-com
transport: http
set:
PATH: r"index"
payloads:
continue: true
payloads:
s1:
PATH2: PATH + r".html"
s2:
PATH2: r""
rules:
r1:
request:
cache: false
method: GET
path: /{{PATH2}}
headers: {}
body: ""
follow_redirects: false
expression: |
response.status==200 && response.body.bcontains(b'Example Domain')
output:
raw: request.raw
expression: r1()
detail:
author: name(link)
links:
- http://example.com
fingerprint:
infos: []
host_info:
hostname: ""
vulnerability:
id: ""
match: ""
description: ""
version: ""
tags: test, test2

0 comments on commit 46143ca

Please sign in to comment.