Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
RamanaReddy0M committed Nov 2, 2023
1 parent a94c44d commit 1ed9419
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nuclei-action-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: projectdiscovery/nuclei-action@main
with:
target: https://example.com
workflows: nuclei-worlfows
workflows: custom-worlfows/custom-workflow.yaml

# - name: Debug with tmate session
# uses: mxschmitt/action-tmate@v3
47 changes: 47 additions & 0 deletions custom-templates/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
id: template-id

info:
name: Template Name
author: Template Author
severity: info
description: description
reference:
- https://
metadata:
max-request: 2
tags: tags

variables:
first_1: "{{rand_int(8, 20)}}"
first_2: "{{rand_int(100, 101)}}"

http:
- raw:
- |-
POST /{{Path}} HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{"pageNum":1,"pageSize":{{PageSize}}}
payloads:
Path:
- 'api/queryPageList'
PageSize:
- "{{first_1}}"
- "{{first_2}}"
attack: clusterbomb

matchers-condition: and
matchers:
# - type: dsl
# dsl:
# - "contains(header, 'application/json')"
# - "status_code == 200"
# - "contains(body, 'pageSize') && contains(body, 'pageNum') && contains(body, 'success') && contains(body, 'code') && contains(body, 'message')"
# condition: and

- type: dsl
dsl:
- "len(body_1) != 0"
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@ info:
author: dwisiswant0,pdteam
description: A simple workflow that runs all Artica Web Proxy related nuclei templates on a given target.
workflows:
- template: http/technologies/artica-web-proxy-detect.yaml
subtemplates:
- template: http/cves/2020/CVE-2020-17505.yaml
- template: custom-templates/test.yaml

0 comments on commit 1ed9419

Please sign in to comment.