Skip to content

Commit

Permalink
Merge branch 'dev' into issue-3798-uncomment-asnmap-test
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunKoyalwar committed Jun 27, 2023
2 parents b23f701 + c851a6f commit 6bcbcd0
Show file tree
Hide file tree
Showing 46 changed files with 643 additions and 163 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
go-version: [1.20.x]
os: [ubuntu-latest, windows-latest, macOS-13]
os: [ubuntu-latest, windows-latest, macOS-latest]

runs-on: ${{ matrix.os }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/functional-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-13]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Set up Go
uses: actions/setup-go@v4
Expand Down
13 changes: 13 additions & 0 deletions SYNTAX-REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2745,6 +2745,19 @@ Fuzzing describes schema to fuzz headless requests

<hr />

<div class="dd">

<code>cookie-reuse</code> <i>bool</i>

</div>
<div class="dt">

CookieReuse is an optional setting that enables cookie reuse

</div>

<hr />




Expand Down
19 changes: 19 additions & 0 deletions integration_tests/generic/auth/certificate/assets/client.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
-----BEGIN CERTIFICATE-----
MIIDETCCAfkCFFSLOinkkPWOfwuzMHF0B9EZIIghMA0GCSqGSIb3DQEBCwUAMEUx
CzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRl
cm5ldCBXaWRnaXRzIFB0eSBMdGQwHhcNMjMwNjIxMDA0MzA2WhcNMjMwNzIxMDA0
MzA2WjBFMQswCQYDVQQGEwJBVTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UE
CgwYSW50ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOC
AQ8AMIIBCgKCAQEAp187MX/sPGlTl8WklyTSh8+kYURy2zWmp2FglMvo058NanCD
rjYJvS2FNM2ZwRZH52qBr6rpqIsa8QDFjnlFJK5y4FNr104ZjDr1YXDfX5ftQeeX
wCavFRDdH/s43kGyNjNeSH78EhqmC3z7LxCJT5k8rXRAyC02uBRqQTrRHfNuVvGI
JZ59jxESzRJt89kWuYymkAj16LHffMvcq6HLwr/KG8IyrJJRj5KcDzYorFonTPe9
rwBlAbU3LpQ4ZlEP1mQA2PdCg3t85pz3n+57Iw839bWrwbjfijXHY3yjbqfEAaqa
md08nByTg8TZlt9UzjWgj0K1DXDMDDkJKqi39QIDAQABMA0GCSqGSIb3DQEBCwUA
A4IBAQAH0MhznadrMFuY2ZYA69FbsvOygMctv8qZW1HrHS0X13IXeW+8uxfb5+gk
yKFgXNMFueyd5PoN9vyC1t9AOBPnI56gaYm/MbDtwEqGo8C+9fjJasY23J90p54t
G6vxcXwo33HVpWBeRBkVF/SePeCn+MKk0jd/JgJS0T0s1Ih6wkn84/83hDk4M2M2
/yhc3wuNYdf/WB8QAfJAc2YpIfkMOoxGPTsxvREiZrPUyGiWa507hrHcQU0GV8qC
KcnS7UUCT9TtJvQIKHwW68XjBudWpaILBj1TS8hOGseOJydJqbk8wyMTE6fgc1Ss
KfTrfa0HOHIkAU/TfE22Zqfw4z70
-----END CERTIFICATE-----
28 changes: 28 additions & 0 deletions integration_tests/generic/auth/certificate/assets/client.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCnXzsxf+w8aVOX
xaSXJNKHz6RhRHLbNaanYWCUy+jTnw1qcIOuNgm9LYU0zZnBFkfnaoGvqumoixrx
AMWOeUUkrnLgU2vXThmMOvVhcN9fl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H/M6hSqtL+mmwm5L8+eqQNxsSZyhf0D2LMRdQKBgD8J
CXk+MZfOY1v2Tygs1zIZeVnb7M7VrYvJYSUq9jliYuBevDN5HBJnPfazhYe7qSQp
OPmbRkRYNm2zEDa9JWxZVY+OK5MLOKwZKbhSy0uSTTpgf78WqpIOwB2NqDFhrRpF
zaXV/FUZw0qV/HVQFWXQD+JoC/fFb/2RZoPsfX83AoGBAM4VPDUa1I16MuuW+FNZ
cVENZK/qsXFMvm3xutezvMSgmCxVSnXy9GP8QbqkfMrDJd3v/HnwrC4ORTlU7rim
AWSvC6CYO1c2RantleA46T90uWW8kP24TK1yWOrRGKuaQYvfokiiLVExq1nA1iSR
/QPLg6vEoPMOLhB7BQBpsFkq
-----END PRIVATE KEY-----
19 changes: 19 additions & 0 deletions integration_tests/generic/auth/certificate/assets/server.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
-----BEGIN CERTIFICATE-----
MIIDETCCAfkCFHA1RpGfOY5p/vQmeMQ1oRFqH+CGMA0GCSqGSIb3DQEBCwUAMEUx
CzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRl
cm5ldCBXaWRnaXRzIFB0eSBMdGQwHhcNMjMwNjIxMDA0MjQ2WhcNMjMwNzIxMDA0
MjQ2WjBFMQswCQYDVQQGEwJBVTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UE
CgwYSW50ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOC
AQ8AMIIBCgKCAQEA3VdrKR5hmZ+vyvg6NB2dOL5vEIQ/9DevivnKWqX5mserYLMj
Wq0knVfogewZnrDe+zVC3kOogBQvYk8Z53kTY9qpJT85dMCuW4xDx0JU+cWHul9a
pzF+bvws4paCWIcsGONyocPAx5g07LbPU9civC80QkQqELo1zYiRU1bX8vRJJqbN
TW2mzl9MN3AnCAYTwq8WhVG/1QR3LPQhPR68/1LWrFefQaEWaXT2s+Xv7K7NDXro
WSba4SgKdFd6fyUVMVr/ioT1KT45TP5jbRrW5JJUTdpkiXaIucrZg39f6F5gTZGA
U7bNROUMkqrJJngN9+Hp+YH1GpkKgu9EKA30EQIDAQABMA0GCSqGSIb3DQEBCwUA
A4IBAQAw91bxiAi7DIVsKL3k4B0I+50ZKq9VMVNE3YCTPygpfuRiGQvlITZ5I8I5
3Ok2wWltgKx6EnicHIlLg42yRj7j3mdgOLMFMrUCfJmdogwnS+k6veG3G1RHUs9r
ATfX49u/hEX2pe7Rvx2VYVIugwrQESgQ21iaf6uUMsrq6W8eYZ31as1nJKpqIGbu
W1fZMSi0RIUJP+mpVBE82IW+gJRi3uKU4HKPqyrU3dviBFdBxb3lNbh34/vdNkIw
4H2CfBxEvdwLYAhWDerlm4wWCmjkMiHfBHPBhhOICTkR25a7NFy27h/UDHjVC/6m
fGshVSBtxVPJP7kcvZ1scIctvFZZ
-----END CERTIFICATE-----
15 changes: 15 additions & 0 deletions integration_tests/generic/auth/certificate/http-get.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
id: basic-get-with-cert

