forked from projectdiscovery/nuclei
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: data race at
protocolstate
, contextargs
& some outdated test…
… cases (projectdiscovery#5820) * test(flow): update outdated test cases Signed-off-by: Dwi Siswanto <[email protected]> * test(multiproto): update outdated test cases Signed-off-by: Dwi Siswanto <[email protected]> * feat: fixed failing tests * fixed data race * fixed memgaurdian race conditiong * test(customtemplates): use test repo Signed-off-by: Dwi Siswanto <[email protected]> * feat(customtemplates): add more `{Clone,Pull}Options` Signed-off-by: Dwi Siswanto <[email protected]> * feat(customtemplates): validate `{Clone,Pull}Options` Signed-off-by: Dwi Siswanto <[email protected]> * bugfix: fixed failing integration tests for flow and multi * chore: either 1 or 2 results in interactsh --------- Signed-off-by: Dwi Siswanto <[email protected]> Co-authored-by: Ice3man <[email protected]>
- Loading branch information
1 parent
40c83dd
commit 13af7cc
Showing
25 changed files
with
103 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,28 @@ | ||
id: ghost-blog-detection | ||
id: condition-flow-extractors | ||
info: | ||
name: Ghost blog detection | ||
name: Condition Flow Extractors | ||
author: pdteam | ||
severity: info | ||
|
||
|
||
flow: dns() && http() | ||
|
||
dns: | ||
- name: "{{FQDN}}" | ||
type: CNAME | ||
type: A | ||
|
||
extractors: | ||
- type: dsl | ||
name: cname | ||
name: a | ||
internal: true | ||
dsl: | ||
- cname | ||
- a | ||
|
||
http: | ||
- method: GET | ||
path: | ||
- "{{BaseURL}}?ref={{cname}}" | ||
- "{{BaseURL}}/?ref={{a}}" | ||
|
||
matchers: | ||
- type: word | ||
words: | ||
- "ghost.io" | ||
- "ok" |
12 changes: 5 additions & 7 deletions
12
pkg/tmplexec/flow/testcases/condition-flow-no-operators.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,21 @@ | ||
id: ghost-blog-detection | ||
id: condition-flow-no-operators | ||
info: | ||
name: Ghost blog detection | ||
name: Condition Flow No Operators | ||
author: pdteam | ||
severity: info | ||
|
||
|
||
flow: dns() && http() | ||
|
||
|
||
dns: | ||
- name: "{{FQDN}}" | ||
type: CNAME | ||
|
||
http: | ||
- method: GET | ||
path: | ||
- "{{BaseURL}}?ref={{dns_cname}}" | ||
- "{{BaseURL}}/?ref={{dns_cname}}" | ||
|
||
matchers: | ||
- type: word | ||
words: | ||
- "ghost.io" | ||
- "html>" |
Oops, something went wrong.