info:
name: Basic GET with Cert
author: pdteam
severity: info

requests:
- method: GET
path:
- "{{BaseURL}}"
matchers:
- type: word
words:
- "Hello"
16 changes: 16 additions & 0 deletions integration_tests/workflow/headless-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
id: headless-1
info:
name: Headless 1
author: pdteam
severity: info
tags: headless

headless:
- cookie-reuse: true
steps:
- action: navigate
args:
url: "{{BaseURL}}/headless1"

- action: waitload

12 changes: 12 additions & 0 deletions integration_tests/workflow/http-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
id: http1

info:
name: http1
author: pdteam
severity: info

http:
- method: GET
path:
- "{{BaseURL}}/http1"
cookie-reuse: true
12 changes: 12 additions & 0 deletions integration_tests/workflow/http-2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
id: http2

info:
name: http2
author: pdteam
severity: info

http:
- method: GET
path:
- "{{BaseURL}}/http2"
cookie-reuse: true
12 changes: 12 additions & 0 deletions integration_tests/workflow/http-3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
id: http3

info:
name: http3
author: pdteam
severity: info

http:
- method: GET
path:
- "{{BaseURL}}/http3"
cookie-reuse: true
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ info:
author: pdteam
severity: info

requests:
http:
- path:
- "{{BaseURL}}/path1"
extractors:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ info:
author: pdteam
severity: info

requests:
http:
- raw:
- |
GET /path2 HTTP/1.1
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/workflow/match-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ info:
author: pdteam
severity: info

requests:
http:
- method: GET
path:
- "{{BaseURL}}"
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/workflow/match-2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ info:
author: pdteam
severity: info

requests:
http:
- method: GET
path:
- "{{BaseURL}}"
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/workflow/nomatch-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ info:
author: pdteam
severity: info

requests:
http:
- method: GET
path:
- "{{BaseURL}}"
Expand Down
15 changes: 15 additions & 0 deletions integration_tests/workflow/shared-cookie.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
id: workflow-shared-cookies

info:
name: Test Workflow Shared Cookies
author: pdteam
severity: info

workflows:
# store cookies to standard http client cookie-jar
- template: workflow/http-1.yaml
- template: workflow/http-2.yaml
# store cookie in native browser context
- template: workflow/headless-1.yaml
# retrive 2 standard library cookies + headless cookie
- template: workflow/http-3.yaml
5 changes: 5 additions & 0 deletions nuclei-jsonschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,11 @@
"type": "array",
"title": "fuzzin rules for http fuzzing",
"description": "Fuzzing describes rule schema to fuzz headless requests"
},
"cookie-reuse": {
"type": "boolean",
"title": "optional cookie reuse enable",
"description": "Optional setting that enables cookie reuse"
}
},
"additionalProperties": false,
Expand Down
18 changes: 9 additions & 9 deletions v2/.goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ builds:
flags:
- -trimpath

- main: cmd/tmc/main.go
binary: tmc
id: annotate

env:
- CGO_ENABLED=0

goos: [linux]
goarch: [amd64]
#- main: cmd/tmc/main.go
# binary: tmc
# id: annotate
#
# env:
# - CGO_ENABLED=0
#
# goos: [linux]
# goarch: [amd64]

archives:
- format: zip
Expand Down
Loading

0 comments on commit 6bcbcd0

Please sign in to comment.