Compare commits

...
1032 Commits
Author SHA1 Message Date
Sandeep Singh b355b76afd Merge pull request #3021 from projectdiscovery/dev
Bugfix release
2022-12-11 18:30:15 +05:30
sandeep da52ad81d4 readme update 2022-12-11 18:15:59 +05:30
sandeep f167ad774b bug fix release 2022-12-11 18:13:35 +05:30
sandeep 7274771163 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into dev 2022-12-11 18:07:30 +05:30
sandeep 9364890d9f go mod update 2022-12-11 18:07:23 +05:30
Ice3manandsandeep 3904d541be Added http probing to clustering + add disable-clustering flag (#3019)
* Added http probing to clustering + add disable-clustering flag

* misc update

* Commented out failing test

* Fixed lint error

Co-authored-by: sandeep <[email protected]>
2022-12-11 18:06:21 +05:30
sandeep b3312526b7 dev version update 2022-12-11 17:56:07 +05:30
VíctorandVíctor Zamanillo b77787e9bd OfflineHTTPProtocol mapping (#2993)
* OfflineHTTPProtocol mapping, fixes #2988

* Reject not mapped protocols

Co-authored-by: Víctor Zamanillo <[email protected]>
2022-12-11 17:34:25 +05:30
Sandeep Singh 0e35133ad5 public docs workflow fix (#3016) 2022-12-10 20:54:31 +05:30
Mzack9999 96c1dd3720 Adding custom ip to protocol generated variables (#3011)
* lint errors

* Extending context args support

* Ip => ip
2022-12-10 00:17:03 +05:30
sandeep 18309819b7 go mod update 2022-12-08 23:42:17 +05:30
Sandeep Singh 325da14fab Merge pull request #3006 from projectdiscovery/dev
Bugfix release
2022-12-08 22:39:49 +05:30
sandeep f4c2212a88 version update 2022-12-08 22:03:34 +05:30
Tarun Koyalwar e4ae90885b handle input url edge cases (#3004)
* handle input url edge cases

* remove extra url logic
2022-12-08 20:04:32 +05:30
Ice3man 36fac42eef Merge pull request #3003 from projectdiscovery/temp-fix
Checksum flag fixes
2022-12-08 15:46:26 +05:30
Sandeep Singh 8ee1d9e201 go mod update (#3002) 2022-12-08 13:57:22 +05:30
Ice3man b95501e641 Misc 2022-12-07 22:28:45 +05:30
Ice3man ccfa249f14 Ignore .git and .github during checksum generate (#2990) 2022-12-07 14:38:29 +05:30
Sandeep Singh 2ba08db45d removing per project COC in favor of global one (#2983)
* removing per project COC in favor of global one

* using global security info
2022-12-06 22:01:22 +05:30
Sandeep Singh 1e3c615513 Merge pull request #2981 from JaneX8/patch-1
Update LICENSE.md
2022-12-06 21:56:29 +05:30
Jane 1b50273cd0 Update LICENSE.md 2022-12-06 17:13:53 +01:00
sandeep 9418689eea Merge branch 'main' of https://github.com/projectdiscovery/nuclei into dev 2022-12-06 02:35:50 +05:30
sandeep 268970363a go mod mismatch / sum fix 2022-12-06 02:35:25 +05:30
Sandeep Singh b6aa350c35 Merge pull request #2972 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/go-git/go-git/v5-5.5.0
chore(deps): bump github.com/go-git/go-git/v5 from 5.4.2 to 5.5.0 in /v2
2022-12-05 23:35:04 +05:30
Sandeep Singh 4cb8f6345e Merge pull request #2970 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-v2/feature/s3/manager-1.11.43
chore(deps): bump github.com/aws/aws-sdk-go-v2/feature/s3/manager from 1.11.42 to 1.11.43 in /v2
2022-12-05 23:34:54 +05:30
Sandeep Singh 4544c72e32 Merge pull request #2971 from projectdiscovery/dependabot/go_modules/v2/dev/golang.org/x/text-0.5.0
chore(deps): bump golang.org/x/text from 0.4.0 to 0.5.0 in /v2
2022-12-05 23:34:41 +05:30
Sandeep Singh ea98eb84d9 Merge pull request #2973 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/projectdiscovery/rawhttp-0.1.4
chore(deps): bump github.com/projectdiscovery/rawhttp from 0.1.3 to 0.1.4 in /v2
2022-12-05 23:34:30 +05:30
Sandeep Singh 58058f7c2d Merge pull request #2974 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/projectdiscovery/fastdialer-0.0.19
chore(deps): bump github.com/projectdiscovery/fastdialer from 0.0.18 to 0.0.19 in /v2
2022-12-05 23:34:14 +05:30
sandeep e92a70da19 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei 2022-12-05 23:26:57 +05:30
sandeep 2230e0be49 misc workflow update 2022-12-05 23:26:25 +05:30
Ice3man 30f26a32ed Do not consider fuzzing template during clustering 2022-12-05 23:07:38 +05:30
dependabot[bot] 3ae8676733 chore(deps): bump github.com/projectdiscovery/fastdialer in /v2
Bumps [github.com/projectdiscovery/fastdialer](https://github.com/projectdiscovery/fastdialer) from 0.0.18 to 0.0.19.
- [Release notes](https://github.com/projectdiscovery/fastdialer/releases)
- [Commits](https://github.com/projectdiscovery/fastdialer/compare/v0.0.18...v0.0.19)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/fastdialer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-12-05 14:17:16 +00:00
dependabot[bot] c01e4e29f3 chore(deps): bump github.com/projectdiscovery/rawhttp in /v2
Bumps [github.com/projectdiscovery/rawhttp](https://github.com/projectdiscovery/rawhttp) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/projectdiscovery/rawhttp/releases)
- [Commits](https://github.com/projectdiscovery/rawhttp/compare/v0.1.3...v0.1.4)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/rawhttp
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-12-05 14:17:10 +00:00
dependabot[bot] b05bce7211 chore(deps): bump github.com/go-git/go-git/v5 from 5.4.2 to 5.5.0 in /v2
Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.4.2 to 5.5.0.
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.4.2...v5.5.0)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-12-05 14:17:07 +00:00
dependabot[bot] f066f553bd chore(deps): bump golang.org/x/text from 0.4.0 to 0.5.0 in /v2
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.4.0...v0.5.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-12-05 14:16:57 +00:00
dependabot[bot] d4656c933a chore(deps): bump github.com/aws/aws-sdk-go-v2/feature/s3/manager in /v2
Bumps [github.com/aws/aws-sdk-go-v2/feature/s3/manager](https://github.com/aws/aws-sdk-go-v2) from 1.11.42 to 1.11.43.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/feature/s3/manager/v1.11.42...feature/s3/manager/v1.11.43)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/feature/s3/manager
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-12-05 14:16:54 +00:00
Sandeep Singh 195766e5fd Merge pull request #2968 from projectdiscovery/dev
v2.8.0 Release
2022-12-05 19:42:41 +05:30
sandeep 7101a2800e go mod tidy 2022-12-05 18:53:02 +05:30
sandeep 35af8191b3 Merge branch 'master' of https://github.com/projectdiscovery/nuclei into dev 2022-12-05 18:52:23 +05:30
Sandeep Singh 5c8e715fc6 workflows improvements (#2963) 2022-12-05 18:22:55 +05:30
Tarun Koyalwarandsandeep 2874a9dff7 fix -iv & minor bugs (#2951)
* fix -iv & minor bugs

* fix ipversion defaults

Co-authored-by: sandeep <[email protected]>
2022-12-05 18:22:04 +05:30
GitHub Action bf1fb7bcb7 Auto Generate Syntax Docs + JSONSchema [Sun Dec 4 17:58:29 UTC 2022] 🤖 2022-12-04 17:58:29 +00:00
sandeep 68a1091056 workflow fix 2022-12-04 23:24:59 +05:30
xm1k3andsandeep 628b96f768 added force http2 option (#2919)
* added force http2 option

* implemented http2 with transport method

* fix and added forcehttp on clientpool

* updated readme with new flag

* option update

Co-authored-by: sandeep <[email protected]>
2022-12-04 22:32:01 +05:30
51pwn 38cfc1c183 fixed #2603 set User-Agent bypass Go-http-client for waf 2022-12-03 (#2958) 2022-12-04 22:30:38 +05:30
Ice3manandsandeep 514c6e2d1e Added timestamp optional flag + user-agent to probing (#2962)
* Added timestamp optional flag + user-agent to probing

* fix typo

* misc update

Co-authored-by: sandeep <[email protected]>
2022-12-04 22:16:55 +05:30
Mzack9999andsandeep fdd22bf0a8 Adding client/server hello in ssl templates (#2782)
* Adding client/server hello in ssl templates

* go mod update

* go mod update

Co-authored-by: sandeep <[email protected]>
2022-12-04 22:04:18 +05:30
Sandeep Singh 6ae9eee8d3 README + misc updates (#2961)
* readme update

* version + banner update

* misc option update

* go fmt'ed code

* misc update
2022-12-04 20:51:33 +05:30
Sandeep Singh 515503f5f6 Added connection refused error to skip with MaxHostError option (#2955) 2022-12-03 12:54:03 +05:30
3b31799847 Issue 2840 aws signature (#2924)
* docker go version update

* docker fix

* version update

* update chinese readme and typo fixes. (#2862)

* fix aws request signer

* fix reader by upgrading retryablehttp-go

* go mod tidy

Co-authored-by: Sandeep Singh <[email protected]>
Co-authored-by: sandeep <[email protected]>
Co-authored-by: Xc1Ym <[email protected]>
2022-12-03 07:10:57 +05:30
dependabot[bot] e7d1d93234 chore(deps): bump github.com/itchyny/gojq from 0.12.9 to 0.12.10 in /v2 (#2948)
Bumps [github.com/itchyny/gojq](https://github.com/itchyny/gojq) from 0.12.9 to 0.12.10.
- [Release notes](https://github.com/itchyny/gojq/releases)
- [Changelog](https://github.com/itchyny/gojq/blob/main/CHANGELOG.md)
- [Commits](https://github.com/itchyny/gojq/compare/v0.12.9...v0.12.10)

---
updated-dependencies:
- dependency-name: github.com/itchyny/gojq
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-03 06:50:54 +05:30
dependabot[bot] d556f8c699 chore(deps): bump github.com/aws/aws-sdk-go-v2/config in /v2 (#2952)
Bumps [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) from 1.18.3 to 1.18.4.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.18.3...config/v1.18.4)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/config
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-03 06:46:52 +05:30
Mzack9999andsandeep 6308d90cd7 Fixing reported dialed ip (#2950)
* Fixing reported dialed ip

* go mod update

* mod fix

Co-authored-by: sandeep <[email protected]>
2022-12-03 06:29:22 +05:30
dependabot[bot] db0ad8b4f1 chore(deps): bump github.com/aws/aws-sdk-go-v2/feature/s3/manager in /v2 (#2947)
Bumps [github.com/aws/aws-sdk-go-v2/feature/s3/manager](https://github.com/aws/aws-sdk-go-v2) from 1.11.37 to 1.11.42.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/feature/s3/manager/v1.11.37...feature/s3/manager/v1.11.42)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/feature/s3/manager
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-03 05:45:21 +05:30
Sandeep Singh a4e45ed6c5 workflow fix to test with current code (#2944) 2022-12-02 04:35:02 +05:30
dependabot[bot] 8e8065b810 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2943)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.149 to 1.44.151.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.149...v1.44.151)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-02 04:28:16 +05:30
dependabot[bot] 013e4d529c chore(deps): bump github.com/shirou/gopsutil/v3 in /v2 (#2932)
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.22.10 to 3.22.11.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.22.10...v3.22.11)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-02 04:28:01 +05:30
d5a09e733a Issue 2772 s3 provider support (#2825)
* Add s3 bucket template provider

- Refactor the custom github template code
- add interface for template provider

* Validate if aws creds are passed if bucket flag

- refactor s3 provider struct to take client
- add function which returns the aws s3 client
- update error messages

* Add aws s3 bucket flags documentation in README.md

- Rename the github_test.go to customTemplate_test.go

* go mod update

* Move template provider code to pkg/external/customtemplates dir

* Remove github and aws update variables from flag

* Rename CustomTemplateProvider to Provider

* Update integration and function command in makefile

* Update github test case, accept token

* readme update

* go mod tidy

* Update build-test.yml

* handle empty dir in s3

* Add requested changes

- download/update s3 and github only when `-ut` is passed
- only print the missing env variable for s3
- add the custom templates path in
  ~/.config/nuclei/.template-config.json

* print custom paths only if exists in config file

* misc update

* tag update

Co-authored-by: sandeep <[email protected]>
Co-authored-by: Sandeep Singh <[email protected]>
2022-12-02 03:57:00 +05:30
dependabot[bot] cb51039a70 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2927)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.147 to 1.44.149.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.147...v1.44.149)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-30 21:02:53 +05:30
dependabot[bot]andshubhamrasal 9d6ca66da9 chore(deps): bump github.com/projectdiscovery/uncover from 0.0.9 to 1.0.0 in /v2 (#2926)
* chore(deps): bump github.com/projectdiscovery/uncover in /v2

Bumps [github.com/projectdiscovery/uncover](https://github.com/projectdiscovery/uncover) from 0.0.9 to 1.0.0.
- [Release notes](https://github.com/projectdiscovery/uncover/releases)
- [Changelog](https://github.com/projectdiscovery/uncover/blob/main/.goreleaser.yml)
- [Commits](https://github.com/projectdiscovery/uncover/compare/v0.0.9...v1.0.0)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/uncover
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Add uncover netlas source

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: shubhamrasal <[email protected]>
2022-11-30 20:29:55 +05:30
Tarun Koyalwarandsandeep d566ad9cc6 enhance sarif output (closes #2608) (#2925)
* enhance sarif output (closes #2608)

* sarif: format result title

* go mod update

Co-authored-by: sandeep <[email protected]>
2022-11-30 20:22:27 +05:30
ebfd2e648a Remove nuclei-updatecheck-api as dependency (#2923)
* Remove nuclei-updatecheck-api as dependency

* Run go mod tidy

* go mod tidy

Co-authored-by: Sandeep Singh <[email protected]>
Co-authored-by: sandeep <[email protected]>
2022-11-29 23:53:05 +05:30
9c17284616 Display tpl contents (#2906)
* New "td" flag, displays the highlighted template contents
New verboseTemplate method to avoid duplicate code
Grouped (and sorted) template list per directory

* Updated README about the td flag

* Going back to the previous template list format

The new one can't be pipelined

* Implicit template list on template display
Respect --no-color option to disable colors when -td is used

* misc option update

Co-authored-by: Víctor Zamanillo <[email protected]>
Co-authored-by: sandeep <[email protected]>
2022-11-29 17:48:44 +05:30
dependabot[bot] d9afb33bb0 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2922)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.146 to 1.44.147.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.146...v1.44.147)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-29 16:09:58 +05:30
Sandeep Singh 2b7b7649a8 build workflow update (#2911) 2022-11-29 04:20:20 +05:30
Ice3man 44476c2e5b Merge pull request #2909 from projectdiscovery/issue-2848-case-insensitive-matcher-name
Making matcher name case insensitive
2022-11-28 13:58:43 +05:30
Mzack9999 a1ecef6b61 Mocking dns server (#2908)
* mocking dns server

* fix lint errors
2022-11-28 13:52:40 +05:30
dependabot[bot]andMzack9999 e0dfc476c3 chore(deps): bump github.com/projectdiscovery/ratelimit from 0.0.1 to 0.0.2 in /v2 (#2915)
* chore(deps): bump github.com/projectdiscovery/ratelimit in /v2

Bumps [github.com/projectdiscovery/ratelimit](https://github.com/projectdiscovery/ratelimit) from 0.0.1 to 0.0.2.
- [Release notes](https://github.com/projectdiscovery/ratelimit/releases)
- [Commits](https://github.com/projectdiscovery/ratelimit/compare/v0.0.1...v0.0.2)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/ratelimit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* fixing int type

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mzack9999 <[email protected]>
2022-11-28 12:49:30 +05:30
dependabot[bot] 964185e768 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2916)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.145 to 1.44.146.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.145...v1.44.146)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-28 11:56:30 +05:30
dependabot[bot] 924bdee962 chore(deps): bump alpine from 3.16.3 to 3.17.0 (#2914)
Bumps alpine from 3.16.3 to 3.17.0.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-28 11:55:18 +05:30
dependabot[bot] c7913784bf chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2 (#2917)
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.70 to 0.0.71.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.70...v0.0.71)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-28 11:55:01 +05:30
Sandeep Singh 8fbdb8db89 Moving using as code from design document to readme (#2912) 2022-11-26 20:09:24 +05:30
Sandeep Singh e0cfa85811 retryablehttp-go bump (#2910) 2022-11-26 19:39:49 +05:30
Dwi Siswanto b45e2d28f2 docs: Indonesia translation README (#2896)
* docs: Indonesia translation README

* docs: Add ID hyperlink for README
2022-11-25 22:42:33 +05:30
Mzack9999 d3a929d4c3 Making matcher name case insensitive 2022-11-25 17:22:50 +01:00
Shubham RasalandMzack9999 1493fd3d6a Update goflag to solve the header truncated issue (#2897)
* Update goflag to solve the header truncated issue

* Bump goflag version v0.1.5

* go mod tidy

Co-authored-by: Mzack9999 <[email protected]>
2022-11-25 12:28:37 +05:30
Mzack9999 d230a5fbb3 Merge pull request #2884 from projectdiscovery/issue-2832-race-condition-test
Race condition tests
2022-11-24 22:31:41 +01:00
Mzack9999 2586d9b4a7 removing subset 2022-11-24 22:12:44 +01:00
Mzack9999 440bfe030a Merge branch 'dev' into issue-2832-race-condition-test 2022-11-24 22:10:42 +01:00
Thibault Soubiran 67fda109b2 Fix usage typos (#2889) 2022-11-24 21:18:02 +05:30
Mzack9999 b3d4dba047 Reverting retryablehttp-go to fix custom http client (#2900)
* Reverting retryablehttp-go to fix custom http client

* fixing sandbox test
2022-11-24 21:16:03 +05:30
dependabot[bot] 48ebe3460f chore(deps): bump github.com/projectdiscovery/clistats in /v2 (#2892)
Bumps [github.com/projectdiscovery/clistats](https://github.com/projectdiscovery/clistats) from 0.0.8 to 0.0.9.
- [Release notes](https://github.com/projectdiscovery/clistats/releases)
- [Commits](https://github.com/projectdiscovery/clistats/compare/v0.0.8...v0.0.9)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/clistats
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-24 21:06:26 +05:30
dependabot[bot] 43c79f57be chore(deps): bump github.com/antchfx/xmlquery in /v2 (#2891)
Bumps [github.com/antchfx/xmlquery](https://github.com/antchfx/xmlquery) from 1.3.12 to 1.3.13.
- [Release notes](https://github.com/antchfx/xmlquery/releases)
- [Commits](https://github.com/antchfx/xmlquery/compare/v1.3.12...v1.3.13)

---
updated-dependencies:
- dependency-name: github.com/antchfx/xmlquery
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-24 21:06:10 +05:30
dependabot[bot] 05a3dfccc3 chore(deps): bump github.com/go-rod/rod from 0.112.1 to 0.112.2 in /v2 (#2893)
Bumps [github.com/go-rod/rod](https://github.com/go-rod/rod) from 0.112.1 to 0.112.2.
- [Release notes](https://github.com/go-rod/rod/releases)
- [Commits](https://github.com/go-rod/rod/compare/v0.112.1...v0.112.2)

---
updated-dependencies:
- dependency-name: github.com/go-rod/rod
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-24 21:05:18 +05:30
dependabot[bot] ef66c80684 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2894)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.144 to 1.44.145.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.144...v1.44.145)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-24 21:05:00 +05:30
Ice3man 291a0fea94 Merge pull request #2856 from projectdiscovery/sandbox-pr
Added sandboxing for payload files and requests
2022-11-24 14:07:33 +05:30
Ice3man 694a2a7ec5 Added sandbox details to README 2022-11-24 14:02:58 +05:30
xm1k3 6d76fcd4e7 fix oh wrong path 2022-11-23 14:40:00 +01:00
xm1k3 2d76498692 fixes 2022-11-23 14:30:12 +01:00
3014b40ac6 Fixes #2885 (#2886)
* docker go version update

* docker fix

* version update

* update chinese readme and typo fixes. (#2862)

* Fixes #2885

Fixes #2885

Co-authored-by: Sandeep Singh <[email protected]>
Co-authored-by: sandeep <[email protected]>
Co-authored-by: Xc1Ym <[email protected]>
2022-11-23 18:21:22 +05:30
dependabot[bot] c2641ccbc4 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2879)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.140 to 1.44.144.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.140...v1.44.144)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-23 18:20:16 +05:30
dependabot[bot] 2c39983ee0 chore(deps): bump github.com/xanzy/go-gitlab in /v2 (#2881)
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.74.0 to 0.76.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.74.0...v0.76.0)

---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-23 18:20:03 +05:30
dependabot[bot] 08d6e99291 chore(deps): bump github.com/projectdiscovery/goflags in /v2 (#2880)
Bumps [github.com/projectdiscovery/goflags](https://github.com/projectdiscovery/goflags) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/projectdiscovery/goflags/releases)
- [Commits](https://github.com/projectdiscovery/goflags/compare/v0.1.3...v0.1.4)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/goflags
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-23 18:19:34 +05:30
dependabot[bot] ee9b628b1b chore(deps): bump github.com/projectdiscovery/rawhttp in /v2 (#2878)
Bumps [github.com/projectdiscovery/rawhttp](https://github.com/projectdiscovery/rawhttp) from 0.1.2 to 0.1.3.
- [Release notes](https://github.com/projectdiscovery/rawhttp/releases)
- [Commits](https://github.com/projectdiscovery/rawhttp/compare/v0.1.2...v0.1.3)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/rawhttp
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-23 18:19:22 +05:30
Sandeep Singh ff9596f618 workflow updates (#2883)
* workflow updates

* added go mod download in build test
2022-11-23 17:13:52 +05:30
xm1k3 3c978e8a46 removed some targets 2022-11-23 10:51:04 +01:00
xm1k3 632c68a996 added multiple targets on gh action 2022-11-23 10:37:30 +01:00
xm1k3 ef6b7d9dc9 added tags to race condition 2022-11-23 10:11:46 +01:00
dependabot[bot] f0cfcaed55 chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2 (#2874)
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.67 to 0.0.70.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.67...v0.0.70)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-23 02:05:10 +05:30
dependabot[bot] b9ce3c4393 chore(deps): bump github.com/go-rod/rod from 0.112.0 to 0.112.1 in /v2 (#2873)
Bumps [github.com/go-rod/rod](https://github.com/go-rod/rod) from 0.112.0 to 0.112.1.
- [Release notes](https://github.com/go-rod/rod/releases)
- [Commits](https://github.com/go-rod/rod/compare/v0.112.0...v0.112.1)

---
updated-dependencies:
- dependency-name: github.com/go-rod/rod
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-22 22:15:31 +05:30
dependabot[bot] 2117fe2e1f chore(deps): bump golangci/golangci-lint-action from 3.3.0 to 3.3.1 (#2844)
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v3.3.0...v3.3.1)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-22 22:14:57 +05:30
dependabot[bot]andSandeep Singh cce7b775ab chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2864)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.134 to 1.44.140.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.134...v1.44.140)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sandeep Singh <[email protected]>
2022-11-22 22:14:36 +05:30
dependabot[bot] 6534deedc6 chore(deps): bump github.com/projectdiscovery/utils in /v2 (#2846)
Bumps [github.com/projectdiscovery/utils](https://github.com/projectdiscovery/utils) from 0.0.2 to 0.0.3.
- [Release notes](https://github.com/projectdiscovery/utils/releases)
- [Commits](https://github.com/projectdiscovery/utils/compare/v0.0.2...v0.0.3)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/utils
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-22 22:14:03 +05:30
dependabot[bot] 6dadb3a9fe chore(deps): bump github.com/projectdiscovery/gologger in /v2 (#2872)
Bumps [github.com/projectdiscovery/gologger](https://github.com/projectdiscovery/gologger) from 1.1.4 to 1.1.5.
- [Release notes](https://github.com/projectdiscovery/gologger/releases)
- [Commits](https://github.com/projectdiscovery/gologger/compare/v1.1.4...v1.1.5)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/gologger
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-22 22:13:45 +05:30
dependabot[bot] e17c491bb3 chore(deps): bump alpine from 3.16.2 to 3.16.3 (#2843)
Bumps alpine from 3.16.2 to 3.16.3.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-22 22:13:28 +05:30
dependabot[bot] ca82a12c26 chore(deps): bump github.com/aws/aws-sdk-go-v2/feature/s3/manager in /v2 (#2863)
Bumps [github.com/aws/aws-sdk-go-v2/feature/s3/manager](https://github.com/aws/aws-sdk-go-v2) from 1.11.38 to 1.11.41.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/feature/s3/manager/v1.11.38...feature/s3/manager/v1.11.41)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/feature/s3/manager
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-21 19:14:28 +05:30
dependabot[bot] 16f6acb449 chore(deps): bump github.com/aws/aws-sdk-go-v2/config in /v2 (#2865)
Bumps [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) from 1.17.11 to 1.18.2.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.17.11...config/v1.18.2)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/config
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-21 19:14:15 +05:30
Xc1Ym 05d607642a update chinese readme and typo fixes. (#2862) 2022-11-17 15:59:05 +05:30
Ice3man e7fb40a413 Added sandboxing for payload files and requests 2022-11-16 13:49:24 +05:30
Shubham Rasalandsandeep 6b142d794a Issue 2254 uncover integration (#2786)
* nuclei -uq 'vuln:CVE-2021-26855' -t cves/2021/

- `nuclei -uq 'vuln:CVE-2021-26855' -t cves/2021/`

* Add automatic template execution using metadata

- Query uncover after the template is loaded.
- Add the received hosts to the input provider from uncover
- Make NormalizeStoreInputValue() function public to add hosts from the
  runner after uncover hosts received.

* run go mod tidy

* Remove unnecessary comments

* Resolve the requested changes

- move uncover code to protocols/common/uncover package
- Use uncover delay to create uncover rate limiter
- Use single ratelimiter object and remove not required ratelimiters
- Create Set() method for input provider interface
- Rename normalizeStoreInputValue to Set() method

* Solved the uncover running twice.

- flag StringSliceVarP adds the default value twice in the variable
- Check if provider keys exists or not
- Add uncover help block to english readme.md

* Add uncover field functionality

- ./nuclei -uq 'vuln:CVE-2021-26855' -t dns -duc -uf host
- ./nuclei -uq 'vuln:CVE-2021-26855' -t dns -duc -uf ip:port

* Update error messages and solve nuclei hang for wrong uncover engine

- Get uncover engine values from uncover package

* Resolve merge conflicts

* misc option update

* Update logging for templates

- remove duplicate env log printing
- Log message for template queries

Co-authored-by: sandeep <[email protected]>
2022-11-16 11:12:39 +05:30
forgedhallpass 0c588cf9af Fixed typo in the -stop-at-first-match instead of path (#2850) 2022-11-15 15:47:09 +05:30
forgedhallpass eeefb4062e IntelliJ Idea/Goland run configuration to start one integration test
(requires running parts from /integration_tests/run.sh first)

Related #2839
2022-11-14 19:14:49 +02:00
0295ca19bc Add split DSL function (#2838)
* Add support for showing overloaded DSL method signatures

* Add `split` DSL function #2837

* fixing lint warnings

* replacing faulty regex with strings methods

Co-authored-by: Mzack9999 <[email protected]>
Co-authored-by: mzack <[email protected]>
2022-11-14 06:08:12 +05:30
vrenzolaverace 2403c50c36 Add targets number in output banner (#2798)
* Add targets number in output banner (#2797)

* Add targets number in output banner (#2797)
2022-11-12 18:05:49 +05:30
dependabot[bot] 2066135f17 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2834)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.133 to 1.44.134.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.133...v1.44.134)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-10 19:18:45 +05:30
forgedhallpass f6e1f8321b Fix the example code showcasing how to use nuclei as a library (#2804) 2022-11-09 19:35:32 +05:30
dependabot[bot] 9c88e42e25 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2830)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.132 to 1.44.133.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.132...v1.44.133)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-09 19:33:46 +05:30
dependabot[bot] 4e6b4888a2 chore(deps): bump golang.org/x/net from 0.1.0 to 0.2.0 in /v2 (#2831)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.1.0 to 0.2.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/compare/v0.1.0...v0.2.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-09 19:33:32 +05:30
Mzack9999 1fbbca66f9 Adding support to scan all v4/v6 IPs (#2709)
* Adding support to scan all v4/v6 IPs

* adding tests

* metainput prototype

* using new signature

* fixing nil pointer

* adding request context with metadata

* removing log instruction

* fixing merge conflicts

* adding clone helpers

* attempting to fix ipv6 square parenthesis wrap

* fixing dialed ip info

* fixing syntax

* fixing output ip selection

* adding integration tests

* disabling test due to gh ipv6 issue

* using ipv4 only due to GH limited networking

* extending metainput marshaling

* fixing hmap key

* adding test for httpx integration

* fixing lint error

* reworking marshaling/id-calculation

* adding ip version validation

* improving handling non url targets

* fixing condition check
2022-11-09 18:48:56 +05:30
Mzack9999 9e56451d2e Merge pull request #2814 from projectdiscovery/dependabot/docker/dev/golang-1.19.3-alpine
chore(deps): bump golang from 1.19.2-alpine to 1.19.3-alpine
2022-11-08 23:39:01 +01:00
dependabot[bot] 75ce8faf59 chore(deps): bump golang from 1.19.2-alpine to 1.19.3-alpine
Bumps golang from 1.19.2-alpine to 1.19.3-alpine.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-11-08 21:27:07 +00:00
Mzack9999 840028fa93 adding host with optional port type logic (#2815)
* adding host with optional port type logic

* adding comment support in test cases

* updating test cases with multiple input scenarios

* readding port condition
2022-11-08 19:49:45 +05:30
dependabot[bot] 185c95f549 chore(deps): bump github.com/projectdiscovery/utils in /v2 (#2823)
Bumps [github.com/projectdiscovery/utils](https://github.com/projectdiscovery/utils) from 0.0.1 to 0.0.2.
- [Release notes](https://github.com/projectdiscovery/utils/releases)
- [Commits](https://github.com/projectdiscovery/utils/compare/v0.0.1...v0.0.2)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/utils
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-08 17:53:19 +05:30
Mzack9999 6ac669eb43 Replacing rdap with fixed fork (#2819)
* Replacing rdap with pd fixed fork

* mod tidy

* updating rdap commit ref

* reworking rdap client pool

* removing unused code
2022-11-08 17:27:18 +05:30
Jaideep Khandelwal a36d42a993 Round off the duration to a minute (#2807) 2022-11-08 16:43:55 +05:30
Mzack9999 903614afc9 Merge pull request #2822 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.132
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.129 to 1.44.132 in /v2
2022-11-08 09:26:32 +01:00
dependabot[bot] 61059ea279 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.129 to 1.44.132.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.129...v1.44.132)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-11-08 05:09:12 +00:00
sandeep de8571e726 version update 2022-11-08 02:22:17 +05:30
vrenzolaverace 2aaf2a2158 Use utils helpers libraries (#2809) (#2810)
* Use utils helpers libraries (#2809)

* Use utils helpers libraries (#2809)
2022-11-07 01:54:23 +05:30
dependabot[bot] 3044ec4636 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2796)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.128 to 1.44.129.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.128...v1.44.129)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-03 21:49:52 +05:30
721c4964d7 Issue 2613 custom template GitHub (#2630)
* Add custom template download/update support from github

- Accept the -gtr flag to accept the list of custom template
  repos(public/private)
- Accept the -gt flag for github token. It internally sets os.Env
  variable
- Update the flags from
   - -update to -nuclei-update for nuclei self update
   - -ut to -tup for template-update
   - -ud to -tud for custom template location
- Add github.go file which has code related to download and update
  custom templates repos.

* Reslove golint and test case error

* Take default template from community directory

- No need to give explicit community directory path.
- Update the integration test to support the change in path

* Update functional test script update template flag

* Update the path from community to nuclei-template

- Revert the code changes that were made to add community directory

* remove the comment

* Update the interactsh server url for testing

* Update race condition command

* update race condition cmd to download the templates

* Debug integration test failure

* update integration test to update templates

* Refactor downloadCustomTemplate function.

- Remove the log prining instead send the message.

* Add test case for custom template repo download

* move the download repo for loop into diff function

* refactor updateTemplate function.

* Create struct for github repos.

- Create customtemplate struct for repo.
- Add functions to customtemplate

* update readme.md file

* Refactor the downloadCustomTemplate function

- create const variables for github & community as template type
- Update gologger to INF
- Validate templateUpdate to accept only github & community value.
- Validate tempalteUpdate require githubTemplateRepo

* Resolve requested changes

* go mod update

* misc option update

* test update

* Revert back update-template flag to boolean.

- to update community templates
  `nuclei -ut`
- to update custom templates
  `nuclei -ut -gtr ehsandeep/mobile-nuclei-templates`

* Update readme to update flag documentation

* Update go.mod

Co-authored-by: Sandeep Singh <[email protected]>
Co-authored-by: sandeep <[email protected]>
2022-11-03 20:27:18 +05:30
Ice3man e1b0564c0a Fixed nested expression replacement using fasttemplate (#2790) 2022-11-03 18:31:04 +05:30
dependabot[bot] 0c5f75770c chore(deps): bump github.com/labstack/echo/v4 in /v2 (#2791)
Bumps [github.com/labstack/echo/v4](https://github.com/labstack/echo) from 4.1.11 to 4.9.1.
- [Release notes](https://github.com/labstack/echo/releases)
- [Changelog](https://github.com/labstack/echo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/labstack/echo/compare/v4.1.11...v4.9.1)

---
updated-dependencies:
- dependency-name: github.com/labstack/echo/v4
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-02 14:11:29 +05:30
dependabot[bot] 7914372a00 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2792)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.127 to 1.44.128.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.127...v1.44.128)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-02 14:09:33 +05:30
GitHub Action 411e39c40b Auto Generate Syntax Docs + JSONSchema [Tue Nov 1 15:01:38 UTC 2022] 🤖 2022-11-01 15:01:38 +00:00
Ice3manandSandeep Singh b9472cf7e1 Added fuzzing support for query params + var dump feature (#2679)
* Added fuzzing support for query params + var dump feature

* Added query-fuzz integration test

* Fixed payloads + added keys-regex fuzz parameter

* Fixed interactsh not working + misc

* Fixed evaluation + added global variables/dsl support to payloads

* Misc fixes related to variables evaluations

* Added http variables support to fuzz

* misc

* Misc

* Added testing playground + misc renaming

* Added support for path and raw request to fuzzing

* Fixed fuzz integration test

* Fixed variable unresolved issue

* Add multiple parameter support with same name

* Added parameter value as 'value' dsl variable for parts

Co-authored-by: Sandeep Singh <[email protected]>
2022-11-01 20:28:50 +05:30
Ice3man cd0517c887 Fixed invalid fields in request (#2788) 2022-11-01 16:10:41 +05:30
dependabot[bot]andsandeep 846f4f6d9e chore(deps): bump github.com/projectdiscovery/goflags from 0.1.1 to 0.1.2 in /v2 (#2774)
* chore(deps): bump github.com/projectdiscovery/goflags in /v2

Bumps [github.com/projectdiscovery/goflags](https://github.com/projectdiscovery/goflags) from 0.1.1 to 0.1.2.
- [Release notes](https://github.com/projectdiscovery/goflags/releases)
- [Commits](https://github.com/projectdiscovery/goflags/compare/v0.1.1...v0.1.2)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/goflags
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* goflag update

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: sandeep <[email protected]>
2022-11-01 13:07:43 +05:30
dependabot[bot] 51f392666b chore(deps): bump github.com/shirou/gopsutil/v3 in /v2 (#2784)
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.22.9 to 3.22.10.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.22.9...v3.22.10)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-01 12:20:41 +05:30
dependabot[bot] d60361ec8d chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2783)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.125 to 1.44.127.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.125...v1.44.127)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-01 12:20:13 +05:30
dependabot[bot] efb694411b chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2 (#2776)
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.66 to 0.0.67.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.66...v0.0.67)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-01 12:19:32 +05:30
dependabot[bot] 964ee0a5c2 chore(deps): bump github.com/klauspost/compress in /v2 (#2785)
Bumps [github.com/klauspost/compress](https://github.com/klauspost/compress) from 1.15.8 to 1.15.12.
- [Release notes](https://github.com/klauspost/compress/releases)
- [Changelog](https://github.com/klauspost/compress/blob/master/.goreleaser.yml)
- [Commits](https://github.com/klauspost/compress/compare/v1.15.8...v1.15.12)

---
updated-dependencies:
- dependency-name: github.com/klauspost/compress
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-01 12:11:54 +05:30
Mzack9999 235eb1c8da Merge pull request #2775 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/xanzy/go-gitlab-0.74.0
chore(deps): bump github.com/xanzy/go-gitlab from 0.73.1 to 0.74.0 in /v2
2022-10-31 17:39:36 +01:00
dependabot[bot] dd1450356c chore(deps): bump github.com/xanzy/go-gitlab in /v2
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.73.1 to 0.74.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.73.1...v0.74.0)

---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-10-31 05:20:16 +00:00
dependabot[bot] c391670a83 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2768)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.122 to 1.44.125.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.122...v1.44.125)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-29 11:44:18 +02:00
Sajad e163a301b9 add dns protocol ratelimit (#2763)
* add dns protocol ratelimit

* move dns ratelimit to just before sending the request
2022-10-29 04:29:13 +02:00
Ice3man 74bd89dec6 Added templates-checksum + custom input support (#2744)
* Added templates-checksum + custom input support

* Fixed template name not passed for private
2022-10-29 04:21:43 +02:00
Mzack9999 cc0c20053a Improving unsafe uri path (#2722)
* Improving unsafe uri path

* fixing raw path output
2022-10-27 20:09:38 +02:00
Mzack9999 7588a2792f Merge pull request #2762 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/projectdiscovery/rawhttp-0.1.2
chore(deps): bump github.com/projectdiscovery/rawhttp from 0.1.1 to 0.1.2 in /v2
2022-10-27 08:44:55 +02:00
dependabot[bot] 451ab18ed5 chore(deps): bump github.com/projectdiscovery/rawhttp in /v2
Bumps [github.com/projectdiscovery/rawhttp](https://github.com/projectdiscovery/rawhttp) from 0.1.1 to 0.1.2.
- [Release notes](https://github.com/projectdiscovery/rawhttp/releases)
- [Commits](https://github.com/projectdiscovery/rawhttp/compare/v0.1.1...v0.1.2)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/rawhttp
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-10-26 05:17:52 +00:00
Mzack9999 5db17ee4a8 Merge pull request #2760 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/projectdiscovery/retryabledns-1.0.17
chore(deps): bump github.com/projectdiscovery/retryabledns from 1.0.16 to 1.0.17 in /v2
2022-10-25 22:18:48 +02:00
mzack fe798c07eb fixing function syntax 2022-10-25 21:01:42 +02:00
dependabot[bot] 184d6a3d71 chore(deps): bump github.com/projectdiscovery/retryabledns in /v2
Bumps [github.com/projectdiscovery/retryabledns](https://github.com/projectdiscovery/retryabledns) from 1.0.16 to 1.0.17.
- [Release notes](https://github.com/projectdiscovery/retryabledns/releases)
- [Commits](https://github.com/projectdiscovery/retryabledns/compare/v1.0.16...v1.0.17)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/retryabledns
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-10-25 07:58:19 +00:00
dependabot[bot] 8e69081104 chore(deps): bump github.com/projectdiscovery/fileutil in /v2 (#2758)
Bumps [github.com/projectdiscovery/fileutil](https://github.com/projectdiscovery/fileutil) from 0.0.2 to 0.0.3.
- [Release notes](https://github.com/projectdiscovery/fileutil/releases)
- [Commits](https://github.com/projectdiscovery/fileutil/compare/v0.0.2...v0.0.3)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/fileutil
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-25 09:57:02 +02:00
dependabot[bot]andMzack9999 1783207803 chore(deps): bump github.com/projectdiscovery/stringsutil from 0.0.1 to 0.0.2 in /v2 (#2751)
* chore(deps): bump github.com/projectdiscovery/stringsutil in /v2

Bumps [github.com/projectdiscovery/stringsutil](https://github.com/projectdiscovery/stringsutil) from 0.0.1 to 0.0.2.
- [Release notes](https://github.com/projectdiscovery/stringsutil/releases)
- [Commits](https://github.com/projectdiscovery/stringsutil/compare/v0.0.1...v0.0.2)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/stringsutil
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* updating function name

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mzack9999 <[email protected]>
2022-10-25 09:32:35 +02:00
dependabot[bot] a1a9d0d4ae chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2759)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.120 to 1.44.122.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.120...v1.44.122)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-25 09:32:21 +02:00
dependabot[bot] c95675a0e0 chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2 (#2750)
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.65 to 0.0.66.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.65...v0.0.66)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-25 09:32:07 +02:00
Mzack9999 a5a1b976e2 Merge pull request #2754 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/projectdiscovery/fileutil-0.0.2
chore(deps): bump github.com/projectdiscovery/fileutil from 0.0.1 to 0.0.2 in /v2
2022-10-25 03:29:48 +02:00
SajadandMzack9999 928f082109 set content_length as len(body) if response ContentLength is -1 (#2407)
* set content_length as len(body) if response ContentLength is -1

* move content-length calculation to utils

* adding basic tests

Co-authored-by: Mzack9999 <[email protected]>
2022-10-24 16:37:09 +02:00
Mzack9999 92ff305e74 Merge pull request #2749 from projectdiscovery/dependabot/github_actions/dev/golangci/golangci-lint-action-3.3.0
chore(deps): bump golangci/golangci-lint-action from 3.2.0 to 3.3.0
2022-10-24 09:33:19 +02:00
Mzack9999 ef2164aea0 Merge pull request #2752 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/stretchr/testify-1.8.1
chore(deps): bump github.com/stretchr/testify from 1.8.0 to 1.8.1 in /v2
2022-10-24 09:30:38 +02:00
dependabot[bot] 58cf82f543 chore(deps): bump github.com/projectdiscovery/fileutil in /v2
Bumps [github.com/projectdiscovery/fileutil](https://github.com/projectdiscovery/fileutil) from 0.0.1 to 0.0.2.
- [Release notes](https://github.com/projectdiscovery/fileutil/releases)
- [Commits](https://github.com/projectdiscovery/fileutil/compare/v0.0.1...v0.0.2)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/fileutil
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-10-24 05:24:05 +00:00
dependabot[bot] 999850cd4e chore(deps): bump github.com/stretchr/testify from 1.8.0 to 1.8.1 in /v2
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.0...v1.8.1)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-10-24 05:23:45 +00:00
dependabot[bot] 855f7ad8a4 chore(deps): bump golangci/golangci-lint-action from 3.2.0 to 3.3.0
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v3.2.0...v3.3.0)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-10-24 05:05:09 +00:00
Jaideep Khandelwalandsandeep 4cfde111f4 Feature 18 cloud flags (#2708)
* Add cloud flags for nuclei.

* Add flag to get output for a particular scan ID

* Add some comments to the function.

* Get timestamp and id for scan list

* Fix linting errors

* Check if type is enumeration.

* Do not show deleted scans.

* Do not use filter_result, create client once and use it everywhere with
runner.

* Fix the output of scan list to be better

* Format the nuclei scan output list.

* Remove unused constant

* misc option update

Co-authored-by: sandeep <[email protected]>
2022-10-22 04:06:52 +05:30
Mzack9999 2006060574 Merge pull request #2745 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.120
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.119 to 1.44.120 in /v2
2022-10-21 08:28:26 +02:00
Mzack9999 7f305f90c2 Merge pull request #2746 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/projectdiscovery/retryabledns-1.0.16
chore(deps): bump github.com/projectdiscovery/retryabledns from 1.0.15 to 1.0.16 in /v2
2022-10-21 07:51:49 +02:00
dependabot[bot] cc6b4f85d3 chore(deps): bump github.com/projectdiscovery/retryabledns in /v2
Bumps [github.com/projectdiscovery/retryabledns](https://github.com/projectdiscovery/retryabledns) from 1.0.15 to 1.0.16.
- [Release notes](https://github.com/projectdiscovery/retryabledns/releases)
- [Commits](https://github.com/projectdiscovery/retryabledns/compare/v1.0.15...v1.0.16)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/retryabledns
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-10-21 05:34:37 +00:00
dependabot[bot] 55a5780b14 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.119 to 1.44.120.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.119...v1.44.120)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-10-21 05:34:25 +00:00
Ice3manandsandeep 363ffb75db Added probing for URL + input based on protocol (#2614)
* Added workflow names based condition

* Added conditional filtering to workflow executor

* Replaced names with single name stringslice

* Added probing for URL + input based on protocol

* Remove debug comments

* Fixed typo

* Fixed failing tests

* Fixed workflow matcher condition + tests

* Fixed workflow item name

* Switch to if-else

* Fixed review comment strict

* Increase bulk size

* Added default port for SSL protocol + misc changes

* Fixed failing tests

* Fixed misc changes to executer

* Fixed failing self-contained and offlinehttp tests

* Fixed atomic increment operation

* misc update

* Fixed failing builds

Co-authored-by: sandeep <[email protected]>
2022-10-20 17:23:00 +05:30
Sajad 0149e94f90 add missing template filters to workflow loader (#2741) 2022-10-20 17:14:41 +05:30
dependabot[bot] af462fcdc5 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2740)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.118 to 1.44.119.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.118...v1.44.119)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-20 13:48:16 +05:30
Mzack9999 04db8e52b5 Merge pull request #2739 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/projectdiscovery/tlsx-0.0.9
chore(deps): bump github.com/projectdiscovery/tlsx from 0.0.8 to 0.0.9 in /v2
2022-10-20 09:31:45 +02:00
dependabot[bot] 14c5a25973 chore(deps): bump github.com/projectdiscovery/tlsx in /v2
Bumps [github.com/projectdiscovery/tlsx](https://github.com/projectdiscovery/tlsx) from 0.0.8 to 0.0.9.
- [Release notes](https://github.com/projectdiscovery/tlsx/releases)
- [Changelog](https://github.com/projectdiscovery/tlsx/blob/main/.goreleaser.yml)
- [Commits](https://github.com/projectdiscovery/tlsx/compare/v0.0.8...v0.0.9)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/tlsx
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-10-20 05:26:32 +00:00
dependabot[bot] f9fd6f480b chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2735)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.117 to 1.44.118.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG_PENDING.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.117...v1.44.118)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-19 22:33:47 +05:30
dependabot[bot] 178cce6f18 chore(deps): bump github.com/valyala/fasttemplate in /v2 (#2734)
Bumps [github.com/valyala/fasttemplate](https://github.com/valyala/fasttemplate) from 1.2.1 to 1.2.2.
- [Release notes](https://github.com/valyala/fasttemplate/releases)
- [Commits](https://github.com/valyala/fasttemplate/compare/v1.2.1...v1.2.2)

---
updated-dependencies:
- dependency-name: github.com/valyala/fasttemplate
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-19 22:33:33 +05:30
Ice3man d956f08cb9 Added attack-type option to override template attack-type (#2724)
* Added attack-type option to override template attack-type

* Added docs + integration tests
2022-10-19 03:51:45 +05:30
dependabot[bot] 6a58915ff0 chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2 (#2726)
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.64 to 0.0.65.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.64...v0.0.65)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-19 03:18:37 +05:30
dependabot[bot] 5f988e8536 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2730)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.115 to 1.44.117.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.115...v1.44.117)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-19 03:17:57 +05:30
dependabot[bot] b3a72b7747 chore(deps): bump golang.org/x/text from 0.3.8 to 0.4.0 in /v2 (#2731)
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.3.8 to 0.4.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.3.8...v0.4.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-19 03:17:41 +05:30
dependabot[bot] 67818356ec chore(deps): bump github.com/go-rod/rod from 0.111.0 to 0.112.0 in /v2 (#2728)
Bumps [github.com/go-rod/rod](https://github.com/go-rod/rod) from 0.111.0 to 0.112.0.
- [Release notes](https://github.com/go-rod/rod/releases)
- [Commits](https://github.com/go-rod/rod/compare/v0.111.0...v0.112.0)

---
updated-dependencies:
- dependency-name: github.com/go-rod/rod
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-19 03:17:27 +05:30
Mzack9999andsandeep 9493dfdb20 Adding automatic request condition detection (#2707)
* Adding automatic request condition detection

* adding missing checks on part

* test update as per latest change

Co-authored-by: sandeep <[email protected]>
2022-10-15 15:19:04 +05:30
Mzack9999 a1e38c802e Merge pull request #2718 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.115
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.114 to 1.44.115 in /v2
2022-10-14 23:30:02 +02:00
Mzack9999 7795728d35 Merge branch 'dev' into dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.115 2022-10-14 23:19:32 +02:00
Mzack9999 a9f5d2defd reordering unsafe test in the map (#2721) 2022-10-15 01:38:32 +05:30
Mzack9999 a71f5d5460 Merge pull request #2717 from projectdiscovery/issue-2657
updates to execute func in integration-test.go
2022-10-14 15:35:37 +02:00
dependabot[bot] cb7b7b9f0d chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.114 to 1.44.115.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.114...v1.44.115)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-10-14 05:17:24 +00:00
Shubham Rasalandmzack 897dbe8e4c Add AS input support (#2712)
* Add AS input support

- Integrate mapcidr asn function to handle ASN number input support
- Check if input is ASN number or not. If yes then query for cidrs
- issue #2706

* Remove \r coz of failing test cases in windows os

* Replace newline char for windows

* remove extra line

* rename goldenfile dir to tests

* fixing folder name

Co-authored-by: mzack <[email protected]>
2022-10-14 00:25:00 +05:30
LuitelSamikshya 909aa4cd79 updates to execute func in integration-test.go 2022-10-13 11:05:10 -05:00
Mzack9999 c22f52e001 Merge pull request #2716 from projectdiscovery/issue-212/ratelimit-library
Issue 212/ratelimit library
2022-10-13 17:53:31 +02:00
LuitelSamikshya 944d24a252 mics changes 2022-10-13 09:30:25 -05:00
dependabot[bot] 2456121e1a chore(deps): bump github.com/projectdiscovery/mapcidr in /v2 (#2713)
Bumps [github.com/projectdiscovery/mapcidr](https://github.com/projectdiscovery/mapcidr) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/projectdiscovery/mapcidr/releases)
- [Changelog](https://github.com/projectdiscovery/mapcidr/blob/master/.goreleaser.yml)
- [Commits](https://github.com/projectdiscovery/mapcidr/compare/v1.0.2...v1.0.3)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/mapcidr
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-13 15:40:32 +05:30
LuitelSamikshya 90e7cbdcd2 mod update 2022-10-12 22:25:08 -05:00
LuitelSamikshya cb0da81a14 ratelimit library 2022-10-12 22:04:37 -05:00
dependabot[bot] 61c2e2cc6e chore(deps): bump golang.org/x/text from 0.3.7 to 0.3.8 in /v2 (#2710)
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.3.7 to 0.3.8.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.3.7...v0.3.8)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-12 11:25:26 +05:30
Mzack9999 f87bec1765 Fixing docker build missing gcc binary (#2704) 2022-10-11 13:01:13 +05:30
sandeep 2cb9689148 docker fix 2022-10-11 12:30:17 +05:30
Sandeep Singh 6151ccd178 docker go version update 2022-10-10 22:22:06 +05:30
Bertold Kolics 1af96fc679 Issue 2460: extended unit tests for replacer (#2691) 2022-10-10 22:00:43 +05:30
Sandeep Singh 43e3be471b Merge pull request #2696 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/projectdiscovery/wappalyzergo-0.0.63
chore(deps): bump github.com/projectdiscovery/wappalyzergo from 0.0.62 to 0.0.63 in /v2
2022-10-10 18:52:17 +05:30
sandeep 6178c83167 go mod update 2022-10-10 18:28:38 +05:30
dependabot[bot] a0ea06bc6f chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.62 to 0.0.63.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.62...v0.0.63)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-10-10 12:55:19 +00:00
Sandeep Singh 51237d5165 Merge pull request #2697 from projectdiscovery/issue-2656-context-leak
Adding custom cancel function
2022-10-10 16:20:29 +05:30
Sandeep Singh 0a35730345 Merge pull request #2695 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.114
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.113 to 1.44.114 in /v2
2022-10-10 16:03:13 +05:30
Sandeep Singh ad0a890e6f Merge pull request #2694 from projectdiscovery/dependabot/docker/dev/golang-1.19.2-alpine
chore(deps): bump golang from 1.19.1-alpine to 1.19.2-alpine
2022-10-10 16:02:39 +05:30
mzack 70cecf83fb Adding custom cancel function 2022-10-10 08:10:07 +02:00
dependabot[bot] 033e8c330f chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.113 to 1.44.114.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.113...v1.44.114)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-10-10 05:26:37 +00:00
dependabot[bot] 324ed91118 chore(deps): bump golang from 1.19.1-alpine to 1.19.2-alpine
Bumps golang from 1.19.1-alpine to 1.19.2-alpine.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-10-10 05:03:52 +00:00
sandeep f4c823c325 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei 2022-10-08 02:38:15 +05:30
Ice3man 09ceb29ba3 Fixed build error on 32bit arch 2022-10-08 01:55:18 +05:30
Sandeep Singh 85eda65d31 Merge pull request #2676 from projectdiscovery/dev
v2.7.8 Release
2022-10-08 00:36:57 +05:30
sandeep c694fd82e5 readme update 2022-10-08 00:33:40 +05:30
Ice3man 6c93d99745 Fixed failing lint tests 2022-10-08 00:10:32 +05:30
sandeep 299755b1a3 go mod + version update 2022-10-07 23:17:08 +05:30
Ice3man 9944f5e94e Added response truncation support with flags (#2688)
* Added response truncation support with flags

* Fixed failing tests for no size
2022-10-07 20:10:00 +05:30
Shubham Rasal 3ebd1f689b cidr input support #2665 (#2675)
* Add CIDR input support

- Add expandCIDRInputValue function which accepts the cidr,
  and stores the IPs into hmap. It uses mapcidr to get the expanded IPs
- Add test case to test expandCIDRInputValue and isCIDR function
- Update dsl_test.go which had typo. coz of failing test

* Resolve the requested changes
2022-10-07 14:28:02 +05:30
dependabot[bot] b17163e6b2 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2685)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.112 to 1.44.113.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.112...v1.44.113)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-07 14:25:21 +05:30
dependabot[bot] 04bd403e2e chore(deps): bump github.com/projectdiscovery/tlsx in /v2 (#2680)
Bumps [github.com/projectdiscovery/tlsx](https://github.com/projectdiscovery/tlsx) from 0.0.7 to 0.0.8.
- [Release notes](https://github.com/projectdiscovery/tlsx/releases)
- [Changelog](https://github.com/projectdiscovery/tlsx/blob/main/.goreleaser.yml)
- [Commits](https://github.com/projectdiscovery/tlsx/compare/v0.0.7...v0.0.8)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/tlsx
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-06 20:43:24 +05:30
dependabot[bot] e972f43014 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2681)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.111 to 1.44.112.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.111...v1.44.112)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-06 20:43:08 +05:30
Ice3man 1fd83c03bc Improved dsl test by removing coloring + fix datatime tests (#2654)
* Improved dsl test by removing coloring + fix datatime tests

* Fixed tests for dsl coloring
2022-10-06 03:18:05 +05:30
dependabot[bot] 549f4d54d9 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2678)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.110 to 1.44.111.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.110...v1.44.111)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-05 12:26:33 +05:30
Ice3man 357cd720b3 Merge pull request #2660 from projectdiscovery/results-pagination
Added pagination support to result retrieval
2022-10-05 01:04:45 +05:30
Ice3man d91c99fbb9 Updated fastdialer latest 2022-10-05 00:35:57 +05:30
Mzack9999 e45a00baa3 Merge pull request #2672 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.110
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.109 to 1.44.110 in /v2
2022-10-04 13:24:40 +02:00
Mzack9999 33ed5e7c93 Merge pull request #2671 from bertold/bk/randomip-unittest
Unit test for GetRandomIPWithCidr and fixes
2022-10-04 12:29:41 +02:00
dependabot[bot] b5e7be56ce chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.109 to 1.44.110.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.109...v1.44.110)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-10-04 05:16:26 +00:00
Bertold Kolics 087be32ae0 Added unit test for GetRandomIPWithCidr
Fixed an issue with handling non-zero based networks
Fixed an issue handling network addresses with single IPs
2022-10-03 18:30:55 -05:00
Ice3man e875da208e Merge pull request #2653 from projectdiscovery/elasticsearch-host-support
Added elasticsearch host reporting field support
2022-10-03 16:47:18 +05:30
ea08404538 Helm chart (#2557)
* added Helm chart

* Update deployment name in hap.yaml

Co-authored-by: Sandeep Singh <[email protected]>
Co-authored-by: Shubham Rasal <[email protected]>
2022-10-03 16:21:38 +05:30
dependabot[bot] 2067af8eb8 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2667)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.108 to 1.44.109.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.108...v1.44.109)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-03 15:45:14 +05:30
dependabot[bot] 9e20189041 chore(deps): bump github.com/shirou/gopsutil/v3 in /v2 (#2668)
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.22.8 to 3.22.9.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.22.8...v3.22.9)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-03 15:44:40 +05:30
dependabot[bot] f9e5cab79d chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2 (#2669)
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.61 to 0.0.62.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.61...v0.0.62)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-03 15:44:24 +05:30
Mzack9999 781e4e6105 Shared Execution Context Prototype (#2576)
* renaming var

* Introducing shared execution context prototype

* fixing field name

* adding shared values propagation

* adding shared context lock

* add slice values normalization

* adding integration tests

* adding metadata support for dns

* adding multi-protocol context sharing test

* removing debug test files

* moving contextargs around

* adding comments

* refactoring code

- getter/setter for complex types
- using pointers to avoid heap allocations
2022-10-03 15:42:20 +05:30
Mzack9999 2e66c8ddd6 Merge pull request #2662 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.108
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.107 to 1.44.108 in /v2
2022-09-30 12:28:28 +02:00
dependabot[bot] 9678cf7028 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.107 to 1.44.108.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.107...v1.44.108)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-09-30 05:30:57 +00:00
Mzack9999andSandeep Singh 0b1ff2bfa4 Forcing conns to be gc-ed by default disabling keep-alive (#2642)
* Forcing conns to be gc-ed with keep-alive

* removing redundant code

keep-alive are disabled by default

* fixing merge conflict

Co-authored-by: Sandeep Singh <[email protected]>
2022-09-30 04:25:56 +05:30
Ice3man 4f37c0b1f5 Added pagination support to result retrieval 2022-09-29 04:52:03 +05:30
GitHub Action 935dd68355 Auto Generate Syntax Docs + JSONSchema [Wed Sep 28 22:44:26 UTC 2022] 🤖 2022-09-28 22:44:26 +00:00
Mzack9999 18f14b631c Adding same host redirect support (#2655)
* simplifying test syntax

* adding same host redirect + refactoring redirect handling

* adding missing file

* adding support for template syntax

* adding integration test

* updating options

* fixing issue on same host redirect
2022-09-29 04:11:28 +05:30
Mzack9999 898e6b9ad4 Merge pull request #2658 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.107
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.106 to 1.44.107 in /v2
2022-09-28 13:47:21 +02:00
Mzack9999 3d2374ab73 Merge pull request #2637 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/go-rod/rod-0.111.0
chore(deps): bump github.com/go-rod/rod from 0.110.0 to 0.111.0 in /v2
2022-09-28 13:41:51 +02:00
dependabot[bot] f608017272 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.106 to 1.44.107.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.106...v1.44.107)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-09-28 05:16:29 +00:00
mzack 2cf0005eaa updating syntax 2022-09-28 01:51:47 +02:00
Mzack9999 5d41c74ead Merge pull request #2645 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.106
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.105 to 1.44.106 in /v2
2022-09-28 01:47:15 +02:00
Ice3man 6d96f75df7 Added elasticsearch host reporting field support 2022-09-28 01:25:51 +05:30
aprp 57b0d78dcf add unit tests for extract.go (#2635) 2022-09-28 01:24:00 +05:30
dependabot[bot] cfcf8f4313 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.105 to 1.44.106.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.105...v1.44.106)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-09-27 05:20:56 +00:00
Myung-jong Kim 9eea441b0e Add sort(list), sort(string), uniq(list), uniq(string) helper functions (#2372)
* Add feature in join() to sort a single string slice

Signed-off-by: Myung-jong Kim <[email protected]>

* Add sort helper function and related tests

Signed-off-by: Myung-jong Kim <[email protected]>

* Add uniq helper function and related tests

Signed-off-by: mjkim610 <[email protected]>

Signed-off-by: Myung-jong Kim <[email protected]>
Signed-off-by: mjkim610 <[email protected]>
2022-09-27 02:59:13 +05:30
Ice3man fc27fc94a5 Added default config generation for reporting options (#2605) 2022-09-27 02:40:34 +05:30
Mzack9999 06dcee0704 Merge pull request #2639 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/projectdiscovery/wappalyzergo-0.0.61
chore(deps): bump github.com/projectdiscovery/wappalyzergo from 0.0.60 to 0.0.61 in /v2
2022-09-26 12:58:55 +02:00
Mzack9999 dab79a0fbb Merge pull request #2638 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.105
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.104 to 1.44.105 in /v2
2022-09-26 12:58:44 +02:00
dependabot[bot] 1d7e12ce7a chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.60 to 0.0.61.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.60...v0.0.61)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-09-26 05:26:28 +00:00
dependabot[bot] a99892e5b9 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.104 to 1.44.105.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.104...v1.44.105)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-09-26 05:26:24 +00:00
dependabot[bot] 37d7786997 chore(deps): bump github.com/go-rod/rod from 0.110.0 to 0.111.0 in /v2
Bumps [github.com/go-rod/rod](https://github.com/go-rod/rod) from 0.110.0 to 0.111.0.
- [Release notes](https://github.com/go-rod/rod/releases)
- [Commits](https://github.com/go-rod/rod/compare/v0.110.0...v0.111.0)

---
updated-dependencies:
- dependency-name: github.com/go-rod/rod
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-09-26 05:26:15 +00:00
Mzack9999 b16f717def Merge pull request #2628 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/DataDog/gostackparse-0.6.0
chore(deps): bump github.com/DataDog/gostackparse from 0.5.0 to 0.6.0 in /v2
2022-09-25 18:41:34 +02:00
Mzack9999 6ac1172ae7 Merge pull request #2632 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.104
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.102 to 1.44.104 in /v2
2022-09-25 18:40:56 +02:00
dependabot[bot] 3f1df87d10 chore(deps): bump github.com/go-rod/rod from 0.109.3 to 0.110.0 in /v2 (#2631)
Bumps [github.com/go-rod/rod](https://github.com/go-rod/rod) from 0.109.3 to 0.110.0.
- [Release notes](https://github.com/go-rod/rod/releases)
- [Commits](https://github.com/go-rod/rod/compare/v0.109.3...v0.110.0)

---
updated-dependencies:
- dependency-name: github.com/go-rod/rod
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-23 17:08:33 +05:30
dependabot[bot] 0997cd8673 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.102 to 1.44.104.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.102...v1.44.104)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-09-23 05:18:34 +00:00
dependabot[bot] 231ac89552 chore(deps): bump github.com/DataDog/gostackparse in /v2
Bumps [github.com/DataDog/gostackparse](https://github.com/DataDog/gostackparse) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/DataDog/gostackparse/releases)
- [Commits](https://github.com/DataDog/gostackparse/compare/v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: github.com/DataDog/gostackparse
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-09-22 05:29:11 +00:00
dependabot[bot] 6f2d4c2d0c chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2625)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.100 to 1.44.102.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.100...v1.44.102)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-21 20:54:29 +05:30
GitHub Action 3ad1fec1d2 Auto Generate Syntax Docs + JSONSchema [Tue Sep 20 21:37:56 UTC 2022] 🤖 2022-09-20 21:37:56 +00:00
Samiandsandeep 512eab7b21 tl flag improvements (#2596)
* tl flag improvements

* tl flag enhancement with additional filters

* added ExcluedTags filter

* tl flas to list template paths

* using stdout

* misc update

Co-authored-by: sandeep <[email protected]>
2022-09-21 03:03:57 +05:30
Mzack9999 99c14f4c9c implementation of rate limiter with bucket refill and unrestricted token burst (#2536)
* implementation of rate limiter with interval burst

* fixing import path

* fixing syntax

* adding tests

* fixing lint errors

* adding support for context

* moving rate limiter earlier to avoid hitting timeout
2022-09-19 17:09:28 +05:30
Ice3man 03c7e89d9e Added workflow names based condition (#2594)
* Added workflow names based condition

* Added conditional filtering to workflow executor

* Replaced names with single name stringslice

* Fixed workflow matcher condition + tests

* Fixed workflow item name
2022-09-19 16:49:30 +05:30
Mzack9999 b43598e733 Merge pull request #2421 from projectdiscovery/dependabot/go_modules/v2/dev/go.uber.org/atomic-1.10.0
chore(deps): bump go.uber.org/atomic from 1.9.0 to 1.10.0 in /v2
2022-09-19 08:52:07 +02:00
mzack 37c016a5f0 fixing lint errors 2022-09-19 08:38:52 +02:00
mzack 2eb2cd892a Merge branch 'dev' into dependabot/go_modules/v2/dev/go.uber.org/atomic-1.10.0 2022-09-19 08:34:21 +02:00
Mzack9999 baeb7219ec Merge pull request #2589 from projectdiscovery/dependabot/docker/dev/golang-1.19.1-alpine
chore(deps): bump golang from 1.19.0-alpine to 1.19.1-alpine
2022-09-19 08:31:27 +02:00
Mzack9999 32ebb1f089 Merge pull request #2620 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/go-playground/validator/v10-10.11.1
chore(deps): bump github.com/go-playground/validator/v10 from 10.11.0 to 10.11.1 in /v2
2022-09-19 08:20:54 +02:00
Mzack9999 6a824c35ac Merge pull request #2619 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.100
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.99 to 1.44.100 in /v2
2022-09-19 08:20:41 +02:00
Mzack9999 39850b0b01 Merge pull request #2618 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/projectdiscovery/wappalyzergo-0.0.60
chore(deps): bump github.com/projectdiscovery/wappalyzergo from 0.0.59 to 0.0.60 in /v2
2022-09-19 08:20:29 +02:00
dependabot[bot] 0c18d0c33d chore(deps): bump github.com/go-playground/validator/v10 in /v2
Bumps [github.com/go-playground/validator/v10](https://github.com/go-playground/validator) from 10.11.0 to 10.11.1.
- [Release notes](https://github.com/go-playground/validator/releases)
- [Commits](https://github.com/go-playground/validator/compare/v10.11.0...v10.11.1)

---
updated-dependencies:
- dependency-name: github.com/go-playground/validator/v10
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-09-19 05:20:35 +00:00
dependabot[bot] 8eadc5f591 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.99 to 1.44.100.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.99...v1.44.100)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-09-19 05:20:26 +00:00
dependabot[bot] 83a1e1acad chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.59 to 0.0.60.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.59...v0.0.60)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-09-19 05:20:17 +00:00
Ice3manandsandeep 04b47b0309 Added custom json-unmarshaller + misc updates (#2556)
* Added custom json-unmarshaller + misc updates

* Added support for nuclei-cloud based scan execution

* Removed unnecessary files

* Misc

* Changes as per review comments

* misc option update

Co-authored-by: sandeep <[email protected]>
2022-09-19 01:13:59 +05:30
Sandeep Singh 42d9e7e75e Merge pull request #2590 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/projectdiscovery/wappalyzergo-0.0.59
chore(deps): bump github.com/projectdiscovery/wappalyzergo from 0.0.58 to 0.0.59 in /v2
2022-09-19 00:13:29 +05:30
Sandeep Singh 134031d5e5 Merge pull request #2615 from projectdiscovery/library-example-fix
Fix the example code showcasing how to use nuclei as a library
2022-09-18 16:30:15 +05:30
forgedhallpass c1ae0f612a Fix the example code showcasing how to use nuclei as a library 2022-09-17 22:30:17 +03:00
dependabot[bot] 254c88c2c6 chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.58 to 0.0.59.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.58...v0.0.59)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-09-16 17:42:16 +00:00
Ice3man 7e209dad01 Added multi-protocol requests support for templates (#2611) 2022-09-16 23:10:39 +05:30
Sajad 5377ee3f36 add proxy support at dialer level (#2549)
* add proxy support at dailer level

* add forward dialer to proxy
2022-09-16 21:36:17 +05:30
dependabot[bot] b31c21583b chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2609)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.95 to 1.44.99.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.95...v1.44.99)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-16 15:40:37 +05:30
dependabot[bot] f63f2e8923 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2591)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.93 to 1.44.95.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.93...v1.44.95)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-13 02:01:12 +05:30
dependabot[bot] 417ccc98c6 chore(deps): bump golang from 1.19.0-alpine to 1.19.1-alpine
Bumps golang from 1.19.0-alpine to 1.19.1-alpine.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-09-12 05:03:48 +00:00
dependabot[bot] 01e2e1df9a chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2577)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.92 to 1.44.93.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.92...v1.44.93)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-08 15:38:58 +05:30
Sami f3eb0daa39 additional dsl functions (#2550)
* additional dsl functions

* avoid conversion at each iteration
2022-09-08 14:25:34 +05:30
Mzack9999 7ce03bcc5b Optional use of local chrome for headless tests via tags (#2568) 2022-09-07 16:09:22 +05:30
dependabot[bot] f93d0e3956 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2574)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.91 to 1.44.92.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.91...v1.44.92)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-07 14:31:07 +05:30
dependabot[bot] 1ff0062663 chore(deps): bump go.uber.org/atomic from 1.9.0 to 1.10.0 in /v2
Bumps [go.uber.org/atomic](https://github.com/uber-go/atomic) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/uber-go/atomic/releases)
- [Changelog](https://github.com/uber-go/atomic/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uber-go/atomic/compare/v1.9.0...v1.10.0)

---
updated-dependencies:
- dependency-name: go.uber.org/atomic
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-09-06 20:01:12 +00:00
dependabot[bot] f5c155ae2b chore(deps): bump github.com/shirou/gopsutil/v3 in /v2 (#2531)
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.22.7 to 3.22.8.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.22.7...v3.22.8)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-07 01:30:10 +05:30
dependabot[bot] 9046df8147 chore(deps): bump github.com/docker/go-units from 0.4.0 to 0.5.0 in /v2 (#2532)
Bumps [github.com/docker/go-units](https://github.com/docker/go-units) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/docker/go-units/releases)
- [Commits](https://github.com/docker/go-units/compare/v0.4.0...v0.5.0)

---
updated-dependencies:
- dependency-name: github.com/docker/go-units
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-07 00:45:02 +05:30
forgedhallpass fc0763641f New dsl functions (#2545)
* Update GO version to 1.18

* Removed redundant entry from the .gitignore file

* Added new DSL functions

to_unix_time(input string, optionalLayout string) int64
hex_to_dec(input string) float64
oct_to_dec(input string|number) float64
bin_to_dec(intput string|number) float64

* Notify if debug is enabled when a proxy cannot be validated

* Documentation: Go version requirement updated to 1.18

* test fix: Timezone agnostic date expectation in the assertion

* code review: extracted the default date-time layouts into a global variable
2022-09-07 00:44:29 +05:30
dependabot[bot] e9179e5ccb chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2 (#2562)
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.57 to 0.0.58.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.57...v0.0.58)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-06 02:29:44 +05:30
dependabot[bot] 1775feac36 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2564)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.90 to 1.44.91.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.90...v1.44.91)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-06 02:29:09 +05:30
dependabot[bot] c5cf92a3a2 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2537)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.88 to 1.44.90.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.88...v1.44.90)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-03 12:13:33 +05:30
dependabot[bot] 4a138544c3 chore(deps): bump github.com/itchyny/gojq from 0.12.8 to 0.12.9 in /v2 (#2538)
Bumps [github.com/itchyny/gojq](https://github.com/itchyny/gojq) from 0.12.8 to 0.12.9.
- [Release notes](https://github.com/itchyny/gojq/releases)
- [Changelog](https://github.com/itchyny/gojq/blob/main/CHANGELOG.md)
- [Commits](https://github.com/itchyny/gojq/compare/v0.12.8...v0.12.9)

---
updated-dependencies:
- dependency-name: github.com/itchyny/gojq
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-03 12:13:18 +05:30
sandeep 567a8c60a2 dev version update 2022-09-02 12:52:07 +05:30
Ice3manandsandeep e193e7c87e Added tlsx integration to nuclei (#2522)
* Added tlsx integration to nuclei

* tls tests fix

* Added helper functions + upgrade tlsx to fix

* go mod update

* workflow fix to race test on windows

Co-authored-by: sandeep <[email protected]>
2022-09-01 23:56:55 +05:30
dependabot[bot] 1b462903c2 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2524)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.87 to 1.44.88.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.87...v1.44.88)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-31 12:58:38 +05:30
James Turner 42a0732d68 Add sha512 support (#2517) 2022-08-31 12:36:02 +05:30
dependabot[bot] d517861e43 chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2 (#2510)
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.56 to 0.0.57.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.56...v0.0.57)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-30 16:24:22 +05:30
dependabot[bot] cf73cda57e chore(deps): bump github.com/go-rod/rod from 0.109.0 to 0.109.3 in /v2 (#2518)
Bumps [github.com/go-rod/rod](https://github.com/go-rod/rod) from 0.109.0 to 0.109.3.
- [Release notes](https://github.com/go-rod/rod/releases)
- [Commits](https://github.com/go-rod/rod/compare/v0.109.0...v0.109.3)

---
updated-dependencies:
- dependency-name: github.com/go-rod/rod
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-30 16:02:07 +05:30
dependabot[bot] b139ee05c7 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2519)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.83 to 1.44.87.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.83...v1.44.87)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-30 15:57:41 +05:30
sullo 69709326d8 Add secunia to bad site list (#2516) 2022-08-30 12:29:30 +05:30
Ice3man 466176e9e8 Merge pull request #2500 from projectdiscovery/goflags-update
Updated goflags to latest + misc
2022-08-30 11:52:25 +05:30
M. Ángel Jimeno 62a4e0aa52 Return wrapped errors for DSL compilation problems (#2492)
This allows the DSL help information to be printed when in debug mode.

Fixes #2481
2022-08-29 13:41:32 +05:30
mzack e53614de0e correcting option type 2022-08-29 06:44:51 +02:00
Mzack9999 8fe7276f9e bumping goflags version 2022-08-29 06:03:14 +02:00
Sandeep Singh e329428684 fix: make headless template validation optional (#2507) 2022-08-29 03:00:58 +05:30
Myung-jong Kimandsandeep 01fbb3050d Added option to list DSL function (#2497)
* Add lds flag

* misc flag update

* readme update

Co-authored-by: sandeep <[email protected]>
2022-08-28 16:37:21 +05:30
Ice3man 043189472f Misc fixes to integration tests 2022-08-27 19:50:25 +05:30
Ice3man 8892250583 Updated goflags to latest + misc 2022-08-27 19:35:17 +05:30
sandeep c34fd8b5c1 default timeout update 2022-08-27 13:46:23 +05:30
Sandeep Singh c734bd666f Merge pull request #2499 from mjkim610/gitignore-exe
Add .exe to gitignore
2022-08-27 12:45:06 +05:30
Myung-jong Kim 44cf3b7281 Add .exe to gitignore
The .exe files are Windows executables and should not be included
in the repo.

Signed-off-by: Myung-jong Kim <[email protected]>
2022-08-27 16:04:20 +09:00
Sandeep Singh 1010cca84e Merge pull request #2496 from projectdiscovery/dev
v2.7.7
2022-08-26 15:13:19 +05:30
sandeep 8f8ab429ff readme update 2022-08-26 14:20:18 +05:30
sandeep efdc57c7b2 version update 2022-08-26 14:18:32 +05:30
SajadandSandeep Singh 011da1388d add option to specify network interface (#2384)
* add option to specify network interface

* add source-ip flag

* fix typo

* fix err return

* readme update

Co-authored-by: Sandeep Singh <[email protected]>
2022-08-25 17:42:35 +05:30
Mzack9999 30054d1fb6 Adding advanced template filtering (#2374)
* Adding advanced template filtering

* fixing bug in slice

* refactoring tests

* adding test cases

* increasing error verbosity

* fixing quoted fields with spaces

* adding more test cases

* fixing merge error

* fixing lint errors

* switching to []string

* updating tag filter tests

* updating functional tests

* fixing functional test cases

* updating syntax
2022-08-25 16:52:08 +05:30
Sami 0aac36a44b added custom config flag (#2399)
* added custom config flag

* config.yaml file in custom  directory

* lint error fix

* few updates and error checks

* fix lint error

* copy config.yaml file if the dest folder does not exist

* lint error check

* added integration test

* improved test cases

* lint error fix
2022-08-25 16:10:07 +05:30
606c361b2a Add substr and aes_cbc DSL functions (#2361)
* 1、add DSL substr for #2304 By @hktalent
substr('xxtestxxx',2)。   testxxx
substr('xxtestxxx',2,-2)  testx
substr('xxtestxxx',2,6)   test

2、add DSL aes_cbc for #2243 By @hktalent
aes_cbc("key111key111key111key111", "dataxxxxxxdataxxxxxxdataxxxxxxdataxxxxxxdataxxxxxx")

3、fixed An error occurs when running nuclei with multiple instances #2301 By @hktalent

* refactoring helpers

* removing unwanted mutex

* commenting out test

* removing aes_cbc test due to random iv

Co-authored-by: 51pwn <[email protected]>
Co-authored-by: Mzack9999 <[email protected]>
2022-08-25 15:50:08 +05:30
Ice3man 0be596efb4 Added variable debug support with debug mode (#2442)
* Added variable debug support with debug mode

* Added changes as per review comments

* Fixed debug request condition
2022-08-25 15:37:03 +05:30
MinandSandeep Singh 72656025d8 Wrong parameters modified (#2491)
Co-authored-by: Sandeep Singh <[email protected]>
2022-08-25 15:14:08 +05:30
Ice3manandsandeep 7b7936b7a5 Added show-actions flag to display headless actions (#2456)
* Added show-actions flag to display headless actions

* misc update

* readme update

Co-authored-by: sandeep <[email protected]>
2022-08-25 10:43:32 +05:30
M. Ángel Jimenoandsandeep ecb3f21076 http: prevent HTTP 'connection' header from being added twice (#2480)
* http: prevent HTTP 'connection' header from being added twice

* misc fix

Co-authored-by: sandeep <[email protected]>
2022-08-25 00:25:02 +05:30
dependabot[bot] cdb9e617e6 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2483)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.82 to 1.44.83.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.82...v1.44.83)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-24 23:44:30 +05:30
dependabot[bot] d2233eff50 chore(deps): bump github.com/xanzy/go-gitlab in /v2 (#2484)
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.73.0 to 0.73.1.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.73.0...v0.73.1)

---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-24 23:44:03 +05:30
Ice3man 8165db2633 Fixed fatal panic in http header map read (#2488) 2022-08-24 23:29:22 +05:30
Ice3man 77c81834b2 Fixed loader templateConfig nil pointer crash (#2486) 2022-08-24 19:32:56 +05:30
Ice3man 8f313629b8 Memory usage optimizations (#2350)
* Replaced strings.Replaced with fasttemplate reducing allocations

Custom template parsing logic was replaced with fasttemplate package for reducing
allocations in the replacer.Replace hotpath leading to allocation reduction which
accounted for 30% of total nuclei allocations.

$ go test -bench=. -benchmem
goos: darwin
goarch: arm64
pkg: github.com/projectdiscovery/nuclei/v2/pkg/protocols/common/replacer
BenchmarkReplacer-8               837232              1422 ns/op            2112 B/op         31 allocs/op
BenchmarkReplacerNew-8           3672765               320.3 ns/op            48 B/op          4 allocs/op

* Fixed tests failing

* Use pre-compiled map of DSL expressions

* Reworked expression parsing logic to reduce memory allocations

$ go test -bench=. -benchmem
goos: darwin
goarch: arm64
pkg: github.com/projectdiscovery/nuclei/v2/pkg/protocols/common/expressions
BenchmarkEvaluate-8        31560             37769 ns/op           31731 B/op        265 allocs/op
BenchmarkEvaluateNew-8       109144              9621 ns/op            6253 B/op        116 allocs/op
2022-08-23 13:16:41 +05:30
dependabot[bot] f5f2ee145b chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2479)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.81 to 1.44.82.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.81...v1.44.82)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-23 12:50:41 +05:30
dependabot[bot] c3e9e1fe4a chore(deps): bump github.com/xanzy/go-gitlab in /v2 (#2478)
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.72.0 to 0.73.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.72.0...v0.73.0)

---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-23 12:50:27 +05:30
Ice3man e7cffad312 Fixed request annotation based timeout bugs + tests + misc (#2476) 2022-08-23 12:45:55 +05:30
Ice3manandsandeep 275425589a Added reference based tag addition to templates (#2464)
* Added reference based tag addition to templates

* reference mapping list update

* Misc changes as per review

Co-authored-by: sandeep <[email protected]>
2022-08-22 18:11:08 +05:30
Dani Goland 8670c8b20d Modified "xpath" extractor to support XML XPath in addition to HTML XPath (#2471)
* Modified "xpath" extractor to support XML XPath in addition to HTML XPath

* Updated function docs
2022-08-22 15:27:32 +05:30
dependabot[bot] 419924188b chore(deps): bump github.com/andygrunwald/go-jira in /v2 (#2470)
Bumps [github.com/andygrunwald/go-jira](https://github.com/andygrunwald/go-jira) from 1.15.1 to 1.16.0.
- [Release notes](https://github.com/andygrunwald/go-jira/releases)
- [Changelog](https://github.com/andygrunwald/go-jira/blob/main/CHANGELOG.md)
- [Commits](https://github.com/andygrunwald/go-jira/compare/v1.15.1...v1.16.0)

---
updated-dependencies:
- dependency-name: github.com/andygrunwald/go-jira
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-22 15:19:30 +05:30
2ae7e58c83 Fix socks5 proxy not working on tor proxy (#2455)
* fix: socks5 proxy not working on tor proxy

* fix: socks5 proxy not working on tor proxy

* minor refactoring

Co-authored-by: Sandeep Singh <[email protected]>
Co-authored-by: Mzack9999 <[email protected]>
2022-08-22 15:18:45 +05:30
dependabot[bot] c184b84ebf chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2468)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.77 to 1.44.81.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.77...v1.44.81)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-22 15:13:40 +05:30
dependabot[bot] c1a99ae452 chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2 (#2469)
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.55 to 0.0.56.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.55...v0.0.56)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-22 15:13:03 +05:30
Sami d14c00fc6f added validation for headless templates (#2423)
* added validation for headless templates

* minor update in log msg
2022-08-17 17:10:27 +04:00
Sandeep Singh a477fe0637 Merge pull request #2426 from projectdiscovery/dev
Bugfix release
2022-08-16 17:16:42 -07:00
Ice3man 9e531727a7 Fixed a bug with numerical regex in unresolved var detection (#2431) 2022-08-17 03:59:51 +04:00
dependabot[bot] 6c7cd17b72 chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2 (#2429)
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.54 to 0.0.55.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.54...v0.0.55)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-17 03:49:37 +04:00
dependabot[bot] 1828b3ba52 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2437)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.75 to 1.44.77.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.75...v1.44.77)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-17 03:48:53 +04:00
dependabot[bot] e056d58510 chore(deps): bump alpine from 3.16.1 to 3.16.2 (#2427)
Bumps alpine from 3.16.1 to 3.16.2.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-17 03:48:40 +04:00
Sandeep Singh 2c79c9f87e rawhttp version bump (#2444) 2022-08-17 03:48:04 +04:00
sandeep de00155bb6 Added release announce automation 2022-08-13 01:30:08 -07:00
sandeep 3193bf8f94 version update 2022-08-13 01:26:43 -07:00
dependabot[bot] addf4fe5cf chore(deps): bump github.com/go-rod/rod from 0.108.2 to 0.109.0 in /v2 (#2422)
Bumps [github.com/go-rod/rod](https://github.com/go-rod/rod) from 0.108.2 to 0.109.0.
- [Release notes](https://github.com/go-rod/rod/releases)
- [Commits](https://github.com/go-rod/rod/compare/v0.108.2...v0.109.0)

---
updated-dependencies:
- dependency-name: github.com/go-rod/rod
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-11 22:37:43 -07:00
dependabot[bot] c985c508f7 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2420)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.73 to 1.44.75.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.73...v1.44.75)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-11 22:37:17 -07:00
dependabot[bot] 2c2e687507 chore(deps): bump github.com/xanzy/go-gitlab in /v2 (#2418)
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.71.0 to 0.72.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.71.0...v0.72.0)

---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-11 08:30:46 -07:00
dependabot[bot] 75f091c2a2 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2417)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.71 to 1.44.73.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.71...v1.44.73)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-11 08:30:22 -07:00
Ice3manandsandeep 67d5769cd9 Added initial catalog interface implementation (#2318)
* Added initial catalog interface implementation

* Added OpenFile to Catalog + disk catalog implementation

* Fixed merge issues

Co-authored-by: sandeep <[email protected]>
2022-08-10 11:05:58 -07:00
Ice3man 4dc98a1d95 Added support for blank Request-URI which specifies no slash suffix (#2414) 2022-08-10 10:15:09 -07:00
dependabot[bot] 16fe557398 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2411)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.70 to 1.44.71.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.70...v1.44.71)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-09 15:15:01 -07:00
Ice3man a190d8ff97 Added profile-mem flag for Memory profiling (#2292)
* Added profile flag for CPU and Memory profiling

* Updated DESIGN.md profiling instructions

* Misc

* Do only memory profiling

* Use gologger

* Misc
2022-08-09 11:19:23 -07:00
dependabot[bot] d91e0af6d0 chore(deps): bump golang from 1.18.4-alpine to 1.19.0-alpine (#2404)
Bumps golang from 1.18.4-alpine to 1.19.0-alpine.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-08 11:26:59 +05:30
dependabot[bot] 4461ec8db3 chore(deps): bump github.com/xanzy/go-gitlab in /v2 (#2406)
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.70.0 to 0.71.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.70.0...v0.71.0)

---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-08 11:24:40 +05:30
dependabot[bot] b521cb8047 chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2 (#2405)
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.53 to 0.0.54.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.53...v0.0.54)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-08 11:24:18 +05:30
Sajad c4ba2b4edb Additional helpers (#2359)
* add starts_with, ends_with helper functions

* add test cases, update dsl signatures

* change split_starts_with to line_starts_with
2022-08-06 23:16:03 +05:30
dependabot[bot] d9f9324e12 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2396)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.69 to 1.44.70.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.69...v1.44.70)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-06 23:07:03 +05:30
true13 c8f5f02ad6 한국어 -> korean (#2401) 2022-08-06 12:01:54 +05:30
sandeep c815f53e67 interactsh test domain update 2022-08-04 19:37:33 +05:30
dependabot[bot] 4e871277d8 chore(deps): bump github.com/go-rod/rod from 0.108.1 to 0.108.2 in /v2 (#2391)
Bumps [github.com/go-rod/rod](https://github.com/go-rod/rod) from 0.108.1 to 0.108.2.
- [Release notes](https://github.com/go-rod/rod/releases)
- [Commits](https://github.com/go-rod/rod/compare/v0.108.1...v0.108.2)

---
updated-dependencies:
- dependency-name: github.com/go-rod/rod
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-04 17:15:03 +05:30
dependabot[bot] 306fdc8453 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2392)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.67 to 1.44.69.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.67...v1.44.69)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-04 17:12:41 +05:30
dependabot[bot] 821f0a48ea chore(deps): bump github.com/xanzy/go-gitlab in /v2 (#2381)
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.69.0 to 0.70.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.69.0...v0.70.0)

---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-02 19:00:10 +05:30
dependabot[bot] f15d6bda4d chore(deps): bump github.com/shirou/gopsutil/v3 in /v2 (#2379)
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.22.6 to 3.22.7.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.22.6...v3.22.7)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-02 18:59:44 +05:30
dependabot[bot] 4b6c6933bb chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2382)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.65 to 1.44.67.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.65...v1.44.67)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-02 18:49:16 +05:30
dependabot[bot] 889d26dbb2 chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2 (#2378)
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.52 to 0.0.53.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.52...v0.0.53)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-02 18:48:19 +05:30
Mzack9999 16acbe80f7 Merge pull request #2366 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.65
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.64 to 1.44.65 in /v2
2022-07-29 15:26:43 +02:00
GitHub Action 3243e4dcc5 Auto Generate Syntax Docs + JSONSchema [Fri Jul 29 11:39:57 UTC 2022] 🤖 2022-07-29 11:39:57 +00:00
forgedhallpass d24736f655 fix typo in the headless setmethod function #2365 2022-07-29 14:38:07 +03:00
dependabot[bot] 2c7c8323d6 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.64 to 1.44.65.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.64...v1.44.65)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-07-29 05:20:05 +00:00
sandeep 125588046e version update 2022-07-28 17:05:29 +05:30
dependabot[bot] 6077fb3da3 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2356)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.63 to 1.44.64.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.63...v1.44.64)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-28 14:13:25 +05:30
dependabot[bot] 7b99e4bc7a chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2352)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.62 to 1.44.63.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.62...v1.44.63)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-27 15:26:59 +05:30
dependabot[bot] 16a3b5bc8a chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2343)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.61 to 1.44.62.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.61...v1.44.62)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-26 22:53:48 +05:30
Mzack9999 b942ddc6ad Fixing map race condition (#2340) 2022-07-26 18:30:15 +05:30
Samiandmzack 4da4ca5a16 missing ip in json (#2310)
* missing ip in json

* using GetDNSData in place of GetDialedIP

* updated go mod

* bumping rawhttp test version

Co-authored-by: mzack <[email protected]>
2022-07-26 17:08:53 +05:30
Sandeep Singh 366e04be8d Merge pull request #2337 from projectdiscovery/dependabot/docker/dev/alpine-3.16.1
chore(deps): bump alpine from 3.16.0 to 3.16.1
2022-07-25 20:56:49 +05:30
Sandeep Singh 03af9e10cc Merge pull request #2338 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/projectdiscovery/wappalyzergo-0.0.52
chore(deps): bump github.com/projectdiscovery/wappalyzergo from 0.0.51 to 0.0.52 in /v2
2022-07-25 20:55:44 +05:30
Sandeep Singh da23163cb2 Merge pull request #2339 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.61
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.60 to 1.44.61 in /v2
2022-07-25 20:55:34 +05:30
dependabot[bot] 1587efae0a chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.60 to 1.44.61.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.60...v1.44.61)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-07-25 05:29:59 +00:00
dependabot[bot] 449f747f3c chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.51 to 0.0.52.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.51...v0.0.52)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-07-25 05:29:47 +00:00
dependabot[bot] b8d47ffe05 chore(deps): bump alpine from 3.16.0 to 3.16.1
Bumps alpine from 3.16.0 to 3.16.1.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-07-25 05:06:06 +00:00
Sandeep Singh 146c527de0 Merge pull request #2336 from projectdiscovery/dev
v2.7.5
2022-07-24 15:34:31 +05:30
sandeep 3052d8a7f6 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into dev 2022-07-24 15:00:44 +05:30
sandeep ee9f8b7651 version update 2022-07-24 15:00:36 +05:30
Sajad 005b92217f return on parse template error unconditionally (#2327) 2022-07-24 14:56:06 +05:30
sandeep ae5bc2b269 Merge branch 'master' of https://github.com/projectdiscovery/nuclei into dev 2022-07-24 12:03:33 +05:30
MiryangJung 1c85740f5b Add Korean translation README.md (#2332)
* Add KR

* Add KR
2022-07-24 12:02:58 +05:30
dependabot[bot] 8d909c8e5d chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2331)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.59 to 1.44.60.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.59...v1.44.60)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-22 19:37:00 +05:30
Ice3man 7d7314e3f3 Added global variables support to SSL protocol (#2325) 2022-07-22 01:35:21 +05:30
Ice3man a3eb5ebd4c Added CISA KEV annotation support to cve-annotate (#2323)
* Added CISA KEV annotation support to cve-annotate

* Fixed lint errors
2022-07-21 21:30:15 +05:30
Ice3man 2873e6ebc8 Added timeout context cancellation to http requests (#2319) 2022-07-21 21:29:34 +05:30
Mzack9999 ad2f0792c4 Merge pull request #2324 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.59
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.57 to 1.44.59 in /v2
2022-07-21 12:36:04 +02:00
dependabot[bot] 0a7f4b9737 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.57 to 1.44.59.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.57...v1.44.59)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-07-21 05:25:49 +00:00
dependabot[bot] d65d2356be chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2312)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.56 to 1.44.57.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.56...v1.44.57)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-19 15:42:21 +05:30
Mike RheinheimerandMike Rheinheimer 9efba05e0c expose hosterrorscache.Cache as an interface (#2291)
* expose hosterrorscache as an interface, change signature to capture the error reason

* use the hosterrorscache.CacheInterface as struct field so users of Nuclei embedded can provide their own cache implementation

Co-authored-by: Mike Rheinheimer <[email protected]>
2022-07-19 02:05:53 +05:30
Sandeep Singh 1bf885e97b Increases race condition coverage (#2293) 2022-07-19 01:10:10 +05:30
Ice3man 07d5beb73a Fixed race condition with raw http options (#2306) 2022-07-19 01:08:30 +05:30
dependabot[bot] fd0acc559d chore(deps): bump github.com/projectdiscovery/interactsh in /v2 (#2299)
Bumps [github.com/projectdiscovery/interactsh](https://github.com/projectdiscovery/interactsh) from 1.0.5 to 1.0.6.
- [Release notes](https://github.com/projectdiscovery/interactsh/releases)
- [Changelog](https://github.com/projectdiscovery/interactsh/blob/main/.goreleaser.yml)
- [Commits](https://github.com/projectdiscovery/interactsh/compare/v1.0.5...v1.0.6)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/interactsh
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-18 14:57:24 +05:30
dependabot[bot] 1770fd3e54 chore(deps): bump github.com/xanzy/go-gitlab in /v2 (#2297)
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.68.2 to 0.69.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.68.2...v0.69.0)

---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-18 14:21:27 +05:30
dependabot[bot] e897f69296 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2300)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.55 to 1.44.56.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.55...v1.44.56)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-18 14:20:51 +05:30
dependabot[bot] 9090ae993e chore(deps): bump golang from 1.18.3-alpine to 1.18.4-alpine (#2296)
Bumps golang from 1.18.3-alpine to 1.18.4-alpine.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-18 14:19:09 +05:30
dependabot[bot] 19a3b436dc chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2 (#2298)
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.50 to 0.0.51.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.50...v0.0.51)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-18 14:18:44 +05:30
Mzack9999 cf1039f49c Adding prototype of request flow override annotations (#2161)
* Adding prototype of request flow override annotations

* reworking iteration engine

* adding directory to .gitignore
2022-07-18 14:16:03 +05:30
Sandeep Singh 0165822b49 Merge pull request #2303 from projectdiscovery/dev
v2.7.4 Release
2022-07-18 13:43:20 +05:30
sandeep 4ae458df98 readme update 2022-07-18 13:11:28 +05:30
dependabot[bot] 46f59379d9 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2289)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.53 to 1.44.55.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.53...v1.44.55)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-16 18:04:53 +05:30
dependabot[bot]andmzack 85ca247d26 chore(deps): bump github.com/go-rod/rod from 0.107.3 to 0.108.1 in /v2 (#2272)
* chore(deps): bump github.com/go-rod/rod from 0.107.3 to 0.108.1 in /v2

Bumps [github.com/go-rod/rod](https://github.com/go-rod/rod) from 0.107.3 to 0.108.1.
- [Release notes](https://github.com/go-rod/rod/releases)
- [Commits](https://github.com/go-rod/rod/compare/v0.107.3...v0.108.1)

---
updated-dependencies:
- dependency-name: github.com/go-rod/rod
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* increasing page timeout

* further increasing timeout

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mzack <[email protected]>
2022-07-14 03:14:13 +05:30
db727db006 Optionally disable templates syntax strict check (#2266)
* nuclei::templates|define strict option (default)

* renaming flag and internal variable

* misc flag update

Co-authored-by: c-f <[email protected]>
Co-authored-by: mzack <[email protected]>
Co-authored-by: sandeep <[email protected]>
2022-07-13 17:00:11 +05:30
Samiandsandeep 6c2fdd3387 Issue 2227 ntv flag run new templates added in specific version (#2275)
* ntv flag to run templates added in specified version

* added missing arguments

* misc update

* added functional test and err check

* updated the min version

Co-authored-by: sandeep <[email protected]>
2022-07-13 16:49:06 +05:30
Mzack9999 d96b005a15 Merge pull request #2279 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.53
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.52 to 1.44.53 in /v2
2022-07-13 10:30:16 +02:00
Sajad be73fde0db use go-homedir instead of standard os.userhomedir (#2262)
* use go-homedir instead of standard os.userhomedir

* set r.templatesConfig before write attempt to avoid panic
2022-07-13 13:33:13 +05:30
dependabot[bot] d5974f8171 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.52 to 1.44.53.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.52...v1.44.53)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-07-13 05:25:22 +00:00
Mzack9999 04df7244d3 Merge pull request #2278 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.52
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.45 to 1.44.52 in /v2
2022-07-12 18:12:17 +02:00
Mzack9999 625b839e8c Merge pull request #2250 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/shirou/gopsutil/v3-3.22.6
chore(deps): bump github.com/shirou/gopsutil/v3 from 3.22.5 to 3.22.6 in /v2
2022-07-12 17:56:24 +02:00
Mzack9999 83ecf59305 Merge pull request #2273 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/projectdiscovery/wappalyzergo-0.0.50
chore(deps): bump github.com/projectdiscovery/wappalyzergo from 0.0.48 to 0.0.50 in /v2
2022-07-12 17:55:23 +02:00
dependabot[bot] 61c09d81f0 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.45 to 1.44.52.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.45...v1.44.52)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-07-12 05:22:07 +00:00
Mzack9999 57b2ec7ade Adding offline http tests (#2276) 2022-07-12 02:58:36 +05:30
Mzack9999 1c332bb85b Improving RFC request/response passive parsing (#2192)
* Improving RFC request/response passive parsing

* adding test
2022-07-11 22:43:10 +05:30
Mzack9999 3c945f6ae9 Adding stricter check on offline templates list (#2213) 2022-07-11 22:38:07 +05:30
Ice3man 5b3c2861c2 Added interact-url placeholder support to variables in http requests (#2237)
* Added interact-url placeholder support to variables in http requests

* Fixed variable errors

* Fixed issue with interactsh in req
2022-07-11 22:18:13 +05:30
dependabot[bot] 2cd4d425cb chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.48 to 0.0.50.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.48...v0.0.50)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-07-11 05:21:29 +00:00
sulloandmzack fd9c865416 Add new sites to ban list (#2215)
* Add new sites to ban list
* ntelbras.com/
* andmp.com/
* blacklanternsecurity.com/
* pwnwiki.org/
* 0dayhack.net/
* correkt.horse/
* poc.wgpsec.org
* ctf\-writeup.revers3c.com/

* Update cve-annotate to use a contains instead of regex, as it's slightly faster

* Tighten up matchers a little

* small refactor

* Remove lead / from skip domains
Remove stray debug printf

Co-authored-by: mzack <[email protected]>
2022-07-08 20:28:22 +05:30
anyknoandmzack 73a0043f2d fix: socks5 proxy not working on https target (#2228)
* fix: socks5 proxy not working on https target

* small name refactor

Co-authored-by: mzack <[email protected]>
2022-07-01 15:31:00 +05:30
dependabot[bot] 21a63cc449 chore(deps): bump github.com/shirou/gopsutil/v3 in /v2
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.22.5 to 3.22.6.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.22.5...v3.22.6)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-07-01 05:22:04 +00:00
Mzack9999andsandeep 476773ff8c Replacing hasstdin with helper library (#2191)
* Replacing hasstdin with helper library

* adding timeout reader on stdin

* adding large input read timeout

* reducing stdin timeout + nostdin flag

* go mod update

* readme update

* go mod tidy

Co-authored-by: sandeep <[email protected]>
2022-06-30 17:51:54 +05:30
dependabot[bot] b0e5da2699 chore(deps): bump github.com/owenrumney/go-sarif/v2 in /v2 (#2200)
Bumps [github.com/owenrumney/go-sarif/v2](https://github.com/owenrumney/go-sarif) from 2.1.1 to 2.1.2.
- [Release notes](https://github.com/owenrumney/go-sarif/releases)
- [Changelog](https://github.com/owenrumney/go-sarif/blob/main/.goreleaser.yml)
- [Commits](https://github.com/owenrumney/go-sarif/compare/v2.1.1...v2.1.2)

---
updated-dependencies:
- dependency-name: github.com/owenrumney/go-sarif/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-30 17:02:37 +05:30
dependabot[bot] 3e6603a792 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2246)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.43 to 1.44.45.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.43...v1.44.45)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-30 16:53:40 +05:30
dependabot[bot] deca59a5d7 chore(deps): bump github.com/projectdiscovery/interactsh in /v2 (#2248)
Bumps [github.com/projectdiscovery/interactsh](https://github.com/projectdiscovery/interactsh) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/projectdiscovery/interactsh/releases)
- [Changelog](https://github.com/projectdiscovery/interactsh/blob/main/.goreleaser.yml)
- [Commits](https://github.com/projectdiscovery/interactsh/compare/v1.0.4...v1.0.5)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/interactsh
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-30 16:53:23 +05:30
Mzack9999 3838d06aeb Adding prototype for unexpected fields validation in matchers (#2171)
* Adding unexpected fields validation

* using expected fields

* adding missing expected field

* using reflect
2022-06-30 16:50:54 +05:30
dependabot[bot] b238899581 chore(deps): bump github.com/go-rod/rod from 0.107.1 to 0.107.3 in /v2 (#2230)
Bumps [github.com/go-rod/rod](https://github.com/go-rod/rod) from 0.107.1 to 0.107.3.
- [Release notes](https://github.com/go-rod/rod/releases)
- [Commits](https://github.com/go-rod/rod/compare/v0.107.1...v0.107.3)

---
updated-dependencies:
- dependency-name: github.com/go-rod/rod
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-30 10:34:08 +05:30
dependabot[bot] a9405b6881 chore(deps): bump github.com/hashicorp/go-version in /v2 (#2239)
Bumps [github.com/hashicorp/go-version](https://github.com/hashicorp/go-version) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/hashicorp/go-version/releases)
- [Changelog](https://github.com/hashicorp/go-version/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/go-version/compare/v1.5.0...v1.6.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-version
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-30 10:33:29 +05:30
dependabot[bot] 1c6bf0958c chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2 (#2240)
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.47 to 0.0.48.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.47...v0.0.48)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-30 10:33:16 +05:30
dependabot[bot] 1f7c782d8d chore(deps): bump github.com/xanzy/go-gitlab in /v2 (#2241)
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.68.0 to 0.68.2.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.68.0...v0.68.2)

---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-30 10:33:01 +05:30
dependabot[bot] c02a2b25a2 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2238)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.37 to 1.44.43.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.37...v1.44.43)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-28 20:23:17 +05:30
dependabot[bot] 0684ad4672 chore(deps): bump github.com/stretchr/testify from 1.7.2 to 1.7.5 in /v2 (#2220)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.2 to 1.7.5.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.2...v1.7.5)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-28 20:22:48 +05:30
dependabot[bot] 924e9c74f9 chore(deps): bump github.com/miekg/dns from 1.1.49 to 1.1.50 in /v2 (#2197)
Bumps [github.com/miekg/dns](https://github.com/miekg/dns) from 1.1.49 to 1.1.50.
- [Release notes](https://github.com/miekg/dns/releases)
- [Changelog](https://github.com/miekg/dns/blob/master/Makefile.release)
- [Commits](https://github.com/miekg/dns/compare/v1.1.49...v1.1.50)

---
updated-dependencies:
- dependency-name: github.com/miekg/dns
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-28 20:22:00 +05:30
Ice3man f3de611b49 Added enhancements for http variables support (#2223) 2022-06-28 20:20:18 +05:30
Ice3man 8040b66370 Added http request timeout support with annotations (#2233)
* Added http request timeout support with annotations

* Added nolint statements for lostcontext

* misc

* misc
2022-06-27 18:36:46 +05:30
Ice3man ffe6ab04b3 Added include-templates force-loading for templates (#2232)
* Added include-templates force-loading for templates

* Fixed loader case with include-templates

* Added integration test for excluded-template in loader
2022-06-27 18:09:29 +05:30
GitHub Action 73ddae3478 Auto Generate Syntax Docs + JSONSchema [Fri Jun 24 17:41:08 UTC 2022] 🤖 2022-06-24 17:41:08 +00:00
Ice3man 7875b06fc8 Added exclude-matchers support for template & matchers (#2218)
* Added exclude-matchers support for template & matchers

* Fixed panics due to typo

* Added support for only template ID + misc cleanup
2022-06-24 23:09:27 +05:30
Ice3man 9073b753ca Added aes_gcm implementation for DSL function (#2196)
* Added aes_gcm implementation for DSL function

* Added integration test for dsl-functions.yaml
2022-06-23 16:16:24 +05:30
Sandeep Singh e126237cbd Merge pull request #2201 from projectdiscovery/dev
Bugfix Release
2022-06-22 01:28:14 +05:30
sandeep 7f28c048a6 version update 2022-06-22 00:45:08 +05:30
Mzack9999 0b351e83f3 Add self diagnostic functionality (#2178)
* Adding Self-Diagnostic

* adding comment
2022-06-22 00:40:10 +05:30
dependabot[bot]andmzack 1047047790 chore(deps): bump github.com/go-rod/rod from 0.106.8 to 0.107.1 in /v2 (#2114)
* chore(deps): bump github.com/go-rod/rod from 0.106.8 to 0.107.1 in /v2

Bumps [github.com/go-rod/rod](https://github.com/go-rod/rod) from 0.106.8 to 0.107.1.
- [Release notes](https://github.com/go-rod/rod/releases)
- [Commits](https://github.com/go-rod/rod/compare/v0.106.8...v0.107.1)

---
updated-dependencies:
- dependency-name: github.com/go-rod/rod
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* fixing function call

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mzack <[email protected]>
2022-06-22 00:31:08 +05:30
Mzack9999andsandeep 112762f024 Adding http request validation at compile time (#2193)
* Adding http request validation at compile time

* misc update

Co-authored-by: sandeep <[email protected]>
2022-06-22 00:26:06 +05:30
Ice3man 50d21c0464 Fixed a issue with random invalid matches in DSL (#2195) 2022-06-21 21:58:43 +05:30
M. Ángel Jimeno af4854f90d output: fix WriteStoreDebugData file permissions (#2187)
Fixes #2180
2022-06-20 17:10:22 +05:30
dependabot[bot] cba6dbb8f4 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2185)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.36 to 1.44.37.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.36...v1.44.37)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-20 15:00:02 +05:30
dependabot[bot] 979fd4c884 chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2 (#2186)
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.46 to 0.0.47.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.46...v0.0.47)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-20 14:59:42 +05:30
Mzack9999 93b4983b36 Merge pull request #2182 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.36
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.35 to 1.44.36 in /v2
2022-06-17 16:59:32 +02:00
Mzack9999 3362342127 Merge pull request #2179 from projectdiscovery/maint-goflags-refactor
Using library creategroup helper
2022-06-17 16:59:07 +02:00
dependabot[bot] bbb219cec4 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.35 to 1.44.36.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.35...v1.44.36)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-06-17 05:25:11 +00:00
Sajad 644c951449 use formedURL instead reqURL in http request dump message (#2174) 2022-06-16 17:24:21 +05:30
mzack c2f5b41ef3 Using library creategroup helper 2022-06-16 13:14:53 +02:00
dependabot[bot] cd16f8d225 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2175)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.34 to 1.44.35.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.34...v1.44.35)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-16 14:42:08 +05:30
Sajad b715a601e8 Adding nil operator check on clustering (#2173)
* add nil operator check

* move nil pointer check
2022-06-16 14:41:05 +05:30
Mzack9999 7559c487bb Merge pull request #2168 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.34
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.33 to 1.44.34 in /v2
2022-06-15 14:10:41 +02:00
dependabot[bot] 2bcdf28cca chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.33 to 1.44.34.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.33...v1.44.34)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-06-15 05:19:35 +00:00
Mzack9999 e72d5dd350 Merge pull request #2153 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/projectdiscovery/wappalyzergo-0.0.46
chore(deps): bump github.com/projectdiscovery/wappalyzergo from 0.0.45 to 0.0.46 in /v2
2022-06-14 10:50:46 +02:00
Mzack9999 fbbe9e652f Merge pull request #2159 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.33
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.32 to 1.44.33 in /v2
2022-06-14 10:50:36 +02:00
sulloandmzack a5fd6b79ab Skip dead sites in reference annotation (#2156)
* Typo

* * Add list of dead reference sites
* Skip dead sites when annotating references

* Tighten up site regexes

* Lint cleanup

* One last url regex cleanup

* small code optimization

* using raw strings for regexes

Co-authored-by: mzack <[email protected]>
2022-06-14 11:04:00 +05:30
dependabot[bot] 623f000339 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.32 to 1.44.33.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.32...v1.44.33)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-06-14 05:19:17 +00:00
Mzack9999 39e4a1fc9e Merge pull request #2152 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.32
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.31 to 1.44.32 in /v2
2022-06-13 13:49:45 +02:00
Mzack9999 a4cdba0691 Improving literals detection in expression engine (#2148)
* Improving literals detection in expression engine

* fixing lint errors

* re-add accidentally deleted test
2022-06-13 13:55:06 +05:30
dependabot[bot] 54c398449d chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.45 to 0.0.46.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.45...v0.0.46)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-06-13 05:28:08 +00:00
dependabot[bot] 8f0741e6a2 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.31 to 1.44.32.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.31...v1.44.32)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-06-13 05:28:00 +00:00
Sajadandsandeep e7591ec8b3 use request numbering as per template definition in req-condition (#2135)
* use original request number instead of current iteration in request-condition

* add previousEvent tracking back for request condition

Co-authored-by: sandeep <[email protected]>
2022-06-11 14:29:05 +05:30
tanimdiucse123andSandeep Singh e575f53be7 Empty string test can be improved (#2115)
It is not recommended to use len for empty string test.

A string can be tested for its emptiness either by treating it as a slice and calculating the length of the slice, or by treating it as a string and directly comparing the value. While both produce identical code when compiled, it makes more sense to treat a string as itself, than a slice, for the sake of comparison of values.

Examples

Bad practice

len(s) == 0

Recommended

s == ""

The recommended practice is considered more idiomatic in Go.

Co-authored-by: Sandeep Singh <[email protected]>
2022-06-11 14:11:43 +05:30
Samiandsandeep 01c0336872 truncated custom header workaround (#2133)
* truncated custom header workaround

* Revert "truncated custom header workaround"

This reverts commit e6abc4ee48.

* go mod update

Co-authored-by: sandeep <[email protected]>
2022-06-10 21:23:13 +05:30
Sandeep Singh e7f8166c3e Merge pull request #2145 from projectdiscovery/it_dsl_helper
DSL helper integration test cases
2022-06-10 20:55:02 +05:30
forgedhallpass cadba90a5a test: extended the DSL helper integration test cases 2022-06-10 15:58:54 +03:00
Sandeep Singh 5281d342c0 Merge pull request #2138 from mikerott/dev
protect against multiple unnecessary Init calls
2022-06-10 18:12:31 +05:30
Sandeep Singh 3a1d811441 Merge pull request #2139 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.31
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.27 to 1.44.31 in /v2
2022-06-10 16:19:54 +05:30
forgedhallpass 179cf908a8 Revert "test: extended the DSL helper integration test cases"
This reverts commit ea0b6eae64.
2022-06-10 13:48:34 +03:00
forgedhallpass ea0b6eae64 test: extended the DSL helper integration test cases 2022-06-10 13:33:16 +03:00
Sandeep Singh 48c95161e3 Merge pull request #2055 from projectdiscovery/new_dsl_functions
DSL function changes
2022-06-10 14:33:54 +05:30
dependabot[bot] c0fb2e876e chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.27 to 1.44.31.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.27...v1.44.31)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-06-10 05:20:23 +00:00
Mike Rheinheimer 22a8d72c65 protect against multiple unnecessary Init calls 2022-06-09 17:18:49 -05:00
Mzack9999 05ab327697 Improving fastdialer error message via version bump (#2137) 2022-06-09 20:25:00 +05:30
forgedhallpass 9fd9892f49 test: extra DSL function test cases 2022-06-08 20:58:46 +03:00
forgedhallpass 04e7e053de refactor: replace date, time, time_format, time_to_string DSL functions to date_time 2022-06-08 20:41:32 +03:00
forgedhallpass ef20e0711b refactor: replace date, time, time_format, time_to_string DSL functions to date_time 2022-06-08 20:33:55 +03:00
forgedhallpass a10d58c6d2 refactor: rename concat_ws DSL function to join 2022-06-08 16:31:33 +03:00
forgedhallpass 145bdaabe5 refactor: extract duplicated hashing logic 2022-06-08 16:11:15 +03:00
forgedhallpass 6d8908c352 refactor: replace hmac_sha1 and hmac_sha256 DSL functions with hmac 2022-06-08 16:00:14 +03:00
Sandeep Singh a18935e58c Merge pull request #2130 from projectdiscovery/dev
v2.7.2 Release
2022-06-08 01:04:50 +05:30
sandeep f0eed66478 help menu update 2022-06-07 22:30:20 +05:30
Ice3man 55aa62d0f2 Fixed non-working example due to loader interface change 2022-06-07 21:23:43 +05:30
James Turner 9d37bd6c0c Add two new DSL helper functions
hmac_sha1 and concat_ws (with seperator) this are helpful in
signing API requests.
2022-06-07 18:26:22 +03:00
forgedhallpass f3514e9b92 Merge branch 'dev' into new_dsl_functions 2022-06-07 17:26:10 +03:00
Sajad 7170cc2828 dsl matcher separate ignorable(No parameter) errors from others (#2127) 2022-06-07 18:23:07 +05:30
dependabot[bot] ba74441970 chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2 (#2113)
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.44 to 0.0.45.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.44...v0.0.45)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-06 17:13:33 +05:30
dependabot[bot] d6b265c920 chore(deps): bump golang from 1.18.2-alpine to 1.18.3-alpine (#2112)
Bumps golang from 1.18.2-alpine to 1.18.3-alpine.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-06 17:12:22 +05:30
dependabot[bot] 42520d13f5 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2104)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.26 to 1.44.27.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.26...v1.44.27)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-05 01:00:56 +05:30
Mzack9999 cc37382519 Adding Client TLS1.0 (#2091)
* Adding Client TLS1.0

* bumping fastdialer version
2022-06-04 17:45:16 +05:30
Sajad b79817e0a9 change dsl evaluate warning messages to error (#2096)
* change dsl evaluate warning messages to error

* add template-id to dsl match error logs
2022-06-03 13:41:36 +05:30
Sami fa369b728e ssl protocol with ms flag crash (#2101)
* crash with ssl protocol when used with ms flag fix

* added missing template info in case of failure
2022-06-03 13:32:45 +05:30
sandeep 900addc43f version update 2022-06-03 03:02:11 +05:30
dependabot[bot] 577b49e8df chore(deps): bump github.com/shirou/gopsutil/v3 in /v2 (#2098)
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.22.4 to 3.22.5.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.22.4...v3.22.5)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-03 02:52:00 +05:30
M4rtin HsuandSandeep Singh aebd32b198 Add decimal to hexadecimal helper function (#2076)
* Add decimal to hexadecimal auxiliary functions

* Fixed unit test

* Modify the helper function name and check the unit test.

* dsl function update

Co-authored-by: Sandeep Singh <[email protected]>
2022-06-03 02:17:35 +05:30
dependabot[bot] 841f2e8977 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2103)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.24 to 1.44.26.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.24...v1.44.26)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-02 21:06:15 +05:30
dependabot[bot] 335c03cb3f chore(deps): bump github.com/itchyny/gojq from 0.12.7 to 0.12.8 in /v2 (#2102)
Bumps [github.com/itchyny/gojq](https://github.com/itchyny/gojq) from 0.12.7 to 0.12.8.
- [Release notes](https://github.com/itchyny/gojq/releases)
- [Changelog](https://github.com/itchyny/gojq/blob/main/CHANGELOG.md)
- [Commits](https://github.com/itchyny/gojq/compare/v0.12.7...v0.12.8)

---
updated-dependencies:
- dependency-name: github.com/itchyny/gojq
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-02 21:05:23 +05:30
2b631e8e95 Add optional line number for file templates by default (#1966)
* Add optional line number for file templates by default

* updating docs

* misc flag update

Co-authored-by: mzack <[email protected]>
Co-authored-by: sandeep <[email protected]>
2022-06-02 17:06:50 +05:30
Mzack9999 4bcb94e4df Increasing timeout and fixed error msg (#2092)
* Increasing timeout and fixed error msg

* increasing timeout
2022-06-02 00:00:18 +05:30
Sajad 9f600d2829 keep the original extactor var for multiple results while preparing data for matchers (#1948) 2022-05-31 02:46:51 +05:30
Ice3man be5f1a7623 Added redirected matched URL + stop-at-first-match for redirect chains (#2050)
* Added redirected matched URL + stop-at-first-match for redirect chains

* Pleasing go-linter
2022-05-30 15:19:09 +05:30
Ice3man 8723a1fd70 Added header as DSL part value (#2052)
* Added header as DSL part value

* Fixed failing DSL part test cases
2022-05-30 15:16:27 +05:30
dependabot[bot] c76ff5fde1 chore(deps): bump alpine from 3.15.4 to 3.16.0 (#2087)
Bumps alpine from 3.15.4 to 3.16.0.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-30 15:00:34 +05:30
dependabot[bot] b753f02580 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2088)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.23 to 1.44.24.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.23...v1.44.24)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-30 14:59:11 +05:30
dependabot[bot] 1ca6ed792d chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2 (#2089)
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.43 to 0.0.44.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.43...v0.0.44)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-30 14:58:59 +05:30
Ice3manandsandeep 34ed4e531a Added hang monitor for goroutine dumping (#1949)
* Added hang monitor for goroutine dumping

* misc

* Made hang monitor optional with flag

* Added stack comparison for monitoring + misc

* Removed debug statements

* misc update

Co-authored-by: sandeep <[email protected]>
2022-05-30 14:41:24 +05:30
Mzack9999 dd3b0a3cfc Increasing buffer size on AND condition (#2030)
* Increasing buffer size on AND condition

* adding integration tests

* fixing tests data path
2022-05-30 13:45:28 +05:30
dependabot[bot] c650813fb1 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2079)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.21 to 1.44.23.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.21...v1.44.23)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-27 22:40:21 +05:30
Ice3man f53f360c74 Fixed websocket status-101 response reading for http (#2081) 2022-05-27 22:36:42 +05:30
Mzack9999 16a05d0aa2 Adding CLI SNI support to unsafe http (#2077)
* Adding CLI SNI support to unsafe http

* adding http unsafe sni test
2022-05-27 21:53:07 +05:30
dependabot[bot] 947acae857 chore(deps): bump github.com/antchfx/htmlquery in /v2 (#2073)
Bumps [github.com/antchfx/htmlquery](https://github.com/antchfx/htmlquery) from 1.2.4 to 1.2.5.
- [Release notes](https://github.com/antchfx/htmlquery/releases)
- [Commits](https://github.com/antchfx/htmlquery/compare/v1.2.4...v1.2.5)

---
updated-dependencies:
- dependency-name: github.com/antchfx/htmlquery
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-27 21:43:00 +05:30
Mzack9999 02eaf91e6a Adding variables support for headless templates (#2064) 2022-05-27 21:31:56 +05:30
Mzack9999 05fdff8170 Merge pull request #2028 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/go-rod/rod-0.106.8
chore(deps): bump github.com/go-rod/rod from 0.106.6 to 0.106.8 in /v2
2022-05-26 07:00:44 +02:00
dependabot[bot] 0ce7f361ce chore(deps): bump goreleaser/goreleaser-action from 2 to 3 (#2033)
Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 2 to 3.
- [Release notes](https://github.com/goreleaser/goreleaser-action/releases)
- [Commits](https://github.com/goreleaser/goreleaser-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: goreleaser/goreleaser-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-25 11:27:30 +05:30
dependabot[bot] f8bd7ad101 chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2 (#2036)
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.42 to 0.0.43.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.42...v0.0.43)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-25 11:27:16 +05:30
dependabot[bot] 07ab9817fb chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2058)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.20 to 1.44.21.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.20...v1.44.21)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-25 11:27:02 +05:30
dependabot[bot] a3c5bad5a6 chore(deps): bump github.com/xanzy/go-gitlab in /v2 (#2059)
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.65.0 to 0.68.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.65.0...v0.68.0)

---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-25 11:26:49 +05:30
Ice3man 3648c47e35 Fixed template validation edge cases (#2051) 2022-05-25 11:26:05 +05:30
Mzack9999 77caa39161 Merge pull request #2054 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.20
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.17 to 1.44.20 in /v2
2022-05-24 18:22:40 +02:00
forgedhallpass 096f34e4e3 refactor: DSL date/time functions 2022-05-24 13:38:26 +03:00
forgedhallpass 346db4cf15 refactor: timetostring DSL to time_to_string 2022-05-24 13:11:55 +03:00
forgedhallpass 45c27bc5f0 test: DSL test fixes (hmac_sha256, time_format) 2022-05-24 13:11:03 +03:00
Rahmat feae805834 Add hmac_sha256 dslExpression 2022-05-24 12:59:09 +03:00
Rahmat f2ca75c536 Add time_format dslExpression 2022-05-24 12:47:56 +03:00
dependabot[bot] f12b651b16 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.17 to 1.44.20.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.17...v1.44.20)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-05-24 05:43:17 +00:00
Ice3man 80f3cec293 Disable printing variables in http protocol output (#2037) 2022-05-23 20:50:51 +05:30
Sajadandsandeep 4f834f1f33 store vars in values instead of payloads to fix #1882 for self contained http templates (#1924)
Co-authored-by: sandeep <[email protected]>
2022-05-23 15:12:58 +05:30
dependabot[bot] b3e7fa71e5 chore(deps): bump github.com/go-rod/rod from 0.106.6 to 0.106.8 in /v2
Bumps [github.com/go-rod/rod](https://github.com/go-rod/rod) from 0.106.6 to 0.106.8.
- [Release notes](https://github.com/go-rod/rod/releases)
- [Commits](https://github.com/go-rod/rod/compare/v0.106.6...v0.106.8)

---
updated-dependencies:
- dependency-name: github.com/go-rod/rod
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-05-19 16:00:34 +00:00
Mzack9999 5ff5c2e105 Merge pull request #2019 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/corpix/uarand-0.2.0
chore(deps): bump github.com/corpix/uarand from 0.1.1 to 0.2.0 in /v2
2022-05-19 17:59:36 +02:00
Mzack9999 721118aacc Merge pull request #2027 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/hashicorp/go-version-1.5.0
chore(deps): bump github.com/hashicorp/go-version from 1.4.0 to 1.5.0 in /v2
2022-05-19 17:58:49 +02:00
Mzack9999 94f1d0f1ab Merge pull request #2026 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.17
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.15 to 1.44.17 in /v2
2022-05-19 17:57:59 +02:00
dependabot[bot] bbf7adc84a chore(deps): bump github.com/hashicorp/go-version in /v2
Bumps [github.com/hashicorp/go-version](https://github.com/hashicorp/go-version) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/hashicorp/go-version/releases)
- [Changelog](https://github.com/hashicorp/go-version/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/go-version/compare/v1.4.0...v1.5.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-version
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-05-19 05:19:44 +00:00
dependabot[bot] 0c77ffdcc1 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.15 to 1.44.17.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.15...v1.44.17)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-05-19 05:19:36 +00:00
dependabot[bot] 1de472efb7 chore(deps): bump github.com/corpix/uarand from 0.1.1 to 0.2.0 in /v2
Bumps [github.com/corpix/uarand](https://github.com/corpix/uarand) from 0.1.1 to 0.2.0.
- [Release notes](https://github.com/corpix/uarand/releases)
- [Commits](https://github.com/corpix/uarand/compare/v0.1.1...v0.2.0)

---
updated-dependencies:
- dependency-name: github.com/corpix/uarand
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-05-18 05:23:13 +00:00
Sandeep Singh a31bca524d Merge pull request #2006 from projectdiscovery/dev
v2.7.1 Release
2022-05-17 16:56:07 +05:30
sandeep 91c35df911 version + readme update 2022-05-17 16:36:33 +05:30
Mzack9999 d5e4516829 Iterating payloads over HTTP path/raw sequence (#1981)
* Iterating payloads over path/raw sequence

* fixing logic check
2022-05-17 15:22:00 +05:30
Mzack9999 184f3fdc30 Fixing concurrent read/write map (#1989) 2022-05-17 14:38:48 +05:30
dependabot[bot] aef57175b2 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2003)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.14 to 1.44.15.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.14...v1.44.15)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-17 14:34:01 +05:30
Ice3man 062fe6d01e Added urldns gadget from ysoserial (#1985) 2022-05-17 14:33:17 +05:30
dependabot[bot] 27bdd8c642 chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#2001)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.12 to 1.44.14.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.12...v1.44.14)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-16 12:36:02 +05:30
dependabot[bot] d67e75d3cd chore(deps): bump golangci/golangci-lint-action from 3.1.0 to 3.2.0 (#2000)
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v3.1.0...v3.2.0)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-16 12:35:49 +05:30
dependabot[bot] 564b810af5 chore(deps): bump golang from 1.18.1-alpine to 1.18.2-alpine (#1999)
Bumps golang from 1.18.1-alpine to 1.18.2-alpine.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-16 12:35:38 +05:30
dependabot[bot] e58ec77753 chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2 (#2002)
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.41 to 0.0.42.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.41...v0.0.42)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-16 12:30:12 +05:30
3d03be8183 Appending new references to existing ones (#1881)
* Adding support to append new references

* go modules

* improving reference detection

* replacing raw string manipulation with yaml lib

* standardizing description appearance

* omitting empty fields

* adding missing remediation and metadata

* misc update

* Limit max references to 5 + fixed variables section in templates

Co-authored-by: sandeep <[email protected]>
Co-authored-by: Ice3man <[email protected]>
2022-05-14 17:36:48 +05:30
Owen Rumneyandmzack 4a5039cc75 chore(deps): Bump sarif to v2 (#1930)
Signed-off-by: Owen Rumney <[email protected]>

Co-authored-by: mzack <[email protected]>
2022-05-13 03:48:14 +05:30
Mzack9999 39c7317ec3 Adding SNI override via request annotations (#1970)
* Adding SNI override via request annotations

* adding cli flag priority
2022-05-12 16:43:56 +05:30
Sami 6ca4374f91 sonar category: String literals should not be duplicated (#1944)
* sonar category: String literals should not be duplicated

* lint error fix

* better naming conventions for constants

* improved naming conventions and methods
2022-05-12 15:40:14 +05:30
Mzack9999 ae5a5b296f Merge pull request #1987 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/spf13/cast-1.5.0
chore(deps): bump github.com/spf13/cast from 1.4.1 to 1.5.0 in /v2
2022-05-12 11:09:57 +02:00
Mzack9999 06221a4b03 Merge pull request #1986 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.12
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.11 to 1.44.12 in /v2
2022-05-12 11:09:45 +02:00
dependabot[bot] e67b306c2a chore(deps): bump github.com/spf13/cast from 1.4.1 to 1.5.0 in /v2
Bumps [github.com/spf13/cast](https://github.com/spf13/cast) from 1.4.1 to 1.5.0.
- [Release notes](https://github.com/spf13/cast/releases)
- [Commits](https://github.com/spf13/cast/compare/v1.4.1...v1.5.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/cast
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-05-12 05:18:24 +00:00
dependabot[bot] 0e9292d9fb chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.11 to 1.44.12.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.11...v1.44.12)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-05-12 05:18:18 +00:00
Mzack9999 a80d73500a Merge pull request #1973 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/go-rod/rod-0.106.6
chore(deps): bump github.com/go-rod/rod from 0.106.5 to 0.106.6 in /v2
2022-05-11 20:17:11 +02:00
Mzack9999 e7c62edffc Merge pull request #1980 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.11
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.9 to 1.44.11 in /v2
2022-05-11 20:16:30 +02:00
mzack 971c97e6cc Merge branch 'dev' into dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.11 2022-05-11 19:50:28 +02:00
Mzack9999 2f1330345f Adding global SNI support for HTTP protocol via CLI (#1964)
* Adding global SNI support via CLI

* adding integration test

* adding cli option to docs

* reverting deleted test
2022-05-11 16:00:39 +05:30
dependabot[bot] c9723a5a3f chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.9 to 1.44.11.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.9...v1.44.11)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-05-11 08:58:57 +00:00
Mzack9999 7e2489e9d2 Merge pull request #1963 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.9
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.8 to 1.44.9 in /v2
2022-05-11 10:58:14 +02:00
Mzack9999 b0d69d8c9a Merge pull request #1978 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/xanzy/go-gitlab-0.65.0
chore(deps): bump github.com/xanzy/go-gitlab from 0.64.0 to 0.65.0 in /v2
2022-05-11 08:40:06 +02:00
Mzack9999 9b7cbf4914 Merge pull request #1977 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/miekg/dns-1.1.49
chore(deps): bump github.com/miekg/dns from 1.1.48 to 1.1.49 in /v2
2022-05-11 08:27:45 +02:00
dependabot[bot] 0fea763dc8 chore(deps): bump github.com/xanzy/go-gitlab in /v2
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.64.0 to 0.65.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.64.0...v0.65.0)

---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-05-11 05:23:12 +00:00
dependabot[bot] 4c79a53c3b chore(deps): bump github.com/miekg/dns from 1.1.48 to 1.1.49 in /v2
Bumps [github.com/miekg/dns](https://github.com/miekg/dns) from 1.1.48 to 1.1.49.
- [Release notes](https://github.com/miekg/dns/releases)
- [Changelog](https://github.com/miekg/dns/blob/master/Makefile.release)
- [Commits](https://github.com/miekg/dns/compare/v1.1.48...v1.1.49)

---
updated-dependencies:
- dependency-name: github.com/miekg/dns
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-05-11 05:23:07 +00:00
Ice3man a2947192e2 Added mutex to output writing (#1969) 2022-05-10 18:47:22 +05:30
dependabot[bot]andmzack 2eb845262b chore(deps): bump docker/setup-qemu-action from 1 to 2 (#1961)
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 1 to 2.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mzack <[email protected]>
2022-05-10 17:49:26 +05:30
dependabot[bot]andmzack 1683851b46 chore(deps): bump docker/build-push-action from 2 to 3 (#1959)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 2 to 3.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mzack <[email protected]>
2022-05-10 17:49:08 +05:30
dependabot[bot]andmzack 59fc6963e0 chore(deps): bump docker/setup-buildx-action from 1 to 2 (#1960)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 1 to 2.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mzack <[email protected]>
2022-05-10 17:48:44 +05:30
Ice3man d5578200f0 Fixed query parameter addition to http raw requests (#1975) 2022-05-10 17:33:27 +05:30
Ice3man 25d6cbd95b Use nuclei-templates instead of custom autoscan directory list (#1968)
* Use nuclei-templates instead of custom autoscan directory list

* Use templates directory from config file
2022-05-10 17:26:46 +05:30
dependabot[bot] 27673746d1 chore(deps): bump github.com/go-rod/rod from 0.106.5 to 0.106.6 in /v2
Bumps [github.com/go-rod/rod](https://github.com/go-rod/rod) from 0.106.5 to 0.106.6.
- [Release notes](https://github.com/go-rod/rod/releases)
- [Commits](https://github.com/go-rod/rod/compare/v0.106.5...v0.106.6)

---
updated-dependencies:
- dependency-name: github.com/go-rod/rod
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-05-10 05:23:54 +00:00
Mzack9999 d6b061697d Merge pull request #1962 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/projectdiscovery/wappalyzergo-0.0.41
chore(deps): bump github.com/projectdiscovery/wappalyzergo from 0.0.40 to 0.0.41 in /v2
2022-05-09 09:45:56 +02:00
Mzack9999 3e703b1b9b Merge pull request #1958 from projectdiscovery/dependabot/github_actions/dev/docker/login-action-2
chore(deps): bump docker/login-action from 1 to 2
2022-05-09 09:45:37 +02:00
mzack d7ba918b4f Merge branch 'dev' into dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.9 2022-05-09 09:37:43 +02:00
dependabot[bot] 61fc65b621 chore(deps): bump github.com/aws/aws-sdk-go from 1.44.8 to 1.44.9 in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.8 to 1.44.9.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.8...v1.44.9)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-05-09 05:47:38 +00:00
Mzack9999 11bcd717d5 Merge pull request #1947 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.8
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.7 to 1.44.8 in /v2
2022-05-09 07:46:55 +02:00
Ice3man d7d80e3447 Added normalized wappalyzer versioned appName 2022-05-09 11:02:21 +05:30
dependabot[bot] f9269bcaf5 chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.40 to 0.0.41.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.40...v0.0.41)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-05-09 05:30:08 +00:00
dependabot[bot] f8e462e3ab chore(deps): bump docker/login-action from 1 to 2
Bumps [docker/login-action](https://github.com/docker/login-action) from 1 to 2.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-05-09 05:05:50 +00:00
Mzack9999 7e11232952 Merge pull request #1931 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/projectdiscovery/wappalyzergo-0.0.40
chore(deps): bump github.com/projectdiscovery/wappalyzergo from 0.0.38 to 0.0.40 in /v2
2022-05-09 07:02:14 +02:00
mzack e6e8c1c099 Merge branch 'dev' into dependabot/go_modules/v2/dev/github.com/projectdiscovery/wappalyzergo-0.0.40 2022-05-09 06:48:54 +02:00
mzack 7cd09ea2ee Merge branch 'dev' into dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.8 2022-05-09 06:47:14 +02:00
Sandeep Singh e13939cdfe Merge pull request #1953 from projectdiscovery/dev
v2.7.0 Bugfix release
2022-05-08 15:44:43 +05:30
sandeep 474d66c09d go mod + version update 2022-05-08 15:29:33 +05:30
Mzack9999 a534b9f06c Fixing directory walk error check on windows (#1951)
* Fixing directory walk error check on windows

* moving check to helper package

* replacing godirwalk with standard library
2022-05-08 12:22:21 +05:30
dependabot[bot] ede9e46ae3 chore(deps): bump github.com/aws/aws-sdk-go from 1.44.7 to 1.44.8 in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.7 to 1.44.8.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.7...v1.44.8)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-05-06 11:59:59 +00:00
Sandeep Singh 85215b5a67 Merge pull request #1886 from projectdiscovery/issue-1849-iserver-registration
alternative server if a server failed
2022-05-06 17:29:04 +05:30
mzack 3c5aea85e7 Merge branch 'dev' into issue-1849-iserver-registration 2022-05-06 13:13:50 +02:00
mzack 95115993b1 bumping interactsh version 2022-05-06 13:10:37 +02:00
mzack 6a52f4f709 updating go mods + logic 2022-05-06 12:59:16 +02:00
Sandeep Singh 2e8a5fa0c7 Merge pull request #1934 from projectdiscovery/pipeline-fix
replace rawhttp dev with fix branch, don't drain resp body if pipeline is on
2022-05-05 18:14:51 +05:30
Sandeep Singh d827465f97 Merge pull request #1936 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.7
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.5 to 1.44.7 in /v2
2022-05-05 18:07:20 +05:30
Sandeep Singh f7cbd8c5d6 Merge pull request #1932 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/karrick/godirwalk-1.17.0
chore(deps): bump github.com/karrick/godirwalk from 1.16.1 to 1.17.0 in /v2
2022-05-05 18:06:35 +05:30
Sandeep Singh 0d764cdd9c Merge pull request #1938 from projectdiscovery/fix-#1929
Fix for post body with debug flag #1929
2022-05-05 15:54:48 +05:30
dependabot[bot] 9fda8a6821 chore(deps): bump github.com/aws/aws-sdk-go from 1.44.5 to 1.44.7 in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.5 to 1.44.7.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.5...v1.44.7)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-05-05 05:20:25 +00:00
Sajad Parra df6c4eea34 fix #1929 2022-05-04 22:09:47 +05:30
Sajad Parra 14f11d24c2 replace rawhttp dev with fix branch, don't drain resp body if pipeline is on 2022-05-04 19:52:35 +05:30
dependabot[bot] 428d8fcd56 chore(deps): bump github.com/karrick/godirwalk in /v2
Bumps [github.com/karrick/godirwalk](https://github.com/karrick/godirwalk) from 1.16.1 to 1.17.0.
- [Release notes](https://github.com/karrick/godirwalk/releases)
- [Changelog](https://github.com/karrick/godirwalk/blob/master/debug_release.go)
- [Commits](https://github.com/karrick/godirwalk/compare/v1.16.1...v1.17.0)

---
updated-dependencies:
- dependency-name: github.com/karrick/godirwalk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-05-04 05:29:21 +00:00
dependabot[bot] 067b091d87 chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.38 to 0.0.40.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.38...v0.0.40)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-05-04 05:29:18 +00:00
Sandeep Singh 15d547735a Merge pull request #1928 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/go-rod/rod-0.106.5
chore(deps): bump github.com/go-rod/rod from 0.106.2 to 0.106.5 in /v2
2022-05-03 17:28:45 +05:30
Sandeep Singh f161099895 Merge pull request #1926 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.5
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.2 to 1.44.5 in /v2
2022-05-03 17:27:31 +05:30
Sandeep Singh 63b13f9a8e Merge pull request #1923 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/shirou/gopsutil/v3-3.22.4
chore(deps): bump github.com/shirou/gopsutil/v3 from 3.22.3 to 3.22.4 in /v2
2022-05-03 17:26:47 +05:30
dependabot[bot] d7b7d680a0 chore(deps): bump github.com/go-rod/rod from 0.106.2 to 0.106.5 in /v2
Bumps [github.com/go-rod/rod](https://github.com/go-rod/rod) from 0.106.2 to 0.106.5.
- [Release notes](https://github.com/go-rod/rod/releases)
- [Commits](https://github.com/go-rod/rod/compare/v0.106.2...v0.106.5)

---
updated-dependencies:
- dependency-name: github.com/go-rod/rod
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-05-03 11:56:42 +00:00
Sandeep Singh c1de64e258 Merge pull request #1919 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/go-playground/validator/v10-10.11.0
chore(deps): bump github.com/go-playground/validator/v10 from 10.10.1 to 10.11.0 in /v2
2022-05-03 17:25:56 +05:30
Sandeep Singh d69ceb83d6 Merge pull request #1918 from projectdiscovery/dependabot/github_actions/dev/github/codeql-action-2
chore(deps): bump github/codeql-action from 1 to 2
2022-05-03 17:25:38 +05:30
dependabot[bot] bac8144aeb chore(deps): bump github.com/aws/aws-sdk-go from 1.44.2 to 1.44.5 in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.2 to 1.44.5.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.2...v1.44.5)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-05-03 05:21:29 +00:00
dependabot[bot] d051ec02cf chore(deps): bump github.com/shirou/gopsutil/v3 in /v2
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.22.3 to 3.22.4.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.22.3...v3.22.4)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-05-02 05:32:03 +00:00
dependabot[bot] d24b2da430 chore(deps): bump github.com/go-playground/validator/v10 in /v2
Bumps [github.com/go-playground/validator/v10](https://github.com/go-playground/validator) from 10.10.1 to 10.11.0.
- [Release notes](https://github.com/go-playground/validator/releases)
- [Commits](https://github.com/go-playground/validator/compare/v10.10.1...v10.11.0)

---
updated-dependencies:
- dependency-name: github.com/go-playground/validator/v10
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-05-02 05:31:42 +00:00
dependabot[bot] 10a4bdb5eb chore(deps): bump github/codeql-action from 1 to 2
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1 to 2.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-05-02 05:05:59 +00:00
Sandeep Singh b4c6efd083 Merge pull request #1903 from projectdiscovery/issue-1834-alpine
Automatic fallback to system chrome on alpine via musl detection
2022-04-29 23:34:16 +05:30
Sandeep Singh 3bb9fdfc75 Merge pull request #1908 from projectdiscovery/maint-makefile
Disable static compilation for osx
2022-04-29 23:12:17 +05:30
mzack 29a53353bb Disable static compilation for osx + minor optimizations 2022-04-28 14:46:20 +02:00
Sandeep Singh 8b7e5535f8 Merge pull request #1902 from projectdiscovery/go-example-tests
Fixed nuclei go example + added relevant integration test
2022-04-28 18:09:11 +05:30
Sandeep Singh bd4d5931e3 Merge pull request #1906 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/go-rod/rod-0.106.2
chore(deps): bump github.com/go-rod/rod from 0.106.1 to 0.106.2 in /v2
2022-04-28 12:20:59 +05:30
Sandeep Singh 51c1cfd2bb Merge pull request #1905 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.2
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.1 to 1.44.2 in /v2
2022-04-28 12:20:49 +05:30
Sandeep Singh 663d3ee22c Merge pull request #1901 from projectdiscovery/disable-redirects
Disable redirects
2022-04-28 12:15:08 +05:30
sandeep 99c896029e readme update 2022-04-28 12:10:23 +05:30
dependabot[bot] 370d7bd1a9 chore(deps): bump github.com/go-rod/rod from 0.106.1 to 0.106.2 in /v2
Bumps [github.com/go-rod/rod](https://github.com/go-rod/rod) from 0.106.1 to 0.106.2.
- [Release notes](https://github.com/go-rod/rod/releases)
- [Commits](https://github.com/go-rod/rod/compare/v0.106.1...v0.106.2)

---
updated-dependencies:
- dependency-name: github.com/go-rod/rod
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-04-28 05:17:36 +00:00
dependabot[bot] b516446e0a chore(deps): bump github.com/aws/aws-sdk-go from 1.44.1 to 1.44.2 in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.1 to 1.44.2.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.1...v1.44.2)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-04-28 05:17:26 +00:00
mzack d197b8df7b adding musl detection 2022-04-28 01:50:22 +02:00
Ice3man 8a79837e1c Fixed broken lint error 2022-04-28 01:05:08 +05:30
Ice3man 8bb04d9a70 Added test file 2022-04-28 01:03:01 +05:30
Ice3man a031ef32b4 Fixed nuclei go example + added relevant integration test 2022-04-28 01:02:06 +05:30
Sandeep Singh 55c21a21a1 Merge pull request #1888 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/xanzy/go-gitlab-0.64.0
chore(deps): bump github.com/xanzy/go-gitlab from 0.63.0 to 0.64.0 in /v2
2022-04-27 23:46:51 +05:30
Sandeep Singh 6bd0e230fc Merge pull request #1889 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/projectdiscovery/wappalyzergo-0.0.38
chore(deps): bump github.com/projectdiscovery/wappalyzergo from 0.0.37 to 0.0.38 in /v2
2022-04-27 23:46:29 +05:30
Sandeep Singh f0aa0715de Merge pull request #1896 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.1
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.44 to 1.44.1 in /v2
2022-04-27 23:46:10 +05:30
LuitelSamikshya 96b6b7c8e1 format correction 2022-04-27 12:52:07 -05:00
LuitelSamikshya 1a3d0c90a7 removed a flag from test case 2022-04-27 11:21:58 -05:00
LuitelSamikshya 3ccbfe4626 disable redirects flag 2022-04-27 11:19:44 -05:00
dependabot[bot] bf81ac3171 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.44 to 1.44.1.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.44...v1.44.1)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-04-27 05:26:29 +00:00
Sandeep Singh 9738ad2ad4 Merge pull request #1885 from projectdiscovery/dev
v2.6.9
2022-04-25 14:26:42 +05:30
GitHub Action 737132bc88 Auto Generate Syntax Docs + JSONSchema [Mon Apr 25 08:40:12 UTC 2022] 🤖 2022-04-25 08:40:12 +00:00
Ice3man 51d8f80713 Fixed bug with docgen 2022-04-25 14:08:23 +05:30
dependabot[bot] e607ac5487 chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.37 to 0.0.38.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.37...v0.0.38)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-04-25 05:29:37 +00:00
dependabot[bot] 7cb705e603 chore(deps): bump github.com/xanzy/go-gitlab in /v2
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.63.0 to 0.64.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.63.0...v0.64.0)

---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-04-25 05:29:31 +00:00
LuitelSamikshya b0508ab194 alternative server if a server failed 2022-04-22 16:31:42 -05:00
Sandeep Singh a82c62cedd Merge pull request #1884 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.44
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.43 to 1.43.44 in /v2
2022-04-23 01:15:23 +05:30
sandeep 82c0cd0e52 version update 2022-04-23 01:12:07 +05:30
dependabot[bot] 402a1dca04 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.43 to 1.43.44.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.43...v1.43.44)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-04-22 05:18:22 +00:00
Sandeep Singh d3b4a86d2a Merge pull request #1785 from projectdiscovery/variables-introduction
Added variables for nuclei + refactor variable handling
2022-04-21 17:59:01 +05:30
GitHub Action a734b9d6c1 Auto Generate Syntax Docs + JSONSchema [Thu Apr 21 11:19:39 UTC 2022] 🤖 2022-04-21 11:19:39 +00:00
Sandeep Singh 4573c4e1a4 Merge pull request #1873 from projectdiscovery/issue-1565-dsl-extractors
adding support for dsl extractors
2022-04-21 16:47:58 +05:30
Sandeep Singh 294dcc7c71 Merge pull request #1877 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.43
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.42 to 1.43.43 in /v2
2022-04-21 16:11:46 +05:30
dependabot[bot] 7930889058 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.42 to 1.43.43.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.42...v1.43.43)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-04-21 05:18:38 +00:00
Sandeep Singh 2df8c23c20 Merge pull request #1870 from projectdiscovery/issue-1791-automatic-scan-with-custom-templates
automatic-scan with custom dir
2022-04-21 01:56:12 +05:30
Sandeep Singh be53225da5 Merge pull request #1864 from projectdiscovery/1863-nil-pointer
nil value check
2022-04-21 00:27:33 +05:30
Sandeep Singh f300de8348 Merge pull request #1875 from projectdiscovery/issue-1844-unsafe-oob
Fixing internal bug for OOB testing with unsafe HTTP
2022-04-20 22:59:26 +05:30
Mzack9999 777b75d305 fixing internal bug for unsafe oob 2022-04-20 17:11:14 +02:00
Sandeep Singh bb1a0cb9cb Merge pull request #1874 from projectdiscovery/rdap-add-verbose
Add verbose to rdap for debugging purposes
2022-04-20 20:10:16 +05:30
Mzack9999 ffea8657d5 Merge pull request #1872 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.42
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.41 to 1.43.42 in /v2
2022-04-20 13:29:18 +02:00
Mzack9999 8a0ba6ec91 Merge pull request #1871 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/go-rod/rod-0.106.1
chore(deps): bump github.com/go-rod/rod from 0.106.0 to 0.106.1 in /v2
2022-04-20 13:08:11 +02:00
Mzack9999 aafa7806d8 adding missing space 2022-04-20 12:59:25 +02:00
Ice3man 7338752cbd Merge branch 'variables-introduction' of https://github.com/projectdiscovery/nuclei into variables-introduction 2022-04-20 15:41:21 +05:30
Ice3man b91bad813b Misc changes to PR 2022-04-20 15:36:02 +05:30
Mzack9999 72c5c399ec adding support for dsl extractors 2022-04-20 11:32:13 +02:00
dependabot[bot] 39b13bf4ea chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.41 to 1.43.42.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.41...v1.43.42)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-04-20 05:22:59 +00:00
dependabot[bot] e82a5df06b chore(deps): bump github.com/go-rod/rod from 0.106.0 to 0.106.1 in /v2
Bumps [github.com/go-rod/rod](https://github.com/go-rod/rod) from 0.106.0 to 0.106.1.
- [Release notes](https://github.com/go-rod/rod/releases)
- [Commits](https://github.com/go-rod/rod/compare/v0.106.0...v0.106.1)

---
updated-dependencies:
- dependency-name: github.com/go-rod/rod
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-04-20 05:22:51 +00:00
LuitelSamikshya efefd06f60 automatic-scan with custom dir 2022-04-19 17:45:35 -05:00
Sandeep Singh 3bbce299ae Merge pull request #1857 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.41
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.40 to 1.43.41 in /v2
2022-04-19 22:38:27 +05:30
Sandeep Singh 9bf0669afe Merge pull request #1856 from projectdiscovery/dependabot/docker/dev/golang-1.18.1-alpine
chore(deps): bump golang from 1.18.0-alpine to 1.18.1-alpine
2022-04-19 22:38:13 +05:30
Sandeep Singh 31ff9fb533 Merge pull request #1858 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/projectdiscovery/wappalyzergo-0.0.37
chore(deps): bump github.com/projectdiscovery/wappalyzergo from 0.0.36 to 0.0.37 in /v2
2022-04-19 22:37:59 +05:30
sandeep 1b953655d1 misc updates 2022-04-19 16:14:49 +05:30
Sandeep Singh 733e5bb5f9 Merge pull request #1861 from projectdiscovery/go_version
Go version update to 1.18 in GitHub actions
2022-04-19 15:32:15 +05:30
LuitelSamikshya 5eae7159c7 nil value check 2022-04-18 17:21:33 -05:00
forgedhallpass c6eaff10f9 chore: updated the GitHub actions to use go 1.18 2022-04-18 15:43:37 +03:00
dependabot[bot] 806e335987 chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.36 to 0.0.37.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.36...v0.0.37)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-04-18 05:23:09 +00:00
dependabot[bot] 257acf24eb chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.40 to 1.43.41.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.40...v1.43.41)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-04-18 05:23:00 +00:00
dependabot[bot] b5e7c83781 chore(deps): bump golang from 1.18.0-alpine to 1.18.1-alpine
Bumps golang from 1.18.0-alpine to 1.18.1-alpine.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-04-18 05:03:53 +00:00
Sandeep Singh b26ebcfa60 Merge pull request #1805 from projectdiscovery/issue-1289-multiple-host
HTTP Requests Annotation Prototype
2022-04-16 17:23:31 +05:30
Sandeep Singh 58461a64b1 Merge pull request #1854 from projectdiscovery/dev
Crash bugfix
2022-04-15 23:39:29 +05:30
sandeep cfbe7f6d27 version update 2022-04-15 23:33:47 +05:30
Sandeep Singh 4cbf7eadc4 Merge pull request #1853 from projectdiscovery/issue-1852-nil-crash
Fixing nil crash on json stats print
2022-04-15 23:31:41 +05:30
Sandeep Singh 1d266ae4e7 Merge pull request #1837 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/xanzy/go-gitlab-0.63.0
chore(deps): bump github.com/xanzy/go-gitlab from 0.62.0 to 0.63.0 in /v2
2022-04-15 22:29:17 +05:30
Sandeep Singh c06b6e3038 Merge pull request #1851 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/go-rod/rod-0.106.0
chore(deps): bump github.com/go-rod/rod from 0.105.1 to 0.106.0 in /v2
2022-04-15 22:28:41 +05:30
Sandeep Singh 086958d04a Merge pull request #1850 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.40
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.36 to 1.43.40 in /v2
2022-04-15 22:28:18 +05:30
mzack b79ebb2597 Fixing nil crash on json stats print 2022-04-15 18:40:51 +02:00
GitHub Action ef18886d39 Auto Generate Syntax Docs + JSONSchema [Fri Apr 15 13:31:14 UTC 2022] 🤖 2022-04-15 13:31:14 +00:00
Sandeep Singh 5b9f7cdaa4 Merge pull request #1811 from projectdiscovery/issue-847-digest-auth
adding support for digest authentication
2022-04-15 18:59:15 +05:30
dependabot[bot] 2fd0f90766 chore(deps): bump github.com/go-rod/rod from 0.105.1 to 0.106.0 in /v2
Bumps [github.com/go-rod/rod](https://github.com/go-rod/rod) from 0.105.1 to 0.106.0.
- [Release notes](https://github.com/go-rod/rod/releases)
- [Commits](https://github.com/go-rod/rod/compare/v0.105.1...v0.106.0)

---
updated-dependencies:
- dependency-name: github.com/go-rod/rod
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-04-15 05:25:13 +00:00
dependabot[bot] 4eabbcb883 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.36 to 1.43.40.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.36...v1.43.40)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-04-15 05:25:05 +00:00
Mzack9999 55fa28cc14 fixing digest user agent 2022-04-14 16:33:54 +02:00
Sandeep Singh 837b1a9c6e Merge pull request #1821 from projectdiscovery/issue-1797-cleanup-resume-files
clean up old resume files
2022-04-14 17:23:59 +05:30
mzack 2104df63f7 adding support for original input port 2022-04-14 12:59:21 +02:00
mzack b5432b2565 Merge branch 'dev' into issue-1289-multiple-host 2022-04-13 17:42:38 +02:00
mzack 47b808b81a improving regex + adding more cases 2022-04-13 17:41:02 +02:00
Sandeep Singh 64ba284f03 Merge pull request #1845 from projectdiscovery/dev
Bugfix release
2022-04-13 17:07:20 +05:30
sandeep 9d27344543 version update 2022-04-13 16:59:41 +05:30
Sandeep Singh 51bca65236 Merge pull request #1839 from projectdiscovery/issue-1833-scan-bug
Improving body dump logic for HTTP requests
2022-04-13 16:44:12 +05:30
Ice3man 2f0600878d Misc changes to variables 2022-04-13 12:20:45 +05:30
Sandeep Singh 99304ac218 Merge pull request #1840 from projectdiscovery/issue-1810-http-response-always-truncated
truncated http response check
2022-04-13 01:52:44 +05:30
LuitelSamikshya 3c4250cc81 truncated http response check 2022-04-12 13:15:01 -05:00
mzack 73a8f9bf5f Improving body dump logic 2022-04-12 19:54:59 +02:00
dependabot[bot] e36a01a235 chore(deps): bump github.com/xanzy/go-gitlab in /v2
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.62.0 to 0.63.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.62.0...v0.63.0)

---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-04-12 10:42:01 +00:00
LuitelSamikshya bab8c40bf8 lint error check 2022-04-11 15:30:58 -05:00
LuitelSamikshya 51927f22f0 older resume files clean up logic update 2022-04-11 15:23:46 -05:00
LuitelSamikshya 2574a225b1 Merge branch 'dev' of github.com:projectdiscovery/nuclei into issue-1797-cleanup-resume-files 2022-04-11 15:04:57 -05:00
Sandeep Singh 659e85ff82 Merge pull request #1831 from projectdiscovery/dev
v2.6.6 Release
2022-04-11 15:37:27 +05:30
sandeep c8753b7ee9 readme update 2022-04-11 15:18:23 +05:30
dependabot[bot] 34e8125844 chore(deps): bump actions/setup-go from 2 to 3 (#1827)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 2 to 3.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 14:03:19 +05:30
dependabot[bot] e2dae13fba chore(deps): bump github.com/go-rod/rod from 0.104.4 to 0.105.1 in /v2 (#1828)
Bumps [github.com/go-rod/rod](https://github.com/go-rod/rod) from 0.104.4 to 0.105.1.
- [Release notes](https://github.com/go-rod/rod/releases)
- [Commits](https://github.com/go-rod/rod/compare/v0.104.4...v0.105.1)

---
updated-dependencies:
- dependency-name: github.com/go-rod/rod
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 14:03:08 +05:30
dependabot[bot] 120a4c96ee chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#1829)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.34 to 1.43.36.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.34...v1.43.36)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 14:02:57 +05:30
dependabot[bot] 4cb7c8de27 chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2 (#1830)
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.35 to 0.0.36.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.35...v0.0.36)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 14:02:45 +05:30
dependabot[bot] c5b5fd7fff chore(deps): bump alpine from 3.15.3 to 3.15.4 (#1826)
Bumps alpine from 3.15.3 to 3.15.4.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 14:02:33 +05:30
Sami ce79a8dc57 Template folder exists changes (#1825) 2022-04-11 11:59:22 +05:30
LuitelSamikshya cea54c5909 clean up old resume files 2022-04-07 10:27:57 -05:00
mzack 3bd34553c0 Merge branch 'dev' into issue-847-digest-auth 2022-04-07 14:25:15 +02:00
Ice3manandSandeep Singh 5ddc37e8d7 Allow custom technology mapping for wappalyzer data (#1796)
* Allow custom technology mapping for wappalyzer data

* Added verbose logging for mapping data

* file ext update

* package name update

Co-authored-by: Sandeep Singh <[email protected]>
2022-04-07 17:55:08 +05:30
Sajad Parra b14edf833a add verbose to rdap for debugging purposes 2022-04-07 16:54:04 +05:30
SajadandMzack9999 7c84590de7 add interact-url variable support for multiple placeholders #1698 (#1760)
* add interact-url variable support for multiple placeholders #1698

* add cache clearing for interactshURLs

* change interactsh-url regex

* fix interactshURLMarker regex

* use underscore(_) instead of dash(-) in interactshURLMarker

Co-authored-by: Mzack9999 <[email protected]>
2022-04-07 12:53:38 +05:30
mzack a15ec3d362 using current date in test 2022-04-07 07:53:01 +02:00
Mzack9999 41f9582a1d Merge pull request #1818 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.34
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.33 to 1.43.34 in /v2
2022-04-07 07:42:00 +02:00
dependabot[bot] ace2392906 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.33 to 1.43.34.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.33...v1.43.34)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-04-07 05:23:26 +00:00
Mzack9999 67887a210d Merge branch 'dev' into issue-1289-multiple-host 2022-04-06 23:25:21 +02:00
Ice3man ea4e8cc265 Added version comparison helpers (#1783)
* Added version comparison helpers

* Added multiple condition example

* Added variadic version of compare_versions

* Fixed failing DSL integration test
2022-04-07 00:48:34 +05:30
Ice3man f156928581 Misc 2022-04-06 19:17:32 +05:30
Ice3man aea79638c6 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into variables-introduction 2022-04-06 19:04:27 +05:30
Sandeep SinghandMzack9999 c5712c98f4 Fixed the default behavior of srd flag (#1817)
* fix: fixed automatic storing of debug response

* small code refactor

Co-authored-by: Mzack9999 <[email protected]>
2022-04-06 16:49:36 +05:30
Mzack9999andSandeep Singh e510bc207f Sanitizing special chars in markdown file paths (#1758)
* Sanitizing special chars in markdown file paths

* adding more chars to trim

Co-authored-by: Sandeep Singh <[email protected]>
2022-04-06 15:00:10 +05:30
dependabot[bot] d37615993c chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#1815)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.32 to 1.43.33.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.32...v1.43.33)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-06 14:39:07 +05:30
dependabot[bot] bd6f0e242a chore(deps): bump github.com/xanzy/go-gitlab in /v2 (#1814)
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.61.0 to 0.62.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.61.0...v0.62.0)

---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-06 14:38:44 +05:30
sandeep b30d8916cb Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into issue-847-digest-auth 2022-04-05 18:54:42 +05:30
Mzack9999 ef2c7a574f fixing integration test condition (#1813) 2022-04-05 17:42:13 +05:30
Mzack9999 775f2962d6 adding yaml parameters docs 2022-04-05 12:02:23 +02:00
Mzack9999 b329c06311 Merge pull request #1809 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.32
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.31 to 1.43.32 in /v2
2022-04-05 11:51:53 +02:00
Mzack9999 2f9af8cc71 adding support for digest authentication 2022-04-05 11:43:56 +02:00
dependabot[bot] 73bc5ef5c8 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.31 to 1.43.32.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.31...v1.43.32)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-04-05 05:18:17 +00:00
Mzack9999 0bab297328 improving default template path logic (#1806) 2022-04-05 04:03:49 +05:30
Mzack9999 7b032b1733 annotation prototype 2022-04-04 09:32:41 +02:00
Mzack9999 1ab165aed1 Merge pull request #1799 from projectdiscovery/dependabot/docker/dev/alpine-3.15.3
chore(deps): bump alpine from 3.15.2 to 3.15.3
2022-04-04 08:05:46 +02:00
Mzack9999 8545757733 Merge pull request #1801 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/shirou/gopsutil/v3-3.22.3
chore(deps): bump github.com/shirou/gopsutil/v3 from 3.22.2 to 3.22.3 in /v2
2022-04-04 08:05:38 +02:00
Mzack9999 3c2d5094d8 Merge pull request #1802 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/projectdiscovery/wappalyzergo-0.0.35
chore(deps): bump github.com/projectdiscovery/wappalyzergo from 0.0.34 to 0.0.35 in /v2
2022-04-04 08:05:29 +02:00
Mzack9999 1401349a5e Merge pull request #1803 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/xanzy/go-gitlab-0.61.0
chore(deps): bump github.com/xanzy/go-gitlab from 0.60.0 to 0.61.0 in /v2
2022-04-04 08:05:20 +02:00
Mzack9999 189a3a6037 Merge pull request #1804 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.31
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.30 to 1.43.31 in /v2
2022-04-04 08:05:12 +02:00
Mzack9999 53bcc0ad3c Merge pull request #1800 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/miekg/dns-1.1.48
chore(deps): bump github.com/miekg/dns from 1.1.47 to 1.1.48 in /v2
2022-04-04 08:05:03 +02:00
dependabot[bot] 536764f529 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.30 to 1.43.31.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.30...v1.43.31)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-04-04 05:26:29 +00:00
dependabot[bot] 4077a99719 chore(deps): bump github.com/xanzy/go-gitlab in /v2
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.60.0 to 0.61.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.60.0...v0.61.0)

---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-04-04 05:26:21 +00:00
dependabot[bot] dc693a9446 chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.34 to 0.0.35.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.34...v0.0.35)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-04-04 05:26:15 +00:00
dependabot[bot] 37024220bd chore(deps): bump github.com/shirou/gopsutil/v3 in /v2
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.22.2 to 3.22.3.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.22.2...v3.22.3)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-04-04 05:26:11 +00:00
dependabot[bot] c1cc7c754f chore(deps): bump github.com/miekg/dns from 1.1.47 to 1.1.48 in /v2
Bumps [github.com/miekg/dns](https://github.com/miekg/dns) from 1.1.47 to 1.1.48.
- [Release notes](https://github.com/miekg/dns/releases)
- [Changelog](https://github.com/miekg/dns/blob/master/Makefile.release)
- [Commits](https://github.com/miekg/dns/compare/v1.1.47...v1.1.48)

---
updated-dependencies:
- dependency-name: github.com/miekg/dns
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-04-04 05:26:08 +00:00
dependabot[bot] 265d123c72 chore(deps): bump alpine from 3.15.2 to 3.15.3
Bumps alpine from 3.15.2 to 3.15.3.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-04-04 05:03:35 +00:00
Ice3man d0d65f8d6b Added integration tests for variables + misc changes 2022-04-02 02:14:00 +05:30
Samiandsandeep 301307bb77 Issue 1705 save responses on disk (#1727)
* save response on disk

* lint error check

* store raw request/response

* lint error fix

* file path

* mock test fix

* readme update

* .txt extension

Co-authored-by: sandeep <[email protected]>
2022-04-02 00:59:02 +05:30
Sandeep Singh 36355908e8 Merge pull request #1795 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.30
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.29 to 1.43.30 in /v2
2022-04-01 23:36:11 +05:30
Sandeep Singh c0b45fac4a Merge pull request #1790 from projectdiscovery/issue-1772-payload
Adding support to skip unused payloads
2022-04-01 23:35:33 +05:30
Ice3man 17fa23e737 Added variable introduction to headless 2022-04-01 23:12:02 +05:30
dependabot[bot] bbe9a464b3 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.29 to 1.43.30.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.29...v1.43.30)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-04-01 05:24:10 +00:00
Sandeep Singh e1efa26be5 Merge pull request #1756 from projectdiscovery/issue-1730-header-flags
Add support for custom headers from file
2022-04-01 01:38:27 +05:30
sandeep 776b1e254c misc update 2022-04-01 01:28:50 +05:30
Ice3man d0ef630d0b Added evaluation of variables at start for fixed strings 2022-03-31 20:54:08 +05:30
Mzack9999 39d8a43ce7 Merge pull request #1788 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/go-rod/rod-0.104.4
chore(deps): bump github.com/go-rod/rod from 0.104.2 to 0.104.4 in /v2
2022-03-31 07:28:12 +02:00
Mzack9999 5f9cca9025 Merge pull request #1789 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.29
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.28 to 1.43.29 in /v2
2022-03-31 07:27:59 +02:00
dependabot[bot] 05f37aaf55 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.28 to 1.43.29.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.28...v1.43.29)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-31 05:24:28 +00:00
dependabot[bot] a94eacd99c chore(deps): bump github.com/go-rod/rod from 0.104.2 to 0.104.4 in /v2
Bumps [github.com/go-rod/rod](https://github.com/go-rod/rod) from 0.104.2 to 0.104.4.
- [Release notes](https://github.com/go-rod/rod/releases)
- [Commits](https://github.com/go-rod/rod/compare/v0.104.2...v0.104.4)

---
updated-dependencies:
- dependency-name: github.com/go-rod/rod
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-31 05:24:18 +00:00
mzack 09be857df1 Adding support to skip unused payloads 2022-03-31 07:24:03 +02:00
Ice3man 9c46024727 Fixed a bug with dns variables 2022-03-31 00:58:50 +05:30
Ice3man a0ece302d1 Moved variables to template level + misc 2022-03-31 00:54:35 +05:30
Ice3man d09e71accf Added variables to http and network 2022-03-30 20:35:46 +05:30
Sandeep Singh f8fa9b5b78 Merge pull request #1780 from projectdiscovery/payloads-helper-fix
Evaluate payload helpers before matching
2022-03-30 12:58:57 +05:30
Sandeep Singh 6ede70116d Merge pull request #1762 from projectdiscovery/clustering-improvements
Added comments to clustering + misc improvements
2022-03-30 12:54:33 +05:30
Mzack9999 fdff88413b Merge pull request #1786 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.28
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.27 to 1.43.28 in /v2
2022-03-30 07:45:35 +02:00
dependabot[bot] 9233ee7f8c chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.27 to 1.43.28.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.27...v1.43.28)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-30 05:22:10 +00:00
Ice3man bc4903e332 Added variables + modified insertion ordered map 2022-03-30 01:46:21 +05:30
Ice3man eaa9db19c0 Misc changes to meta and dynamic http values 2022-03-29 20:36:26 +05:30
GitHub Action 924b615a6c Auto Generate Syntax Docs + JSONSchema [Tue Mar 29 12:22:43 UTC 2022] 🤖 2022-03-29 12:22:43 +00:00
Ice3man 159d84465d Fixed failing DSL tests 2022-03-29 17:51:40 +05:30
Sandeep Singh e8690f378d Merge pull request #1746 from projectdiscovery/issue-1703-minor-changes
Stats counter + Mime type filter
2022-03-29 17:49:44 +05:30
Sandeep Singh c0724bacc8 Merge pull request #1658 from projectdiscovery/skip-unresolved-expressions
Skip unresolved expressions using a regex
2022-03-29 17:30:41 +05:30
Ice3man bea8955dd6 Evaluate payload helpers before matching 2022-03-29 17:28:29 +05:30
Sandeep Singh c8ece76f9f Merge pull request #1775 from projectdiscovery/dependabot/github_actions/dev/actions/cache-3
chore(deps): bump actions/cache from 2 to 3
2022-03-29 17:25:02 +05:30
Sandeep Singh d1d9d18b8c Merge pull request #1779 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.27
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.26 to 1.43.27 in /v2
2022-03-29 17:24:35 +05:30
Sandeep Singh 15893cabf8 Merge pull request #1778 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/go-rod/rod-0.104.2
chore(deps): bump github.com/go-rod/rod from 0.104.1 to 0.104.2 in /v2
2022-03-29 17:24:23 +05:30
dependabot[bot] 552808763e chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.26 to 1.43.27.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.26...v1.43.27)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-29 05:23:24 +00:00
dependabot[bot] 5e1f7405eb chore(deps): bump github.com/go-rod/rod from 0.104.1 to 0.104.2 in /v2
Bumps [github.com/go-rod/rod](https://github.com/go-rod/rod) from 0.104.1 to 0.104.2.
- [Release notes](https://github.com/go-rod/rod/releases)
- [Commits](https://github.com/go-rod/rod/compare/v0.104.1...v0.104.2)

---
updated-dependencies:
- dependency-name: github.com/go-rod/rod
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-29 05:23:13 +00:00
Mzack9999 66ee5555d5 Merge pull request #1774 from projectdiscovery/dependabot/docker/dev/alpine-3.15.2
chore(deps): bump alpine from 3.15.1 to 3.15.2
2022-03-28 18:41:50 +02:00
Mzack9999 73d6819057 Merge pull request #1776 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.26
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.25 to 1.43.26 in /v2
2022-03-28 18:41:41 +02:00
Mzack9999 ae67d74ae9 Merge pull request #1777 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/projectdiscovery/wappalyzergo-0.0.34
chore(deps): bump github.com/projectdiscovery/wappalyzergo from 0.0.33 to 0.0.34 in /v2
2022-03-28 18:41:32 +02:00
Sandeep Singh 5364d91b8a Merge pull request #1755 from projectdiscovery/issue-1713-gitlab-report
Adding HexOrString helper
2022-03-28 16:46:57 +05:30
dependabot[bot] c9e3f30119 chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.33 to 0.0.34.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.33...v0.0.34)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-28 05:22:04 +00:00
dependabot[bot] dfe036b332 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.25 to 1.43.26.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.25...v1.43.26)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-28 05:21:56 +00:00
dependabot[bot] 1d3d264e12 chore(deps): bump actions/cache from 2 to 3
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-28 05:05:02 +00:00
dependabot[bot] d1de7549d7 chore(deps): bump alpine from 3.15.1 to 3.15.2
Bumps alpine from 3.15.1 to 3.15.2.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-28 05:05:01 +00:00
Sandeep Singh d237725242 Merge pull request #1754 from projectdiscovery/issue-1750-crash
Fixing stats printing with invalid templates
2022-03-25 23:42:00 +05:30
Mzack9999 e6414a9dad Merge pull request #1764 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.25
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.24 to 1.43.25 in /v2
2022-03-25 08:44:14 +01:00
dependabot[bot] eb2797f5a1 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.24 to 1.43.25.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.24...v1.43.25)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-25 05:19:23 +00:00
Sandeep Singh bcf705c162 Merge pull request #1696 from projectdiscovery/proxy-internal-requests
Adding proxy support for internal standard HTTP requests
2022-03-24 16:28:44 +05:30
Sandeep Singh 9e7a3233d6 Merge pull request #1744 from skhalsa-sigsci/randomip
Random IP Helper Function
2022-03-24 16:28:01 +05:30
Mzack9999 a2f46ae1b0 Merge pull request #1757 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.24
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.23 to 1.43.24 in /v2
2022-03-24 11:18:00 +01:00
dependabot[bot] 608bc0b0de chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.23 to 1.43.24.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.23...v1.43.24)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-24 05:22:48 +00:00
Sandeep Singh 8ee4f9f797 Merge branch 'dev' into proxy-internal-requests 2022-03-23 23:12:51 +05:30
mzack 2de303ec7f Add support for custom headers from file 2022-03-23 18:07:02 +01:00
Xavier Stevens 4a65097194 Squashed commit of the following:
commit b590de2de14923e4cb35dd19845e12833a4ccbfa
Author: Xavier Stevens <[email protected]>
Date:   Wed Mar 23 08:29:37 2022 -0700

    Updated rand_ip to use variadic args

commit ea883be8c0aa56174a1301252129289334659f3f
Author: Xavier Stevens <[email protected]>
Date:   Tue Mar 22 16:59:19 2022 -0700

    Updated rand_ip function to handle multiple CIDRs
2022-03-23 08:37:05 -07:00
mzack 906e6e3e94 removing test code 2022-03-23 16:31:42 +01:00
mzack 55a4da5dab Adding HexOrString helper 2022-03-23 16:26:05 +01:00
mzack 7d75bd9248 Fixing stats printing with invalid templates 2022-03-23 14:13:30 +01:00
sandeep 9f1186b911 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into issue-1703-minor-changes 2022-03-23 13:00:31 +05:30
Sandeep Singh d2fbf875cd Merge pull request #1752 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.23
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.22 to 1.43.23 in /v2
2022-03-23 12:58:55 +05:30
Sandeep Singh 4892249a3d Merge pull request #1753 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/rs/xid-1.4.0
chore(deps): bump github.com/rs/xid from 1.3.0 to 1.4.0 in /v2
2022-03-23 12:58:40 +05:30
dependabot[bot] 6508c67cfa chore(deps): bump github.com/rs/xid from 1.3.0 to 1.4.0 in /v2
Bumps [github.com/rs/xid](https://github.com/rs/xid) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/rs/xid/releases)
- [Commits](https://github.com/rs/xid/compare/v1.3.0...v1.4.0)

---
updated-dependencies:
- dependency-name: github.com/rs/xid
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-23 05:35:46 +00:00
dependabot[bot] 50de13c20f chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.22 to 1.43.23.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.22...v1.43.23)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-23 05:35:24 +00:00
mzack 6213454cb3 small code refactor 2022-03-22 15:16:22 +01:00
mzack 5cd25bd069 more checks + test cases fix 2022-03-22 14:18:01 +01:00
mzack 3288c77692 fixing headless test cases 2022-03-22 13:47:13 +01:00
mzack 838ddb63e7 adding mime type file support 2022-03-22 12:35:11 +01:00
Sandeep Singh d8535caef4 Merge pull request #1745 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.22
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.21 to 1.43.22 in /v2
2022-03-22 15:55:07 +05:30
Sandeep Singh ec287543b3 Merge pull request #1741 from projectdiscovery/1729-template-path-fail-macOs
added github token for integration tests
2022-03-22 15:53:13 +05:30
Sandeep Singh 49f70377fa Merge pull request #1742 from projectdiscovery/1706-test-for-template-install/update
integration test for template update/install
2022-03-22 15:51:38 +05:30
mzack e7d260ea4d Fixing stats counter 2022-03-22 10:52:57 +01:00
dependabot[bot] 29ca1b8134 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.21 to 1.43.22.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.21...v1.43.22)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-22 05:19:41 +00:00
skhalsa-sigsci 63eccc85ba random ip helper function 2022-03-21 17:39:10 -07:00
Mzack9999 46a933b956 Merge pull request #1731 from projectdiscovery/dependabot/docker/dev/golang-1.18.0-alpine
chore(deps): bump golang from 1.17.8-alpine to 1.18.0-alpine
2022-03-22 01:16:37 +01:00
Mzack9999 915e89e36a Merge pull request #1732 from projectdiscovery/dependabot/docker/dev/alpine-3.15.1
chore(deps): bump alpine from 3.15.0 to 3.15.1
2022-03-22 01:16:30 +01:00
Mzack9999 7f3e7ca522 Merge pull request #1733 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/go-rod/rod-0.104.1
chore(deps): bump github.com/go-rod/rod from 0.103.0 to 0.104.1 in /v2
2022-03-22 01:16:24 +01:00
Mzack9999 29875fdff4 Merge pull request #1734 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.21
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.20 to 1.43.21 in /v2
2022-03-22 01:16:14 +01:00
Mzack9999 04299cc8ed Merge pull request #1736 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/xanzy/go-gitlab-0.60.0
chore(deps): bump github.com/xanzy/go-gitlab from 0.59.0 to 0.60.0 in /v2
2022-03-22 01:16:07 +01:00
LuitelSamikshya 0ca16c4248 integration test for temp update/install 2022-03-21 16:11:58 -05:00
LuitelSamikshya bfb19fc74e added github token 2022-03-21 15:42:19 -05:00
Sandeep Singh 8c83bd9124 Merge pull request #1740 from projectdiscovery/dev
v2.6.5
2022-03-21 23:52:51 +05:30
sandeep 8abba9e82f version update 2022-03-21 23:48:16 +05:30
Ice3man 52a72a8253 Downgraded rawhttp 2022-03-21 23:41:18 +05:30
sandeep 5bb06dff13 dev version update 2022-03-21 19:06:34 +05:30
Sandeep Singh 7b13c663c3 Merge pull request #1737 from projectdiscovery/dev
Bugfix release
2022-03-21 17:09:45 +05:30
Sandeep Singh c876bd4e2f Merge pull request #1721 from projectdiscovery/helper-enhancements
Added time + zlib dsl functions + misc
2022-03-21 16:49:56 +05:30
Sandeep Singh 81f75ffb03 Merge pull request #1738 from projectdiscovery/issue-1729-nil-crash
Fix for nil unexpected return value in workflow execution
2022-03-21 16:33:05 +05:30
Ice3man be0e4b227c Pad date and time helper strings with double digits 2022-03-21 16:32:21 +05:30
mzack e9125f8fca Fix for nil unexpected return value in workflow execution 2022-03-21 11:33:10 +01:00
GitHub Action f4e6e892e0 Auto Generate Syntax Docs + JSONSchema [Mon Mar 21 10:22:10 UTC 2022] 🤖 2022-03-21 10:22:10 +00:00
Ice3man d1f6fd9115 Fixed template doc example 2022-03-21 15:50:28 +05:30
Sandeep Singh 2d54063af7 Merge pull request #1735 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/projectdiscovery/wappalyzergo-0.0.33
chore(deps): bump github.com/projectdiscovery/wappalyzergo from 0.0.32 to 0.0.33 in /v2
2022-03-21 13:29:43 +05:30
sandeep 69c5efa826 readme update 2022-03-21 13:28:54 +05:30
sandeep 6194202779 version update 2022-03-21 13:22:27 +05:30
sandeep adaf46b30e readme update 2022-03-21 13:05:06 +05:30
sandeep 49c5cca78b Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into proxy-internal-requests 2022-03-21 13:03:17 +05:30
sandeep 4203b68ca7 minor flag update 2022-03-21 13:02:23 +05:30
dependabot[bot] 4fc622c0da chore(deps): bump github.com/xanzy/go-gitlab in /v2
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.59.0 to 0.60.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.59.0...v0.60.0)

---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-21 05:21:46 +00:00
dependabot[bot] 8151c8e715 chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.32 to 0.0.33.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.32...v0.0.33)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-21 05:21:42 +00:00
dependabot[bot] 66f1dc741c chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.20 to 1.43.21.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.20...v1.43.21)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-21 05:21:38 +00:00
dependabot[bot] 04192cb923 chore(deps): bump github.com/go-rod/rod from 0.103.0 to 0.104.1 in /v2
Bumps [github.com/go-rod/rod](https://github.com/go-rod/rod) from 0.103.0 to 0.104.1.
- [Release notes](https://github.com/go-rod/rod/releases)
- [Commits](https://github.com/go-rod/rod/compare/v0.103.0...v0.104.1)

---
updated-dependencies:
- dependency-name: github.com/go-rod/rod
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-21 05:21:27 +00:00
dependabot[bot] eeea818fb0 chore(deps): bump alpine from 3.15.0 to 3.15.1
Bumps alpine from 3.15.0 to 3.15.1.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-21 05:05:13 +00:00
dependabot[bot] 9be95ea2ef chore(deps): bump golang from 1.17.8-alpine to 1.18.0-alpine
Bumps golang from 1.17.8-alpine to 1.18.0-alpine.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-21 05:05:10 +00:00
Sandeep Singh e806a4cdd7 Merge pull request #1728 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/projectdiscovery/wappalyzergo-0.0.32
chore(deps): bump github.com/projectdiscovery/wappalyzergo from 0.0.25 to 0.0.32 in /v2
2022-03-18 19:35:02 +05:30
Sandeep Singh f5cbd30e44 Merge pull request #1725 from projectdiscovery/issue-1679-template-update
Implements github request with token fallback
2022-03-18 18:52:19 +05:30
dependabot[bot] 22c2dad51f chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) from 0.0.25 to 0.0.32.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases)
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.25...v0.0.32)

---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-18 05:22:00 +00:00
mzack 6e5e7f23e5 Implements github request with token fallback 2022-03-17 15:57:35 +01:00
Sandeep Singh f94372acf3 Merge pull request #1517 from projectdiscovery/automatic-workflows
Added initial automatic workflow implementation
2022-03-17 19:04:40 +05:30
mzack 428841d946 Merge branch 'dev' into automatic-workflows 2022-03-17 12:27:50 +01:00
Sandeep Singh 4b7ebd0399 Merge pull request #1716 from projectdiscovery/global-redirects
Added global http redirects follow support
2022-03-17 16:49:37 +05:30
Mzack9999 57476432e7 Merge pull request #1719 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/stretchr/testify-1.7.1
chore(deps): bump github.com/stretchr/testify from 1.7.0 to 1.7.1 in /v2
2022-03-17 12:10:42 +01:00
dependabot[bot] f9451e114b chore(deps): bump github.com/stretchr/testify from 1.7.0 to 1.7.1 in /v2
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.0...v1.7.1)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-17 10:23:16 +00:00
Sandeep Singh e2a0b49f07 Merge pull request #1724 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.20
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.17 to 1.43.20 in /v2
2022-03-17 15:51:23 +05:30
dependabot[bot] 4b71e397b7 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.17 to 1.43.20.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.17...v1.43.20)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-17 05:21:44 +00:00
Ice3man bebdb29706 Added time + zlib dsl functions + misc 2022-03-16 14:12:26 +05:30
Ice3man 8ab2dc5e48 Added global http redirects follow support 2022-03-15 18:10:05 +05:30
Sandeep Singh 6dac54b923 Merge pull request #1704 from projectdiscovery/issue-1650-conversion-helpers
Adding number/string conversion helpers
2022-03-14 18:26:37 +05:30
Sandeep Singh 3829a0c7a6 Merge pull request #1710 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.17
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.16 to 1.43.17 in /v2
2022-03-14 17:29:30 +05:30
Sandeep Singh 4239dd7b1f Merge pull request #1711 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/miekg/dns-1.1.47
chore(deps): bump github.com/miekg/dns from 1.1.46 to 1.1.47 in /v2
2022-03-14 17:29:17 +05:30
Sandeep Singh 7dd48eff13 Merge pull request #1712 from projectdiscovery/repo-move-public
Migrated Ice3man543/nvd to organization repo
2022-03-14 17:25:56 +05:30
Ice3man 660a81c1ab Fixed crash + added unique tags for execution 2022-03-14 16:25:27 +05:30
sandeep 882bd5c77d misc change 2022-03-14 13:23:31 +05:30
Ice3man 59a1986fc4 Misc 2022-03-14 13:02:15 +05:30
Ice3man 9efa1f70dc Split tech names on comma + auto scan docs 2022-03-14 13:01:28 +05:30
Ice3man 014b260448 Migrated Ice3man543/nvd to organization repo 2022-03-14 12:37:43 +05:30
Ice3man 32bc6c1718 Misc changes, moving things around as per review 2022-03-14 12:32:05 +05:30
Ice3man 14dab085ac Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into automatic-workflows 2022-03-14 12:17:39 +05:30
dependabot[bot] 5573d60f89 chore(deps): bump github.com/miekg/dns from 1.1.46 to 1.1.47 in /v2
Bumps [github.com/miekg/dns](https://github.com/miekg/dns) from 1.1.46 to 1.1.47.
- [Release notes](https://github.com/miekg/dns/releases)
- [Changelog](https://github.com/miekg/dns/blob/master/Makefile.release)
- [Commits](https://github.com/miekg/dns/compare/v1.1.46...v1.1.47)

---
updated-dependencies:
- dependency-name: github.com/miekg/dns
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-14 05:29:22 +00:00
dependabot[bot] 662d1961fe chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.16 to 1.43.17.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.16...v1.43.17)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-14 05:29:11 +00:00
Ice3man 9da8c0593b Added comments to clustering + misc improvements 2022-03-11 22:08:30 +05:30
Mzack9999 f3e8ad6f1c Merge pull request #1707 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.16
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.15 to 1.43.16 in /v2
2022-03-11 13:33:25 +01:00
mzack 1991f16eb3 exposing dynamicvalues to ongoing iteration 2022-03-11 13:32:55 +01:00
dependabot[bot] 75a99c33b1 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.15 to 1.43.16.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.15...v1.43.16)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-11 05:27:04 +00:00
Sandeep Singh 34841358b3 Merge pull request #1694 from projectdiscovery/#1332-integration-test-for-template-loading
#1332 integration test for template loading
2022-03-10 17:28:07 +05:30
Sandeep Singh 7188da2e50 Merge pull request #1667 from projectdiscovery/update-custom-dir
Custom nuclei-templates directory
2022-03-10 16:32:57 +05:30
Sajad a4841fbdad use nuclei as config directory 2022-03-10 16:20:29 +05:30
mzack f7c2226c39 Adding number/string conversion helpers 2022-03-10 10:57:59 +01:00
Sandeep Singh bcb61c2ed1 Merge pull request #1701 from akkuman/feat-rawhttp-proxy
✨ Add proxy to rawhttp client
2022-03-10 14:07:19 +05:30
Mzack9999 4ba6b0c800 Merge pull request #1699 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.15
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.14 to 1.43.15 in /v2
2022-03-10 08:56:21 +01:00
Mzack9999 c011442d04 Merge pull request #1700 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/xanzy/go-gitlab-0.59.0
chore(deps): bump github.com/xanzy/go-gitlab from 0.58.0 to 0.59.0 in /v2
2022-03-10 08:56:14 +01:00
Sandeep Singh 692eb649ed Merge pull request #1702 from projectdiscovery/dsl-test-add
Added tests for DSL function + misc
2022-03-10 12:11:52 +05:30
Ice3man ca7e30b3fb Added tests for DSL function + misc 2022-03-10 11:56:11 +05:30
sandeep 6ff801211d Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into skip-unresolved-expressions 2022-03-10 11:20:07 +05:30
Akkuman c6723148b3 ✨ Add proxy to rawhttp client 2022-03-10 13:49:17 +08:00
dependabot[bot] 652ef74186 chore(deps): bump github.com/xanzy/go-gitlab in /v2
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.58.0 to 0.59.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.58.0...v0.59.0)

---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-10 05:42:27 +00:00
dependabot[bot] f6e6276663 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.14 to 1.43.15.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.14...v1.43.15)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-10 05:42:17 +00:00
mzack 3f5c055aca adding flag check 2022-03-09 12:38:26 +01:00
mzack 6f5489b8b6 restoring code for catch all cases 2022-03-09 12:37:03 +01:00
mzack d2b5579303 Adding proxy support for internal standard HTTP requests 2022-03-09 12:31:12 +01:00
Mzack9999 c59fd9043d Merge pull request #1691 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/go-playground/validator/v10-10.10.1
chore(deps): bump github.com/go-playground/validator/v10 from 10.10.0 to 10.10.1 in /v2
2022-03-09 08:43:34 +01:00
Mzack9999 fb2a3725f6 Merge pull request #1695 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.14
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.12 to 1.43.14 in /v2
2022-03-09 08:43:16 +01:00
Sandeep Singh 0f38f2c80e Merge pull request #1685 from projectdiscovery/ssl-tests
Added more tests and ciphersuits for SSL protocol
2022-03-09 13:07:45 +05:30
sandeep 8096737e1a Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into update-custom-dir 2022-03-09 01:52:08 +05:30
dependabot[bot] 536fbb77ef chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.12 to 1.43.14.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.12...v1.43.14)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-08 20:08:26 +00:00
dependabot[bot] 9fc4031b5c chore(deps): bump github.com/go-playground/validator/v10 in /v2
Bumps [github.com/go-playground/validator/v10](https://github.com/go-playground/validator) from 10.10.0 to 10.10.1.
- [Release notes](https://github.com/go-playground/validator/releases)
- [Commits](https://github.com/go-playground/validator/compare/v10.10.0...v10.10.1)

---
updated-dependencies:
- dependency-name: github.com/go-playground/validator/v10
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-08 20:08:18 +00:00
Sandeep Singh df117456ed Merge pull request #1693 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/xanzy/go-gitlab-0.58.0
chore(deps): bump github.com/xanzy/go-gitlab from 0.57.0 to 0.58.0 in /v2
2022-03-09 01:37:27 +05:30
Sandeep Singh 80e969f917 Merge pull request #1688 from projectdiscovery/issue-1214-truncated-resp
Adding truncation info on debug
2022-03-09 00:36:50 +05:30
LuitelSamikshya 8e767951f8 added test template 2022-03-08 09:57:56 -06:00
LuitelSamikshya 9128e04d07 integration tests for template path 2022-03-08 09:50:08 -06:00
Ice3man 2a054290c6 Added ciphersuite to tls data + misc 2022-03-08 19:41:52 +05:30
Sandeep Singh 2f619c3a04 Merge pull request #1690 from vavkamil/vavkamil/fix-jira-reporting
fix(jira): Update labels when creating Jira issue
2022-03-08 19:13:46 +05:30
Ice3man ffe4fea237 Performance improvements + wappalyzer as default + misc 2022-03-08 12:43:24 +05:30
dependabot[bot] 75bd3120f1 chore(deps): bump github.com/xanzy/go-gitlab in /v2
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.57.0 to 0.58.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.57.0...v0.58.0)

---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-08 05:21:21 +00:00
Sandeep Singh fd8b46d3b5 Merge pull request #1634 from projectdiscovery/issue-1594-regexp
Refactoring file templates to handle large files in chunks + deprecated methods refactor
2022-03-08 10:26:23 +05:30
sandeep 78bb099412 Update runner.go 2022-03-08 10:11:06 +05:30
Sandeep Singh ce2a5c3d81 Merge branch 'dev' into issue-1594-regexp 2022-03-08 10:05:06 +05:30
Sandeep Singh 65abcecd93 Merge pull request #1673 from projectdiscovery/pprof-support
Added pprof-server support with enable-pprof flag
2022-03-08 09:43:49 +05:30
Kamil Vavra 162dfd0e9f chore(fmt): Replace dash with colon 2022-03-07 17:18:27 +01:00
Kamil Vavra b662f74900 fix(jira): Fixes issue with space in labels 2022-03-07 17:11:20 +01:00
mzack b55dac6ae2 Adding truncation info on debug 2022-03-07 13:32:17 +01:00
Mzack9999 42bcc32c85 Merge branch 'dev' into issue-1594-regexp 2022-03-07 11:41:51 +01:00
Ice3man 90b4c09f80 Added more tests and ciphersuits for SSL protocol 2022-03-07 14:07:30 +05:30
Sandeep Singh c83072b0d7 Merge pull request #1684 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/xanzy/go-gitlab-0.57.0
chore(deps): bump github.com/xanzy/go-gitlab from 0.56.0 to 0.57.0 in /v2
2022-03-07 13:40:29 +05:30
Sandeep Singh 18890f43b0 Merge pull request #1682 from projectdiscovery/dependabot/github_actions/dev/actions/checkout-3
chore(deps): bump actions/checkout from 2 to 3
2022-03-07 13:27:37 +05:30
Sandeep Singh fa784afcf6 Merge pull request #1683 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.12
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.11 to 1.43.12 in /v2
2022-03-07 13:26:16 +05:30
Sandeep Singh a53b7922ff Merge pull request #1681 from projectdiscovery/dependabot/docker/dev/golang-1.17.8-alpine
chore(deps): bump golang from 1.17.7-alpine to 1.17.8-alpine
2022-03-07 13:24:47 +05:30
sandeep fa082421da lint workflow fix 2022-03-07 13:20:37 +05:30
Ice3man d9a121344c Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into automatic-workflows 2022-03-07 13:19:37 +05:30
dependabot[bot] e3ee63a80e chore(deps): bump github.com/xanzy/go-gitlab in /v2
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.56.0 to 0.57.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.56.0...v0.57.0)

---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-07 05:22:09 +00:00
dependabot[bot] 3af41cf9b0 chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.11 to 1.43.12.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.11...v1.43.12)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-07 05:21:59 +00:00
dependabot[bot] b531b47668 chore(deps): bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-07 05:04:20 +00:00
dependabot[bot] 99b5543cf7 chore(deps): bump golang from 1.17.7-alpine to 1.17.8-alpine
Bumps golang from 1.17.7-alpine to 1.17.8-alpine.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-07 05:04:20 +00:00
Ice3man 88c5ca68eb Ignore error on pprof server close 2022-03-07 10:28:25 +05:30
mzack cf9c844c62 adding line number for extracted results 2022-03-04 09:28:58 +01:00
Mzack9999 85fabf74ce Merge pull request #1677 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.11
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.10 to 1.43.11 in /v2
2022-03-04 08:09:58 +01:00
Mzack9999 5ce75b4c47 Merge pull request #1678 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/go-rod/rod-0.103.0
chore(deps): bump github.com/go-rod/rod from 0.102.0 to 0.103.0 in /v2
2022-03-04 08:09:43 +01:00
dependabot[bot] 1a6f70b83b chore(deps): bump github.com/go-rod/rod from 0.102.0 to 0.103.0 in /v2
Bumps [github.com/go-rod/rod](https://github.com/go-rod/rod) from 0.102.0 to 0.103.0.
- [Release notes](https://github.com/go-rod/rod/releases)
- [Commits](https://github.com/go-rod/rod/compare/v0.102.0...v0.103.0)

---
updated-dependencies:
- dependency-name: github.com/go-rod/rod
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-04 05:21:50 +00:00
dependabot[bot] 467311a9df chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.10 to 1.43.11.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.10...v1.43.11)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-04 05:21:43 +00:00
sandeep ded1c91501 version update 2022-03-04 02:19:20 +05:30
Sandeep Singh d851ecdf05 Merge pull request #1675 from projectdiscovery/dev
v2.6.3 Release
2022-03-04 02:16:31 +05:30
sandeep a276923b2c banner update 2022-03-04 02:07:00 +05:30
Sandeep Singh 816ad073b9 Merge pull request #1672 from projectdiscovery/fix-update-check-tests
Run template update once during functional and integration test
2022-03-03 23:27:33 +05:30
sandeep 9a8c71840b workflow update 2022-03-03 23:11:22 +05:30
Sandeep Singh c8b67b3fd5 Merge pull request #1654 from projectdiscovery/duplicate-id-detect-validate
Added duplicate ID detection to validate + misc fixes
2022-03-03 22:46:28 +05:30
Ice3man 632174e8e9 Fixed an issue with nuclei binary name in functional test 2022-03-03 19:51:16 +05:30
Ice3man f6dc6264dd Added pprof-server support with ena
ble-pprof flag
2022-03-03 19:44:29 +05:30
Ice3man 4d6071c1e0 Run template update once during functional and integration test 2022-03-03 19:10:03 +05:30
Ice3man a1dbbc5e88 Renamed variables to be more appropriate + changed return message 2022-03-03 19:01:46 +05:30
mzack 4bcc84df9d using int argument 2022-03-03 10:26:43 +01:00
mzack 040d038414 Merge branch 'dev' into issue-1594-regexp 2022-03-03 07:52:05 +01:00
Mzack9999 4ffbbc78ba Merge pull request #1671 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.10
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.9 to 1.43.10 in /v2
2022-03-03 07:49:22 +01:00
Mzack9999 787fd486d1 Merge pull request #1670 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/xanzy/go-gitlab-0.56.0
chore(deps): bump github.com/xanzy/go-gitlab from 0.55.1 to 0.56.0 in /v2
2022-03-03 07:49:11 +01:00
mzack c74b8cd8e6 adding go setup as per action docs 2022-03-03 07:46:16 +01:00
mzack ea9f9c9c9a fixing logic condition + removing redundant code 2022-03-03 07:18:35 +01:00
dependabot[bot] e0b676e21e chore(deps): bump github.com/aws/aws-sdk-go in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.9 to 1.43.10.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.9...v1.43.10)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-03 05:22:24 +00:00
dependabot[bot] 5a3efbfea3 chore(deps): bump github.com/xanzy/go-gitlab in /v2
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.55.1 to 0.56.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.55.1...v0.56.0)

---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-03 05:22:15 +00:00
Mzack9999 f56e16ce11 Merge pull request #1651 from projectdiscovery/dependabot/github_actions/dev/golangci/golangci-lint-action-3.1.0
chore(deps): bump golangci/golangci-lint-action from 2 to 3.1.0
2022-03-02 17:29:41 +01:00
mzack 64bea4da8c Merge branch 'dev' into issue-1594-regexp 2022-03-02 17:28:04 +01:00
Sandeep Singh 3685ecdcdc Merge pull request #1668 from projectdiscovery/issue-1640-failing-tests
Adding GH token detection
2022-03-02 21:55:29 +05:30
mzack 630bf44c8b adding gh token 2022-03-02 17:02:51 +01:00
mzack 6e9ea761a7 Adding GH token detection 2022-03-02 16:56:32 +01:00
Sajad Parra bdc1b337e0 fix setting custom nuclei-templates directory #1611 2022-03-02 16:50:20 +05:30
mzack 2334195bac adding deduping in matches + extract 2022-03-02 08:31:23 +01:00
Sandeep Singh db8f8b4149 Merge pull request #1663 from projectdiscovery/network-fix
Fixed network response error + timeout handling
2022-03-02 12:52:09 +05:30
Sandeep Singh 65aaf00f30 Merge pull request #1666 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.9
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.8 to 1.43.9 in /v2
2022-03-02 12:49:41 +05:30
Sandeep Singh c21ddf5661 Merge pull request #1665 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/itchyny/gojq-0.12.7
chore(deps): bump github.com/itchyny/gojq from 0.12.6 to 0.12.7 in /v2
2022-03-02 12:08:32 +05:30
dependabot[bot] 14c892a59a chore(deps): bump github.com/aws/aws-sdk-go from 1.43.8 to 1.43.9 in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.8 to 1.43.9.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.8...v1.43.9)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-02 05:27:39 +00:00
dependabot[bot] 4cc8b446a4 chore(deps): bump github.com/itchyny/gojq from 0.12.6 to 0.12.7 in /v2
Bumps [github.com/itchyny/gojq](https://github.com/itchyny/gojq) from 0.12.6 to 0.12.7.
- [Release notes](https://github.com/itchyny/gojq/releases)
- [Changelog](https://github.com/itchyny/gojq/blob/main/CHANGELOG.md)
- [Commits](https://github.com/itchyny/gojq/compare/v0.12.6...v0.12.7)

---
updated-dependencies:
- dependency-name: github.com/itchyny/gojq
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-02 05:27:22 +00:00
sandeep 2955b94455 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into network-fix 2022-03-02 02:12:23 +05:30
Sandeep Singh ce0dfe6e80 Merge pull request #1664 from projectdiscovery/functional-test-fix
Added debug printing to failing functional tests
2022-03-02 02:11:16 +05:30
mzack e9d4b4bc52 adding archive analysis support 2022-03-01 18:59:33 +01:00
GitHub Action 165c9e7013 Auto Generate Syntax Docs + JSONSchema [Tue Mar 1 17:21:24 UTC 2022] 🤖 2022-03-01 17:21:24 +00:00
Sandeep Singh a7849ce5e8 Merge pull request #1638 from projectdiscovery/custom-user-agent
add options to specify User-Agent in headless template
2022-03-01 22:49:44 +05:30
sandeep 7338ba5190 goreleaser update to include cve-annotate build 2022-03-01 19:51:31 +05:30
Ice3man 4a9000d22e Fixed network response error + timeout handling 2022-03-01 16:24:02 +05:30
Ice3man 5c264b043f Added debug printing to failing functional tests 2022-03-01 13:28:43 +05:30
Mzack9999 fbcf9e2436 Merge pull request #1660 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.8
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.7 to 1.43.8 in /v2
2022-03-01 06:38:50 +01:00
Mzack9999 84de1c5680 Merge pull request #1661 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/shirou/gopsutil/v3-3.22.2
chore(deps): bump github.com/shirou/gopsutil/v3 from 3.22.1 to 3.22.2 in /v2
2022-03-01 06:38:40 +01:00
Mzack9999 b34b6b7431 Merge pull request #1662 from projectdiscovery/dependabot/go_modules/v2/dev/go.uber.org/multierr-1.8.0
chore(deps): bump go.uber.org/multierr from 1.7.0 to 1.8.0 in /v2
2022-03-01 06:38:27 +01:00
mzack c89b9ef820 method renaming 2022-03-01 06:37:59 +01:00
dependabot[bot] 5f6ec0e37b chore(deps): bump go.uber.org/multierr from 1.7.0 to 1.8.0 in /v2
Bumps [go.uber.org/multierr](https://github.com/uber-go/multierr) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/uber-go/multierr/releases)
- [Changelog](https://github.com/uber-go/multierr/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uber-go/multierr/compare/v1.7.0...v1.8.0)

---
updated-dependencies:
- dependency-name: go.uber.org/multierr
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-01 05:16:14 +00:00
dependabot[bot] 32b88eb067 chore(deps): bump github.com/shirou/gopsutil/v3 in /v2
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.22.1 to 3.22.2.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.22.1...v3.22.2)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-01 05:16:10 +00:00
dependabot[bot] 367714076f chore(deps): bump github.com/aws/aws-sdk-go from 1.43.7 to 1.43.8 in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.7 to 1.43.8.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.7...v1.43.8)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-01 05:16:03 +00:00
GitHub Action 8026042456 Auto Generate Syntax Docs + JSONSchema [Mon Feb 28 18:52:47 UTC 2022] 🤖 2022-02-28 18:52:47 +00:00
Sandeep Singh d38033014f Merge pull request #1659 from projectdiscovery/unkown-severity-value
Added unknown as severity value when it is not known
2022-03-01 00:21:13 +05:30
sandeep 7ccd2edaca readme update 2022-03-01 00:15:44 +05:30
Ice3man 6d9c525946 Added unknown as severity value when it is not known 2022-02-28 22:29:04 +05:30
Ice3man 409d0fce31 Skip unresolved expressions using a regex 2022-02-28 22:19:51 +05:30
mzack 6cb522c9b2 Merge branch 'dev' into issue-1594-regexp 2022-02-28 11:42:46 +01:00
Ice3man 04b1e43780 Added duplicate ID detection to validate + misc fixes 2022-02-28 15:37:51 +05:30
GitHub Action d3f06ec68f Auto Generate Syntax Docs + JSONSchema [Mon Feb 28 07:41:00 UTC 2022] 🤖 2022-02-28 07:41:00 +00:00
Sandeep Singh bd35ad76ef Merge pull request #1649 from zt2/dev
feat(template): allow custom type in metadata
2022-02-28 13:09:19 +05:30
Sandeep Singh 909c9765d9 Merge pull request #1645 from projectdiscovery/gzip-decode
Added gzip_decode helper function
2022-02-28 12:33:56 +05:30
Sandeep Singh 1a417a8f8d Merge pull request #1646 from projectdiscovery/interact-color-debug
Added interaction event highlighting support in debug mode
2022-02-28 12:33:07 +05:30
Mzack9999 93a33921cf Merge pull request #1653 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/andygrunwald/go-jira-1.15.1
chore(deps): bump github.com/andygrunwald/go-jira from 1.15.0 to 1.15.1 in /v2
2022-02-28 07:09:00 +01:00
Mzack9999 3e3be62376 Merge pull request #1652 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.7
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.6 to 1.43.7 in /v2
2022-02-28 07:08:45 +01:00
dependabot[bot] f9fc40a56b chore(deps): bump github.com/andygrunwald/go-jira in /v2
Bumps [github.com/andygrunwald/go-jira](https://github.com/andygrunwald/go-jira) from 1.15.0 to 1.15.1.
- [Release notes](https://github.com/andygrunwald/go-jira/releases)
- [Changelog](https://github.com/andygrunwald/go-jira/blob/master/CHANGELOG.md)
- [Commits](https://github.com/andygrunwald/go-jira/compare/v1.15.0...v1.15.1)

---
updated-dependencies:
- dependency-name: github.com/andygrunwald/go-jira
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-02-28 05:22:52 +00:00
dependabot[bot] 5379a0b0e7 chore(deps): bump github.com/aws/aws-sdk-go from 1.43.6 to 1.43.7 in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.6 to 1.43.7.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.6...v1.43.7)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-02-28 05:22:42 +00:00
dependabot[bot] 1c7d59e2b9 chore(deps): bump golangci/golangci-lint-action from 2 to 3.1.0
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 2 to 3.1.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v2...v3.1.0)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-02-28 05:04:23 +00:00
zt2 4e384e3814 style: switch lint 2022-02-28 00:04:35 +08:00
zt2 03612a28b8 feat(template): allow custom type in metadata
In some case you may need to use custom type in `metadata`, like nested array or nested k-v:

```yaml
info:
  metadata:
    components:
      - bootstrap
      - jquery
```

So this commit allowed use any custom type in `metadata`.
2022-02-27 22:28:00 +08:00
sandeep c0932168ac Added nuclei changelog indexer for api 2022-02-27 16:42:20 +05:30
GitHub Action cf2f7b612b Auto Generate Syntax Docs + JSONSchema [Sat Feb 26 12:12:56 UTC 2022] 🤖 2022-02-26 12:12:56 +00:00
Sandeep Singh c15e8171ed Merge pull request #1644 from projectdiscovery/read-all-http-unsafe 2022-02-26 17:41:09 +05:30
mzack 06ab0dfa99 making code more uniform with chosen architecture 2022-02-26 09:06:43 +01:00
mzack a51d307967 . 2022-02-26 08:02:16 +01:00
mzack 73d1247b71 fixing typo 2022-02-26 00:54:11 +01:00
Ice3man fb6ab39d65 Added interaction event highlighting support in debug mode 2022-02-25 23:11:56 +05:30
Ice3man 2ae66ff530 Fixed unncessary hostname addition in payloads and output in network 2022-02-25 22:53:51 +05:30
Ice3man deca1095ed Added gzip_decode helper function 2022-02-25 22:37:50 +05:30
Ice3man a7d6d5ce9d Added read-all flag to http unsafe request 2022-02-25 19:26:10 +05:30
mzack 371baf8023 updating go mods 2022-02-25 14:23:34 +01:00
mzack e8780b7db1 Merge branch 'dev' into issue-1594-regexp 2022-02-25 13:04:46 +01:00
mzack a4b24ea802 adding outputunique logic handling 2022-02-25 12:51:28 +01:00
Sandeep Singh 156d5baf69 Merge pull request #1639 from projectdiscovery/random-resume-file
Allow random resume file generation on conflict + made resume string
2022-02-25 17:14:12 +05:30
Mzack9999 7aceff8881 Merge pull request #1642 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.6
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.4 to 1.43.6 in /v2
2022-02-25 09:10:51 +01:00
mzack 1a42780370 improving dump logic 2022-02-25 08:59:10 +01:00
dependabot[bot] d068cad477 chore(deps): bump github.com/aws/aws-sdk-go from 1.43.4 to 1.43.6 in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.4 to 1.43.6.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.43.4...v1.43.6)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-02-25 05:19:11 +00:00
mzack b3e2456c80 removing unused stuff 2022-02-25 02:13:57 +01:00
mzack baabe412dd using custom implementation to avoid multiple file read 2022-02-25 02:12:54 +01:00
mzack 763ec611ab . 2022-02-25 01:49:14 +01:00
mzack 748617a9f3 first part 2022-02-25 00:55:05 +01:00
mzack 30a5a11e23 patching tests 2022-02-24 23:57:47 +01:00
mzack cf1526b7ed adding result dedupe 2022-02-24 23:54:45 +01:00
mzack 6af462c215 . 2022-02-24 23:35:51 +01:00
mzack 91ad446212 . 2022-02-24 23:18:37 +01:00
mzack 11286210e5 using helper dedupeint 2022-02-24 22:50:41 +01:00
mzack 2409d7a713 dropping multiple scan 2022-02-24 22:41:33 +01:00
Ice3man 9e1e86d89f Use random names by default to avoid collision 2022-02-24 14:34:37 +05:30
Ice3man 42b3a5d3e2 Allow random resume file generation on conflict + made resume string flag 2022-02-24 14:32:41 +05:30
Sajad Parra dc46bd263b add options to specify User-Agent in headless template 2022-02-24 12:31:08 +05:30
mzack 1551feda5a temporary line calculation with multiple file read
todo: replace with one pass scan via io.reader
2022-02-23 23:32:25 +01:00
sandeep 9b79d0ac7d Update config.go 2022-02-24 02:46:14 +05:30
mzack 6746071979 Refactoring file templates to handle large files in chunks + removing deprecated io methods 2022-02-23 13:54:46 +01:00
Ice3man edf111916a Misc fixes 2022-01-18 21:08:05 +05:30
Ice3man be75480256 Added initial smart workflow implementation 2022-01-18 20:59:37 +05:30
326 changed files with 16590 additions and 3922 deletions

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@ updates:
- package-ecosystem: "gomod"
directory: "v2/"
schedule:
interval: "daily"
interval: "weekly"
target-branch: "dev"
commit-message:
prefix: "chore"
+26 -10
View File
@@ -1,40 +1,56 @@
name: 🔨 Build Test
on:
push:
pull_request:
paths:
- '**.go'
- 'v2/'
workflow_dispatch:
jobs:
build:
name: Test Builds
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
go-version: [1.18.x, 1.19.x]
os: [ubuntu-latest, windows-latest, macOS-12]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: ${{ matrix.go-version }}
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Go Mod hygine
run: |
go clean -modcache
go mod tidy
working-directory: v2/
- name: Build
run: go build .
working-directory: v2/cmd/nuclei/
- name: Test
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: go test ./...
working-directory: v2/
- name: Integration Tests
env:
GH_ACTION: true
run: bash run.sh
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: |
chmod +x run.sh
bash run.sh ${{ matrix.os }}
working-directory: integration_tests/
# At the bottom for known issue on OSX - https://github.com/projectdiscovery/nuclei/issues/1309
- name: Race Condition Tests
run: go build -race .
working-directory: v2/cmd/nuclei/
if: ${{ matrix.os != 'windows-latest' }} # known issue: https://github.com/golang/go/issues/46099
run: go run -race . -l ../functional-test/targets.txt -id tech-detect,tls-version
working-directory: v2/cmd/nuclei/
+29
View File
@@ -0,0 +1,29 @@
name: 📑 Template-DB Indexer
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
index:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Intalling Indexer
run: |
git config --global url."https://${{ secrets.ACCESS_TOKEN }}@github".insteadOf https://github
git clone https://github.com/projectdiscovery/nucleish-api.git
cd nucleish-api/cmd/generate-index/
go install
- name: Generate Index
env:
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
run: |
generate-index -mode changelog
+4 -7
View File
@@ -1,11 +1,8 @@
name: 🚨 CodeQL Analysis
on:
push:
pull_request:
workflow_dispatch:
branches:
- dev
jobs:
analyze:
@@ -24,16 +21,16 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
+7 -7
View File
@@ -12,29 +12,29 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Get Github tag
id: meta
run: |
echo "::set-output name=tag::$(curl --silent "https://api.github.com/repos/projectdiscovery/nuclei/releases/latest" | jq -r .tag_name)"
curl --silent "https://api.github.com/repos/projectdiscovery/nuclei/releases/latest" | jq -r .tag_name | xargs -I {} echo TAG={} >> $GITHUB_OUTPUT
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: projectdiscovery/nuclei:latest,projectdiscovery/nuclei:${{ steps.meta.outputs.tag }}
tags: projectdiscovery/nuclei:latest,projectdiscovery/nuclei:${{ steps.meta.outputs.TAG }}
+7 -4
View File
@@ -1,7 +1,9 @@
name: 🧪 Functional Test
on:
push:
pull_request:
paths:
- '**.go'
workflow_dispatch:
@@ -14,16 +16,17 @@ jobs:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.18
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Functional Tests
env:
GH_ACTION: true
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: |
chmod +x run.sh
bash run.sh ${{ matrix.os }}
+7 -3
View File
@@ -1,6 +1,6 @@
name: 🙏🏻 Lint Test
on:
push:
pull_request:
workflow_dispatch:
@@ -9,10 +9,14 @@ jobs:
name: Lint Test
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3.3.1
with:
version: latest
args: --timeout 5m
+10 -14
View File
@@ -1,26 +1,22 @@
name: ⏰ Publish Docs
on:
push:
branches:
- dev
pull_request:
paths:
- '**.go'
workflow_dispatch:
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@master
with:
persist-credentials: false
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout code
uses: actions/checkout@v3
- name: "Set up Go"
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.18
- name: Generate YAML Syntax Documentation
id: generate-docs
@@ -32,11 +28,11 @@ jobs:
go generate pkg/templates/templates.go
go build -o "cmd/docgen/docgen" cmd/docgen/docgen.go
./cmd/docgen/docgen ../SYNTAX-REFERENCE.md ../nuclei-jsonschema.json
echo "::set-output name=changes::$(git status -s | wc -l)"
git status -s | wc -l | xargs -I {} echo CHANGES={} >> $GITHUB_OUTPUT
working-directory: v2
- name: Commit files
if: steps.generate-docs.outputs.changes > 0
if: steps.generate-docs.outputs.CHANGES > 0
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
@@ -44,7 +40,7 @@ jobs:
git commit -m "Auto Generate Syntax Docs + JSONSchema [$(date)] :robot:" -a
- name: Push changes
if: steps.generate-docs.outputs.changes > 0
if: steps.generate-docs.outputs.CHANGES > 0
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
+7 -5
View File
@@ -1,4 +1,5 @@
name: 🎉 Release Binary
on:
push:
tags:
@@ -10,18 +11,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v2
- uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.18
- uses: goreleaser/goreleaser-action@v2
- uses: goreleaser/goreleaser-action@v3
with:
args: "release --rm-dist"
version: latest
workdir: v2/
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
SLACK_WEBHOOK: "${{ secrets.RELEASE_SLACK_WEBHOOK }}"
+6 -8
View File
@@ -1,11 +1,9 @@
name: 👮🏼‍♂️ Sonarcloud
on:
push:
branches:
- master
- dev
pull_request:
types: [opened, synchronize, reopened]
paths:
- '**.go'
workflow_dispatch:
jobs:
@@ -13,14 +11,14 @@ jobs:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: "Set up Go"
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.18
- name: Run unit Tests
working-directory: v2/
+12 -17
View File
@@ -1,28 +1,23 @@
name: 🛠 Template Validate
on: [ push, pull_request ]
on:
pull_request:
paths:
- '**.go'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-go@v2
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.18
- name: Cache Go
id: cache-go
uses: actions/cache@v2
with:
path: /home/runner/go
key: ${{ runner.os }}-go
- name: Installing Nuclei
# if: steps.cache-go.outputs.cache-hit != 'true'
run: |
go install github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest
- name: Template Validation
run: |
nuclei -validate
nuclei -validate -w ./workflows
go run . -ut
go run . -validate
go run . -validate -w workflows
working-directory: v2/cmd/nuclei/
+4
View File
@@ -1,4 +1,6 @@
.idea
.vscode
v2/vendor
integration_tests/nuclei
integration_tests/integration-test
v2/cmd/nuclei/main
@@ -11,3 +13,5 @@ v2/cmd/docgen/docgen
v2/pkg/protocols/common/helpers/deserialization/testdata/Deserialize.class
v2/pkg/protocols/common/helpers/deserialization/testdata/ValueObject.class
v2/pkg/protocols/common/helpers/deserialization/testdata/ValueObject2.ser
*.exe
+15
View File
@@ -0,0 +1,15 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="DSLFunctionsIT" type="GoApplicationRunConfiguration" factoryName="Go Application">
<module name="nuclei" />
<working_directory value="$PROJECT_DIR$/integration_tests" />
<envs>
<env name="DEBUG" value="true" />
<env name="TESTS" value="http/dsl-functions.yaml" />
</envs>
<kind value="PACKAGE" />
<package value="github.com/projectdiscovery/nuclei/v2/cmd/integration-test" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$/v2/cmd/integration-test/integration-test.go" />
<method v="2" />
</configuration>
</component>
-76
View File
@@ -1,76 +0,0 @@
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment
include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at contact@projectdiscovery.io. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
[homepage]: https://www.contributor-covenant.org
For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
+21 -94
View File
@@ -261,100 +261,6 @@ engine.SetExecuterOptions(executerOpts)
results := engine.ExecuteWithOpts(finalTemplates, r.hmapInputProvider, true)
```
### Using Nuclei From Go Code
An example of using Nuclei From Go Code to run templates on targets is provided below.
```go
package main
import (
"fmt"
"log"
"os"
"path"
"github.com/logrusorgru/aurora"
"go.uber.org/ratelimit"
"github.com/projectdiscovery/goflags"
"github.com/projectdiscovery/nuclei/v2/pkg/catalog"
"github.com/projectdiscovery/nuclei/v2/pkg/catalog/config"
"github.com/projectdiscovery/nuclei/v2/pkg/catalog/loader"
"github.com/projectdiscovery/nuclei/v2/pkg/core"
"github.com/projectdiscovery/nuclei/v2/pkg/core/inputs"
"github.com/projectdiscovery/nuclei/v2/pkg/output"
"github.com/projectdiscovery/nuclei/v2/pkg/parsers"
"github.com/projectdiscovery/nuclei/v2/pkg/protocols"
"github.com/projectdiscovery/nuclei/v2/pkg/protocols/common/hosterrorscache"
"github.com/projectdiscovery/nuclei/v2/pkg/protocols/common/interactsh"
"github.com/projectdiscovery/nuclei/v2/pkg/protocols/common/protocolinit"
"github.com/projectdiscovery/nuclei/v2/pkg/protocols/common/protocolstate"
"github.com/projectdiscovery/nuclei/v2/pkg/reporting"
"github.com/projectdiscovery/nuclei/v2/pkg/testutils"
"github.com/projectdiscovery/nuclei/v2/pkg/types"
)
func main() {
cache := hosterrorscache.New(30, hosterrorscache.DefaultMaxHostsCount)
defer cache.Close()
mockProgress := &testutils.MockProgressClient{}
reportingClient, _ := reporting.New(&reporting.Options{}, "")
defer reportingClient.Close()
outputWriter := testutils.NewMockOutputWriter()
outputWriter.WriteCallback = func(event *output.ResultEvent) {
fmt.Printf("Got Result: %v\n", event)
}
defaultOpts := types.DefaultOptions()
protocolstate.Init(defaultOpts)
protocolinit.Init(defaultOpts)
defaultOpts.Templates = goflags.StringSlice{"dns/cname-service-detection.yaml"}
defaultOpts.ExcludeTags = config.ReadIgnoreFile().Tags
interactOpts := interactsh.NewDefaultOptions(outputWriter, reportingClient, mockProgress)
interactClient, err := interactsh.New(interactOpts)
if err != nil {
log.Fatalf("Could not create interact client: %s\n", err)
}
defer interactClient.Close()
home, _ := os.UserHomeDir()
catalog := catalog.New(path.Join(home, "nuclei-templates"))
executerOpts := protocols.ExecuterOptions{
Output: outputWriter,
Options: defaultOpts,
Progress: mockProgress,
Catalog: catalog,
IssuesClient: reportingClient,
RateLimiter: ratelimit.New(150),
Interactsh: interactClient,
HostErrorsCache: cache,
Colorizer: aurora.NewAurora(true),
}
engine := core.New(defaultOpts)
engine.SetExecuterOptions(executerOpts)
workflowLoader, err := parsers.NewLoader(&executerOpts)
if err != nil {
log.Fatalf("Could not create workflow loader: %s\n", err)
}
executerOpts.WorkflowLoader = workflowLoader
store, err := loader.New(loader.NewConfig(defaultOpts, catalog, executerOpts))
if err != nil {
log.Fatalf("Could not create loader client: %s\n", err)
}
store.Load()
input := &inputs.SimpleInputProvider{Inputs: []string{"docs.hackerone.com"}}
_ = engine.Execute(store.Templates(), input)
}
```
### Adding a New Protocol
Protocols form the core of Nuclei Engine. All the request types like `http`, `dns`, etc. are implemented in form of protocol requests.
@@ -550,6 +456,27 @@ func (template *Template) compileProtocolRequests(options protocols.ExecuterOpti
That's it, you've added a new protocol to Nuclei. The next good step would be to write integration tests which are described in `integration-tests` and `cmd/integration-tests` directories.
## Profiling Instructions
To enable dumping of Memory profiling data, `-profile-mem` flag can be used along with path to a file. This writes a pprof formatted file which can be used for investigate resource usage with `pprof` tool.
```console
$ nuclei -t nuclei-templates/ -u https://example.com -profile-mem mem.pprof
```
To view profile data in pprof, first install pprof. Then run the below command -
```console
$ go tool pprof mem.pprof
```
To open a web UI on a port to visualize debug data, the below command can be used.
```console
$ go tool pprof -http=:8081 mem.pprof
```
## Project Structure
- [v2/pkg/reporting](./v2/pkg/reporting) - Reporting modules for nuclei.
+3 -2
View File
@@ -1,7 +1,8 @@
FROM golang:1.17.7-alpine as build-env
FROM golang:1.19.3-alpine as build-env
RUN apk add build-base
RUN go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest
FROM alpine:3.15.0
FROM alpine:3.17.0
RUN apk add --no-cache bind-tools ca-certificates chromium
COPY --from=build-env /go/bin/nuclei /usr/local/bin/nuclei
ENTRYPOINT ["nuclei"]
+1 -1
View File
@@ -1,6 +1,6 @@
MIT License
Copyright (c) 2021 ProjectDiscovery, Inc.
Copyright (c) 2022 ProjectDiscovery, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
+220 -69
View File
@@ -30,7 +30,9 @@
<p align="center">
<a href="https://github.com/projectdiscovery/nuclei/blob/master/README.md">English</a> •
<a href="https://github.com/projectdiscovery/nuclei/blob/master/README_CN.md">中文</a>
<a href="https://github.com/projectdiscovery/nuclei/blob/master/README_CN.md">中文</a> •
<a href="https://github.com/projectdiscovery/nuclei/blob/master/README_KR.md">Korean</a> •
<a href="https://github.com/projectdiscovery/nuclei/blob/master/README_ID.md">Indonesia</a>
</p>
---
@@ -51,7 +53,7 @@ We have a [dedicated repository](https://github.com/projectdiscovery/nuclei-temp
# Install Nuclei
Nuclei requires **go1.17** to install successfully. Run the following command to install the latest version -
Nuclei requires **go1.18** to install successfully. Run the following command to install the latest version -
```sh
go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest
@@ -84,68 +86,93 @@ nuclei -h
This will display help for the tool. Here are all the switches it supports.
```yaml
```console
Nuclei is a fast, template based vulnerability scanner focusing
on extensive configurability, massive extensibility and ease of use.
Usage:
nuclei [flags]
./nuclei [flags]
Flags:
TARGET:
-u, -target string[] target URLs/hosts to scan
-l, -list string path to file containing a list of target URLs/hosts to scan (one per line)
-resume Resume scan using resume.cfg (clustering will be disabled)
-u, -target string[] target URLs/hosts to scan
-l, -list string path to file containing a list of target URLs/hosts to scan (one per line)
-resume string resume scan using resume.cfg (clustering will be disabled)
-sa, -scan-all-ips scan all the IP's associated with dns record
-iv, -ip-version string[] IP version to scan of hostname (4,6) - (default 4)
TEMPLATES:
-nt, -new-templates run only new templates added in latest nuclei-templates release
-t, -templates string[] list of template or template directory to run (comma-separated, file)
-tu, -template-url string[] list of template urls to run (comma-separated, file)
-w, -workflows string[] list of workflow or workflow directory to run (comma-separated, file)
-wu, -workflow-url string[] list of workflow urls to run (comma-separated, file)
-validate validate the passed templates to nuclei
-tl list all available templates
-nt, -new-templates run only new templates added in latest nuclei-templates release
-ntv, -new-templates-version string[] run new templates added in specific version
-as, -automatic-scan automatic web scan using wappalyzer technology detection to tags mapping
-t, -templates string[] list of template or template directory to run (comma-separated, file)
-tu, -template-url string[] list of template urls to run (comma-separated, file)
-w, -workflows string[] list of workflow or workflow directory to run (comma-separated, file)
-wu, -workflow-url string[] list of workflow urls to run (comma-separated, file)
-validate validate the passed templates to nuclei
-nss, -no-strict-syntax disable strict syntax check on templates
-td, -template-display displays the templates content
-tl list all available templates
FILTERING:
-a, -author string[] templates to run based on authors (comma-separated, file)
-tags string[] templates to run based on tags (comma-separated, file)
-etags, -exclude-tags string[] templates to exclude based on tags (comma-separated, file)
-itags, -include-tags string[] tags to be executed even if they are excluded either by default or configuration
-id, -template-id string[] templates to run based on template ids (comma-separated, file)
-eid, -exclude-id string[] templates to exclude based on template ids (comma-separated, file)
-it, -include-templates string[] templates to be executed even if they are excluded either by default or configuration
-et, -exclude-templates string[] template or template directory to exclude (comma-separated, file)
-s, -severity value[] templates to run based on severity. Possible values: info, low, medium, high, critical
-es, -exclude-severity value[] templates to exclude based on severity. Possible values: info, low, medium, high, critical
-pt, -type value[] templates to run based on protocol type. Possible values: dns, file, http, headless, network, workflow, ssl, websocket, whois
-ept, -exclude-type value[] templates to exclude based on protocol type. Possible values: dns, file, http, headless, network, workflow, ssl, websocket, whois
-a, -author string[] templates to run based on authors (comma-separated, file)
-tags string[] templates to run based on tags (comma-separated, file)
-etags, -exclude-tags string[] templates to exclude based on tags (comma-separated, file)
-itags, -include-tags string[] tags to be executed even if they are excluded either by default or configuration
-id, -template-id string[] templates to run based on template ids (comma-separated, file)
-eid, -exclude-id string[] templates to exclude based on template ids (comma-separated, file)
-it, -include-templates string[] templates to be executed even if they are excluded either by default or configuration
-et, -exclude-templates string[] template or template directory to exclude (comma-separated, file)
-em, -exclude-matchers string[] template matchers to exclude in result
-s, -severity value[] templates to run based on severity. Possible values: info, low, medium, high, critical, unknown
-es, -exclude-severity value[] templates to exclude based on severity. Possible values: info, low, medium, high, critical, unknown
-pt, -type value[] templates to run based on protocol type. Possible values: dns, file, http, headless, network, workflow, ssl, websocket, whois
-ept, -exclude-type value[] templates to exclude based on protocol type. Possible values: dns, file, http, headless, network, workflow, ssl, websocket, whois
-tc, -template-condition string[] templates to run based on expression condition
OUTPUT:
-o, -output string output file to write found issues/vulnerabilities
-sresp, -store-resp store all request/response passed through nuclei to output directory
-srd, -store-resp-dir string store all request/response passed through nuclei to custom directory (default "output")
-silent display findings only
-nc, -no-color disable output content coloring (ANSI escape codes)
-json write output in JSONL(ines) format
-irr, -include-rr include request/response pairs in the JSONL output (for findings only)
-nm, -no-meta disable printing result metadata in cli output
-nts, -no-timestamp disable printing timestamp in cli output
-ts, -timestamp enables printing timestamp in cli output
-rdb, -report-db string nuclei reporting database (always use this to persist report data)
-ms, -matcher-status display match failure status
-me, -markdown-export string directory to export results in markdown format
-se, -sarif-export string file to export results in SARIF format
CONFIGURATIONS:
-config string path to the nuclei configuration file
-rc, -report-config string nuclei reporting module configuration file
-H, -header string[] custom headers in header:value format
-V, -var value custom vars in var=value format
-r, -resolvers string file containing resolver list for nuclei
-sr, -system-resolvers use system DNS resolving as error fallback
-passive enable passive HTTP response processing mode
-ev, -env-vars enable environment variables to be used in template
-cc, -client-cert string client certificate file (PEM-encoded) used for authenticating against scanned hosts
-ck, -client-key string client key file (PEM-encoded) used for authenticating against scanned hosts
-ca, -client-ca string client certificate authority file (PEM-encoded) used for authenticating against scanned hosts
-ztls Use ztls library with autofallback to standard one for tls13
-config string path to the nuclei configuration file
-fr, -follow-redirects enable following redirects for http templates
-fhr, -follow-host-redirects follow redirects on the same host
-mr, -max-redirects int max number of redirects to follow for http templates (default 10)
-dr, -disable-redirects disable redirects for http templates
-rc, -report-config string nuclei reporting module configuration file
-H, -header string[] custom header/cookie to include in all http request in header:value format (cli, file)
-V, -var value custom vars in key=value format
-r, -resolvers string file containing resolver list for nuclei
-sr, -system-resolvers use system DNS resolving as error fallback
-dc, -disable-clustering disable clustering of requests
-passive enable passive HTTP response processing mode
-fh2, -force-http2 force http2 connection on requests
-ev, -env-vars enable environment variables to be used in template
-cc, -client-cert string client certificate file (PEM-encoded) used for authenticating against scanned hosts
-ck, -client-key string client key file (PEM-encoded) used for authenticating against scanned hosts
-ca, -client-ca string client certificate authority file (PEM-encoded) used for authenticating against scanned hosts
-sml, -show-match-line show match lines for file templates, works with extractors only
-ztls use ztls library with autofallback to standard one for tls13
-sni string tls sni hostname to use (default: input domain name)
-sandbox sandbox nuclei for safe templates execution
-i, -interface string network interface to use for network scan
-at, -attack-type string type of payload combinations to perform (batteringram,pitchfork,clusterbomb)
-sip, -source-ip string source ip address to use for network scan
-config-directory string override the default config path ($home/.config)
-rsr, -response-size-read int max response size to read in bytes (default 10485760)
-rss, -response-size-save int max response size to save in bytes (default 1048576)
INTERACTSH:
-iserver, -interactsh-server string interactsh server url for self-hosted instance (default: oast.pro,oast.live,oast.site,oast.online,oast.fun,oast.me)
@@ -156,47 +183,66 @@ INTERACTSH:
-interactions-cooldown-period int extra time for interaction polling before exiting (default 5)
-ni, -no-interactsh disable interactsh server for OAST testing, exclude OAST based templates
UNCOVER:
-uc, -uncover enable uncover engine
-uq, -uncover-query string[] uncover search query
-ue, -uncover-engine string[] uncover search engine (shodan,shodan-idb,fofa,censys,quake,hunter,zoomeye,netlas) (default shodan)
-uf, -uncover-field string uncover fields to return (ip,port,host) (default "ip:port")
-ul, -uncover-limit int uncover results to return (default 100)
-ucd, -uncover-delay int delay between uncover query requests in seconds (0 to disable) (default 1)
RATE-LIMIT:
-rl, -rate-limit int maximum number of requests to send per second (default 150)
-rlm, -rate-limit-minute int maximum number of requests to send per minute
-bs, -bulk-size int maximum number of hosts to be analyzed in parallel per template (default 25)
-c, -concurrency int maximum number of templates to be executed in parallel (default 25)
-hbs, -headless-bulk-size int maximum number of headless hosts to be analyzed in parallel per template (default 10)
-hc, -headless-concurrency int maximum number of headless templates to be executed in parallel (default 10)
-rl, -rate-limit int maximum number of requests to send per second (default 150)
-rlm, -rate-limit-minute int maximum number of requests to send per minute
-bs, -bulk-size int maximum number of hosts to be analyzed in parallel per template (default 25)
-c, -concurrency int maximum number of templates to be executed in parallel (default 25)
-hbs, -headless-bulk-size int maximum number of headless hosts to be analyzed in parallel per template (default 10)
-headc, -headless-concurrency int maximum number of headless templates to be executed in parallel (default 10)
OPTIMIZATIONS:
-timeout int time to wait in seconds before timeout (default 5)
-retries int number of times to retry a failed request (default 1)
-ldp, -leave-default-ports leave default HTTP/HTTPS ports (eg. host:80,host:443
-mhe, -max-host-error int max errors for a host before skipping from scan (default 30)
-project use a project folder to avoid sending same request multiple times
-project-path string set a specific project path
-spm, -stop-at-first-path stop processing HTTP requests after the first match (may break template/workflow logic)
-stream stream mode - start elaborating without sorting the input
-timeout int time to wait in seconds before timeout (default 10)
-retries int number of times to retry a failed request (default 1)
-ldp, -leave-default-ports leave default HTTP/HTTPS ports (eg. host:80,host:443)
-mhe, -max-host-error int max errors for a host before skipping from scan (default 30)
-project use a project folder to avoid sending same request multiple times
-project-path string set a specific project path
-spm, -stop-at-first-match stop processing HTTP requests after the first match (may break template/workflow logic)
-stream stream mode - start elaborating without sorting the input
-irt, -input-read-timeout duration timeout on input read (default 3m0s)
-nh, -no-httpx disable httpx probing for non-url input
-no-stdin disable stdin processing
HEADLESS:
-headless enable templates that require headless browser support (root user on linux will disable sandbox)
-page-timeout int seconds to wait for each page in headless mode (default 20)
-sb, -show-browser show the browser on the screen when running templates with headless mode
-sc, -system-chrome Use local installed chrome browser instead of nuclei installed
-headless enable templates that require headless browser support (root user on Linux will disable sandbox)
-page-timeout int seconds to wait for each page in headless mode (default 20)
-sb, -show-browser show the browser on the screen when running templates with headless mode
-sc, -system-chrome use local installed Chrome browser instead of nuclei installed
-lha, -list-headless-action list available headless actions
DEBUG:
-debug show all requests and responses
-debug-req show all sent requests
-debug-resp show all received responses
-p, -proxy string[] List of HTTP(s)/SOCKS5 proxy to use (comma separated or file input)
-dreq, -debug-req show all sent requests
-dresp, -debug-resp show all received responses
-p, -proxy string[] list of http/socks5 proxy to use (comma separated or file input)
-pi, -proxy-internal proxy all internal requests
-ldf, -list-dsl-function list all supported DSL function signatures
-tlog, -trace-log string file to write sent requests trace log
-elog, -error-log string file to write sent requests error log
-version show nuclei version
-hm, -hang-monitor enable nuclei hang monitoring
-v, -verbose show verbose output
-profile-mem string optional nuclei memory profile dump file
-vv display templates loaded for scan
-svd, -show-var-dump show variables dump for debugging
-ep, -enable-pprof enable pprof debugging server
-tv, -templates-version shows the version of the installed nuclei-templates
-hc, -health-check run diagnostic check up
UPDATE:
-update update nuclei engine to the latest released version
-ut, -update-templates update nuclei-templates to latest released version
-ud, -update-directory string overwrite the default directory to install nuclei-templates
-duc, -disable-update-check disable automatic nuclei/templates update check
-un, -update update nuclei engine to the latest released version
-ut, -update-templates update nuclei-templates to latest released version
-ud, -update-template-dir string custom directory to install / update nuclei-templates
-duc, -disable-update-check disable automatic nuclei/templates update check
STATISTICS:
-stats display statistics about the running scan
@@ -297,17 +343,122 @@ We have [a discussion thread around this](https://github.com/projectdiscovery/nu
<a href="https://github.com/projectdiscovery/nuclei-action"><img src="static/learn-more-button.png" width="170px" alt="Learn More"></a>
</h1>
### Using Nuclei From Go Code
An example of using Nuclei From Go Code to run templates on targets is provided below.
```go
package main
import (
"context"
"fmt"
"log"
"os"
"path"
"time"
"github.com/logrusorgru/aurora"
"github.com/projectdiscovery/goflags"
"github.com/projectdiscovery/nuclei/v2/pkg/catalog/config"
"github.com/projectdiscovery/nuclei/v2/pkg/catalog/disk"
"github.com/projectdiscovery/nuclei/v2/pkg/catalog/loader"
"github.com/projectdiscovery/nuclei/v2/pkg/core"
"github.com/projectdiscovery/nuclei/v2/pkg/core/inputs"
"github.com/projectdiscovery/nuclei/v2/pkg/output"
"github.com/projectdiscovery/nuclei/v2/pkg/parsers"
"github.com/projectdiscovery/nuclei/v2/pkg/protocols"
"github.com/projectdiscovery/nuclei/v2/pkg/protocols/common/hosterrorscache"
"github.com/projectdiscovery/nuclei/v2/pkg/protocols/common/interactsh"
"github.com/projectdiscovery/nuclei/v2/pkg/protocols/common/protocolinit"
"github.com/projectdiscovery/nuclei/v2/pkg/protocols/common/protocolstate"
"github.com/projectdiscovery/nuclei/v2/pkg/reporting"
"github.com/projectdiscovery/nuclei/v2/pkg/testutils"
"github.com/projectdiscovery/nuclei/v2/pkg/types"
"github.com/projectdiscovery/ratelimit"
)
func main() {
cache := hosterrorscache.New(30, hosterrorscache.DefaultMaxHostsCount)
defer cache.Close()
mockProgress := &testutils.MockProgressClient{}
reportingClient, _ := reporting.New(&reporting.Options{}, "")
defer reportingClient.Close()
outputWriter := testutils.NewMockOutputWriter()
outputWriter.WriteCallback = func(event *output.ResultEvent) {
fmt.Printf("Got Result: %v\n", event)
}
defaultOpts := types.DefaultOptions()
protocolstate.Init(defaultOpts)
protocolinit.Init(defaultOpts)
defaultOpts.Templates = goflags.StringSlice{"dns/cname-service.yaml"}
defaultOpts.ExcludeTags = config.ReadIgnoreFile().Tags
interactOpts := interactsh.NewDefaultOptions(outputWriter, reportingClient, mockProgress)
interactClient, err := interactsh.New(interactOpts)
if err != nil {
log.Fatalf("Could not create interact client: %s\n", err)
}
defer interactClient.Close()
home, _ := os.UserHomeDir()
catalog := disk.NewCatalog(path.Join(home, "nuclei-templates"))
executerOpts := protocols.ExecuterOptions{
Output: outputWriter,
Options: defaultOpts,
Progress: mockProgress,
Catalog: catalog,
IssuesClient: reportingClient,
RateLimiter: ratelimit.New(context.Background(), 150, time.Second),
Interactsh: interactClient,
HostErrorsCache: cache,
Colorizer: aurora.NewAurora(true),
ResumeCfg: types.NewResumeCfg(),
}
engine := core.New(defaultOpts)
engine.SetExecuterOptions(executerOpts)
workflowLoader, err := parsers.NewLoader(&executerOpts)
if err != nil {
log.Fatalf("Could not create workflow loader: %s\n", err)
}
executerOpts.WorkflowLoader = workflowLoader
configObject, err := config.ReadConfiguration()
if err != nil {
log.Fatalf("Could not read config: %s\n", err)
}
store, err := loader.New(loader.NewConfig(defaultOpts, configObject, catalog, executerOpts))
if err != nil {
log.Fatalf("Could not create loader client: %s\n", err)
}
store.Load()
input := &inputs.SimpleInputProvider{Inputs: []string{"docs.hackerone.com"}}
_ = engine.Execute(store.Templates(), input)
engine.WorkPool().Wait() // Wait for the scan to finish
}
```
### Resources
- [Scanning Live Web Applications with Nuclei in CI/CD Pipeline](https://blog.escape.tech/devsecops-part-iii-scanning-live-web-applications/) by [@TristanKalos](https://twitter.com/TristanKalos)
- [Finding bugs with Nuclei with PinkDraconian (Robbe Van Roey)](https://www.youtube.com/watch?v=ewP0xVPW-Pk) by **[@PinkDraconian](https://twitter.com/PinkDraconian)**
- [Nuclei: Packing a Punch with Vulnerability Scanning](https://bishopfox.com/blog/nuclei-vulnerability-scan) by **Bishopfox**
- [The WAF efficacy framework](https://www.fastly.com/blog/the-waf-efficacy-framework-measuring-the-effectiveness-of-your-waf) by **Fastly**
- [Scanning Live Web Applications with Nuclei in CI/CD Pipeline](https://blog.escape.tech/devsecops-part-iii-scanning-live-web-applications/) by **[@TristanKalos](https://twitter.com/TristanKalos)**
- [Community Powered Scanning with Nuclei](https://blog.projectdiscovery.io/community-powered-scanning-with-nuclei/)
- [Nuclei Unleashed - Quickly write complex exploits](https://blog.projectdiscovery.io/nuclei-unleashed-quickly-write-complex-exploits/)
- [Nuclei - Fuzz all the things](https://blog.projectdiscovery.io/nuclei-fuzz-all-the-things/)
- [Nuclei + Interactsh Integration for Automating OOB Testing](https://blog.projectdiscovery.io/nuclei-interactsh-integration/)
- [Weaponizes nuclei Workflows to Pwn All the Things](https://medium.com/@dwisiswant0/weaponizes-nuclei-workflows-to-pwn-all-the-things-cd01223feb77) by [@dwisiswant0](https://github.com/dwisiswant0)
- [How to Scan Continuously with Nuclei?](https://medium.com/@dwisiswant0/how-to-scan-continuously-with-nuclei-fcb7e9d8b8b9) by [@dwisiswant0](https://github.com/dwisiswant0)
- [Hack with Automation !!!](https://dhiyaneshgeek.github.io/web/security/2021/07/19/hack-with-automation/) by [@DhiyaneshGeek](https://github.com/DhiyaneshGeek)
- [Weaponizes nuclei Workflows to Pwn All the Things](https://medium.com/@dwisiswant0/weaponizes-nuclei-workflows-to-pwn-all-the-things-cd01223feb77) by **[@dwisiswant0](https://github.com/dwisiswant0)**
- [How to Scan Continuously with Nuclei?](https://medium.com/@dwisiswant0/how-to-scan-continuously-with-nuclei-fcb7e9d8b8b9) by **[@dwisiswant0](https://github.com/dwisiswant0)**
- [Hack with Automation !!!](https://dhiyaneshgeek.github.io/web/security/2021/07/19/hack-with-automation/) by **[@DhiyaneshGeek](https://github.com/DhiyaneshGeek)**
### Credits
+140 -89
View File
@@ -7,14 +7,16 @@
<p align="center">
<a href="https://goreportcard.com/report/github.com/projectdiscovery/nuclei"><img src="https://goreportcard.com/badge/github.com/projectdiscovery/nuclei"></a>
<a href="https://github.com/projectdiscovery/nuclei/issues"><img src="https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat"></a>
<a href="https://github.com/projectdiscovery/nuclei/releases"><img src="https://img.shields.io/github/release/projectdiscovery/nuclei"></a>
<a href="https://twitter.com/pdnuclei"><img src="https://img.shields.io/twitter/follow/pdnuclei.svg?logo=twitter"></a>
<img src="https://img.shields.io/github/go-mod/go-version/projectdiscovery/nuclei?filename=v2%2Fgo.mod">
<a href="https://github.com/projectdiscovery/nuclei/releases"><img src="https://img.shields.io/github/downloads/projectdiscovery/nuclei/total">
<a href="https://github.com/projectdiscovery/nuclei/graphs/contributors"><img src="https://img.shields.io/github/contributors-anon/projectdiscovery/nuclei">
<a href="https://github.com/projectdiscovery/nuclei/releases/"><img src="https://img.shields.io/github/release/projectdiscovery/nuclei">
<a href="https://github.com/projectdiscovery/nuclei/issues"><img src="https://img.shields.io/github/issues-raw/projectdiscovery/nuclei">
<a href="https://github.com/projectdiscovery/nuclei/discussions"><img src="https://img.shields.io/github/discussions/projectdiscovery/nuclei">
<a href="https://discord.gg/projectdiscovery"><img src="https://img.shields.io/discord/695645237418131507.svg?logo=discord"></a>
<a href="https://github.com/projectdiscovery/nuclei/actions/workflows/build-test.yml"><img src="https://github.com/projectdiscovery/nuclei/actions/workflows/build-test.yml/badge.svg?branch=master"></a>
<a href="https://twitter.com/pdnuclei"><img src="https://img.shields.io/twitter/follow/pdnuclei.svg?logo=twitter"></a>
</p>
<p align="center">
<a href="#工作流程">工作流程</a> •
<a href="#安装Nuclei">安装</a> •
@@ -28,14 +30,15 @@
<p align="center">
<a href="https://github.com/projectdiscovery/nuclei/blob/master/README.md">English</a> •
<a href="https://github.com/projectdiscovery/nuclei/blob/master/README_CN.md">中文</a>
<a href="https://github.com/projectdiscovery/nuclei/blob/master/README_CN.md">中文</a> •
<a href="https://github.com/projectdiscovery/nuclei/blob/master/README_KR.md">Korean</a>
</p>
---
Nuclei使用零误报的定制模板向目标发送请求,同时可以对大量主机进行快速扫描。Nuclei提供TCP、DNS、HTTP、FILE等各类协议的扫描,通过强大且灵活的模板,可以使用Nuclei模拟各种安全检查。
Nuclei使用零误报的定制模板向目标发送请求,同时可以对主机进行批量快速扫描。Nuclei提供TCP、DNS、HTTP、FILE等各类协议的扫描,通过强大且灵活的模板,可以使用Nuclei模拟各种安全检查。
我们的[模板仓库](https://github.com/projectdiscovery/nuclei-templates)包含**超过200**安全研究员和工程师提供的模板。
我们的[模板仓库](https://github.com/projectdiscovery/nuclei-templates)包含**超过300**安全研究员和工程师提供的模板。
@@ -49,7 +52,7 @@ Nuclei使用零误报的定制模板向目标发送请求,同时可以对大
# 安装Nuclei
Nuclei需要**go1.17**才能安装成功。执行下列命令安装最新版本的Nuclei
Nuclei需要**go1.18**才能安装成功。执行下列命令安装最新版本的Nuclei
```sh
go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest
@@ -65,7 +68,7 @@ go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest
自从[v2.5.2]((https://github.com/projectdiscovery/nuclei/releases/tag/v2.5.2))起,Nuclei就内置了自动下载和更新模板的功能。[**Nuclei模板**](https://github.com/projectdiscovery/nuclei-templates)仓库随时更新社区中可用的模板列表。
您仍然可以随时使用`update-templates`命令更新模板,您可以根据[模板指南](https://nuclei.projectdiscovery.io/templating-guide/)编写您自己的模板。
您仍然可以随时使用`update-templates`命令更新模板,您可以根据[模板指南](https://nuclei.projectdiscovery.io/templating-guide/)为您的个人工作流和需求编写模板。
YAML的语法规范在[这里](SYNTAX-REFERENCE.md)。
@@ -79,10 +82,10 @@ YAML的语法规范在[这里](SYNTAX-REFERENCE.md)。
nuclei -h
```
这将显示Nuclei的帮助,以下是所有支持的命令
这将显示Nuclei的帮助,以下是所有支持的命令。
```yaml
```console
Nuclei是一款注重于可配置性、可扩展性和易用性的基于模板的快速漏洞扫描器。
用法:
@@ -90,103 +93,146 @@ Nuclei是一款注重于可配置性、可扩展性和易用性的基于模板
命令:
目标:
-u, -target string[] 指定扫描的URL/主机
-l, -list string 指定需要扫描的URL/主机文件(一行一个)
-u, -target string[] 指定扫描的URL/主机
-l, -list string 指定需要扫描的URL/主机文件(一行一个)
-resume string 断点续扫(将禁用集群)
模板:
-t, -templates string[] 指定需要扫描的模板或者模板的路径
-nt, -new-templates 只扫描最新版本中添加的模板
-w, -workflows string[] 指定扫描中的工作流或者工作流目录
-validate 验证通过的模板
-tl 列出所有可用的模板
-nt, -new-templates 只扫描最新版本中添加的模板
-ntv, -new-templates-version string[] 运行在特定版本中添加的新模板
-as, -automatic-scan 在自动web扫描中使用wappalyzer技术检测的指纹
-t, -templates string[] 指定需要扫描的模板或者模板的路径(逗号分隔,文件)
-tu, -template-url string[] 从URL加载模板(逗号分隔,文件)
-w, -workflows string[] 指定扫描中的工作流或者工作流目录(逗号分隔,文件)
-wu, -workflow-url string[] 从URL加载工作流(逗号分隔,文件)
-validate 验证通过的模板
-nss, -no-strict-syntax 禁用模板的严格检查
-tl 列出所有可用的模板
过滤:
-tags string[] 执行有标记的模板子集
-etags, -exclude-tags string[] 执行标记为排除的模板
-itags, -include-tags string[] 不执行具有攻击性的模板
-et, -exclude-templates string[] 要排除的模板或者模板目录
-it, -include-templates string[] 执行默认或配置中排除的模板
-s, -severity value[] 根据严重程度运行模板,可候选的值有:info,low,medium,high,critical
-es, -exclude-severity value[] 根据严重程度排除模板,可候选的值有:info,low,medium,high,critical
-a, -author string[] 执行指定作者的模板
-a, -author string[] 执行指定作者的模板(逗号分隔,文件)
-tags string[] 执行有标记的模板子集(逗号分隔,文件)
-etags, -exclude-tags string[] 执行标记为排除的模板(逗号分隔,文件)
-itags, -include-tags string[] 执行默认或者配置排除的标记模板
-id, -template-id string[] 执行指定ID的模板(逗号分隔,文件)
-eid, -exclude-id string[] 执行排除指定ID的模板(逗号分隔,文件)
-it, -include-templates string[] 执行默认或配置中排除的模板
-et, -exclude-templates string[] 要排除的模板或者模板目录(逗号分隔,文件)
-em, -exclude-matchers string[] 在结果中排除指定模板
-s, -severity value[] 根据严重程度运行模板,可候选的值有:info,low,medium,high,critical
-es, -exclude-severity value[] 根据严重程度排除模板,可候选的值有:info,low,medium,high,critical
-pt, -type value[] 根据协议运行模板,可候选的值有:dns, file, http, headless, network, workflow, ssl, websocket, whois
-ept, -exclude-type value[] 根据协议排除模板,可候选的值有:dns, file, http, headless, network, workflow, ssl, websocket, whois
-tc, -template-condition string[] 根据表达式运行模板
输出:
-o, -output string 输出发现的问题到文件
-silent 只显示结果
-nc, -no-color 禁用输出内容着色(ANSI转义码)
-json 输出为jsonL(ines)
-irr, -include-rr 在JSONL中输出对应的请求和相应(仅结果)
-nm, -no-meta 不显示匹配的元数据
-nts, -no-timestamp 不在输出中显示时间戳
-rdb, -report-db string 本地的Nuclei结果数据库(始终使用该数据库保存结果)
-me, -markdown-export string 以markdown导出结果
-se, -sarif-export string 以SARIF导出结果
-o, -output string 输出发现的问题到文件
-sresp, -store-resp 将nuclei的所有请求和响应输出到目录
-srd, -store-resp-dir string 将nuclei的所有请求和响应输出到指定目录(默认:output)
-silent 只显示结果
-nc, -no-color 禁用输出内容着色(ANSI转义码)
-json 输出为jsonL(ines)
-irr, -include-rr 在JSONL中输出对应的请求和相应(仅结果)
-nm, -no-meta 不显示匹配的元数据
-nts, -no-timestamp 不在输出中显示时间戳
-rdb, -report-db string 本地的Nuclei结果数据库(始终使用该数据库保存结果)
-ms, -matcher-status 显示匹配失败状态
-me, -markdown-export string 以markdown导出结果
-se, -sarif-export string 以SARIF导出结果
配置:
-config string 指定Nuclei的配置文件
-rc, -report-config string 指定Nuclei报告模板文件
-H, -header string[] 指定报告中的标题:value格式
-V, -var value 通过var=value指定var值
-r, -resolvers string 指定Nuclei的解析文件
-sr, -system-resolvers 当DNS错误时使用系统DNS
-passive 启用被动扫描处理HTTP响应
-ev, env-vars 在模板中使用环境变量
-config string 指定Nuclei的配置文件
-fr, -follow-redirects 为HTTP模板启用重定向
-fhr, -follow-host-redirects 在同一主机上重定向
-mr, -max-redirects int HTTP模板最大重定向次数(默认:10)
-dr, -disable-redirects 为HTTP模板禁用重定向
-rc, -report-config string 指定Nuclei报告模板文件
-H, -header string[] 指定header、cookie,以header:value的方式(cli,文件)
-V, -var value 通过key=value指定var值
-r, -resolvers string 指定Nuclei的解析文件
-sr, -system-resolvers 当DNS错误时使用系统DNS
-passive 启用被动扫描处理HTTP响应
-ev, env-vars 在模板中使用环境变量
-cc, -client-cert string 用于对扫描的主机进行身份验证的客户端证书文件(PEM 编码)
-ck, -client-key string 用于对扫描的主机进行身份验证的客户端密钥文件(PEM 编码)
-ca, -client-ca string 用于对扫描的主机进行身份验证的客户端证书颁发机构文件(PEM 编码)
-sml, -show-match-line 显示文件模板的匹配值,只适用于提取器
-ztls 对ztls自动退回到tls13
-sni string 指定tls sni的主机名(默认为输入的域名)
-i, -interface string 指定网卡
-sip, -source-ip string 指定源IP
-config-directory string 重写默认配置路径($home/.config)
-rsr, -response-size-read int 最大读取响应大小(默认:10485760字节)
-rss, -response-size-save int 最大储存响应大小(默认:10485760字节)
交互:
-inserver, -ineractsh-server string 使用interactsh反连检测平台(默认为"https://interact.sh")
-itoken, -interactsh-token string 指定反连检测平台的身份凭证
-interactions-cache-size int 指定保存在交互缓存中的请求数(默认:5000)
-interactions-eviction int 从缓存中删除请求前等待的时间(默认为60秒)
-interactions-poll-duration int 每个轮询前等待时间(默认为5秒)
-interactions-cooldown-period int 退出轮询前的等待时间(默认为5秒)
-ni, -no-interactsh 禁用反连检测平台,同时排除基于反连检测的模板
-inserver, -ineractsh-server string 使用interactsh反连检测平台(默认为oast.pro,oast.live,oast.site,oast.online,oast.fun,oast.me)
-itoken, -interactsh-token string 指定反连检测平台的身份凭证
-interactions-cache-size int 指定保存在交互缓存中的请求数(默认:5000)
-interactions-eviction int 从缓存中删除请求前等待的时间(默认为60秒)
-interactions-poll-duration int 每个轮询前等待时间(默认为5秒)
-interactions-cooldown-period int 退出轮询前的等待时间(默认为5秒)
-ni, -no-interactsh 禁用反连检测平台,同时排除基于反连检测的模板
限速:
-r1, -rate-limit int 每秒最大请求量(默认:150)
-rlm, -rate-limit-minute int 每分钟最大请求量
-bs, -bulk-size int 每个模板最大并行检测数(默认:25)
-c, -concurrency int 并行执行的最大模板数量(默认:25)
-rl, -rate-limit int 每秒最大请求量(默认:150)
-rlm, -rate-limit-minute int 每分钟最大请求量
-bs, -bulk-size int 每个模板最大并行检测数(默认:25)
-c, -concurrency int 并行执行的最大模板数量(默认:25)
-hbs, -headless-bulk-size int 每个模板并行运行的无头主机最大数量(默认:10)
-headc, -headless-concurrency int 并行指定无头主机最大数量(默认:10)
优化:
-timeout int 超时时间(默认为5秒)
-retries int 重试次数(默认:1)
-mhe, -max-host-error int 某主机扫描失败次数,跳过该主机(默认:30)
-project 使用项目文件夹避免多次发送同一请求
-project-path string 设置特定的项目文件夹
-spm, -stop-at-first-path 得到一个结果后停止(或许会中断模板和工作流的逻辑)
-stream 流模式 - 在不整理输入的情况下详细描述
-timeout int 超时时间(默认为10秒)
-retries int 重试次数(默认:1)
-ldp, -leave-default-ports 指定HTTP/HTTPS默认端口(例如:host:80,host:443)
-mhe, -max-host-error int 某主机扫描失败次数,跳过该主机(默认:30)
-project 使用项目文件夹避免多次发送同一请求
-project-path string 设置特定的项目文件夹
-spm, -stop-at-first-path 得到一个结果后停止(或许会中断模板和工作流的逻辑)
-stream 流模式 - 在不整理输入的情况下详细描述
-irt, -input-read-timeout duration 输入读取超时时间(默认:3分钟)
-no-stdin 禁用标准输入
无界面浏览器:
-headless 启用需要无界面浏览器的模板
-page-timeout int 在无界面下超时秒数(默认:20)
-sb, -show-brower 在无界面浏览器运行模板时,显示浏览器
-sc, -system-chrome 不使用Nuclei自带的浏览器,使用本地浏览器
-headless 启用需要无界面浏览器的模板
-page-timeout int 在无界面下超时秒数(默认:20)
-sb, -show-brower 在无界面浏览器运行模板时,显示浏览器
-sc, -system-chrome 不使用Nuclei自带的浏览器,使用本地浏览器
-lha, -list-headless-action 列出可用的无界面操作
调试:
-debug 显示所有请求和响应
-debug-req 显示所有请求
-debug-resp 显示所有响应
-proxy, -proxy-url string 使用HTTP代理
-proxy-socks-url string 使用SOCK5代理
-tlog, -trace-log string 写入请求日志到文件
-version 显示版本信息
-v, -verbose 显示详细信息
-vv 显示额外的详细信息
-tv, -templates-version 显示已安装的模板版本
-debug 显示所有请求和响应
-dreq, -debug-req 显示所有请求
-dresp, -debug-resp 显示所有响应
-p, -proxy string[] 使用http/socks5代理(逗号分隔,文件)
-pi, -proxy-internal 代理所有请求
-ldf, -list-dsl-function 列出所有支持的DSL函数签名
-tlog, -trace-log string 写入跟踪日志到文件
-elog, -error-log string 写入错误日志到文件
-version 显示版本信息
-hm, -hang-monitor 启用Nuclei的监控
-v, -verbose 显示详细信息
-profile-mem string 将Nuclei的内存转储成文件
-vv 显示额外的详细信息
-ep, -enable-pprof 启用pprof调试服务器
-tv, -templates-version 显示已安装的模板版本
-hc, -health-check 运行诊断检查
升级:
-update 更新Nuclei到最新版本
-ut, -update-templates 更新Nuclei模板到最新版
-ud, -update-directory string 覆盖安装模板
-duc, -disable-update-check 禁用更新
-update 更新Nuclei到最新版本
-ut, -update-templates 更新Nuclei模板到最新版
-ud, -update-directory string 覆盖安装模板
-duc, -disable-update-check 禁用更新
统计:
-stats 显示正在扫描的统计信息
-sj, -stats-json 将统计信息以JSONL格式输出到文件
-si, -stats-inerval int 显示统计信息更新的间隔秒数(默认:5)
-m, -metrics 显示Nuclei端口信息
-mp, -metrics-port int 更改Nuclei默认端口(默认:9092)
-stats 显示正在扫描的统计信息
-sj, -stats-json 将统计信息以JSONL格式输出到文件
-si, -stats-inerval int 显示统计信息更新的间隔秒数(默认:5)
-m, -metrics 显示Nuclei端口信息
-mp, -metrics-port int 更改Nuclei默认端口(默认:9092)
```
### 运行Nuclei
@@ -232,7 +278,7 @@ Nuclei提供了大量有助于安全工程师在工作流定制相关的功能
**对于赏金猎人:**
Nuclei允许您定制自己的测试方法,可以轻松的运行您的程序。此外Nuclei可以更容易的集成到您的漏扫设备中。
Nuclei允许您定制自己的测试方法,可以轻松的运行您的程序。此外Nuclei可以更容易的集成到您的漏洞扫描工作流中。
- 可以集成到其他工作流中
- 可以在几分钟处理上千台主机
@@ -266,7 +312,7 @@ Nuclei通过增加手动、自动的过程,极大地改变了安全评估的
Nuclei构建很简单,通过数百名安全研究员的社区模板,Nuclei可以随时扫描来了解安全威胁。Nuclei通常用来用于复测,以确定漏洞是否被修复。
- **CI/CD:**工程师已经支持了CI/CD,可以使用Nuclei来监控生产环境
- **CI/CD:**工程师已经支持了CI/CD,可以通过Nuclei使用定制模板来监控模拟环境和生产环境
- **周期性扫描:**使用Nuclei创建新发现的漏洞模板,通过Nuclei可以周期性扫描消除漏洞
我们有个[讨论组](https://github.com/projectdiscovery/nuclei-templates/discussions/693),黑客提交自己的模板后可以获得赏金,这可以减少资产的漏洞,并且减少重复。如果你想实行该计划,可以[联系我](mailto:[email protected])。我们非常乐意提供帮助,或者在[讨论组](https://github.com/projectdiscovery/nuclei-templates/discussions/693)中发布相关信息。
@@ -280,6 +326,11 @@ Nuclei构建很简单,通过数百名安全研究员的社区模板,Nuclei
</h1>
### 资源
- [使用PinkDraconian发现Nuclei的BUG (Robbe Van Roey)](https://www.youtube.com/watch?v=ewP0xVPW-Pk) 作者:[@PinkDraconian](https://twitter.com/PinkDraconian)
- [Nuclei: 强而有力的扫描器](https://bishopfox.com/blog/nuclei-vulnerability-scan) 作者:Bishopfox
- [WAF有效性检查](https://www.fastly.com/blog/the-waf-efficacy-framework-measuring-the-effectiveness-of-your-waf) 作者:Fastly
- [在CI/CD中使用Nuclei实时扫描网页应用](https://blog.escape.tech/devsecops-part-iii-scanning-live-web-applications/) 作者:[@TristanKalos](https://twitter.com/TristanKalos)
- [使用Nuclei扫描](https://blog.projectdiscovery.io/community-powered-scanning-with-nuclei/)
- [Nuclei Unleashed - 快速编写复杂漏洞](https://blog.projectdiscovery.io/nuclei-unleashed-quickly-write-complex-exploits/)
- [Nuclei - FUZZ一切](https://blog.projectdiscovery.io/nuclei-fuzz-all-the-things/)
+354
View File
@@ -0,0 +1,354 @@
<h1 align="center">
<br>
<a href="https://nuclei.projectdiscovery.io"><img src="static/nuclei-logo.png" width="200px" alt="Nuclei"></a>
</h1>
<h4 align="center">Pemindai kerentanan yang cepat dan dapat disesuaikan berdasarkan DSL berbasis YAML sederhana.</h4>
<p align="center">
<img src="https://img.shields.io/github/go-mod/go-version/projectdiscovery/nuclei?filename=v2%2Fgo.mod">
<a href="https://github.com/projectdiscovery/nuclei/releases"><img src="https://img.shields.io/github/downloads/projectdiscovery/nuclei/total">
<a href="https://github.com/projectdiscovery/nuclei/graphs/contributors"><img src="https://img.shields.io/github/contributors-anon/projectdiscovery/nuclei">
<a href="https://github.com/projectdiscovery/nuclei/releases/"><img src="https://img.shields.io/github/release/projectdiscovery/nuclei">
<a href="https://github.com/projectdiscovery/nuclei/issues"><img src="https://img.shields.io/github/issues-raw/projectdiscovery/nuclei">
<a href="https://github.com/projectdiscovery/nuclei/discussions"><img src="https://img.shields.io/github/discussions/projectdiscovery/nuclei">
<a href="https://discord.gg/projectdiscovery"><img src="https://img.shields.io/discord/695645237418131507.svg?logo=discord"></a>
<a href="https://twitter.com/pdnuclei"><img src="https://img.shields.io/twitter/follow/pdnuclei.svg?logo=twitter"></a>
</p>
<p align="center">
<a href="#cara-kerja">Cara Kerja</a> •
<a href="#instalasi-nuclei">Instalasi</a> •
<a href="#untuk-insinyur-keamanan">Untuk Teknisi Keamanan</a> •
<a href="#untuk-pengembang-dan-organisasi">Untuk Pengembang</a> •
<a href="https://nuclei.projectdiscovery.io/nuclei/get-started/">Dokumentasi</a> •
<a href="#kredit">Kredit</a> •
<a href="https://nuclei.projectdiscovery.io/faq/nuclei/">Tanya Jawab</a> •
<a href="https://discord.gg/projectdiscovery">Gabung Discord</a>
</p>
<p align="center">
<a href="https://github.com/projectdiscovery/nuclei/blob/master/README.md">English</a> •
<a href="https://github.com/projectdiscovery/nuclei/blob/master/README_CN.md">中文</a> •
<a href="https://github.com/projectdiscovery/nuclei/blob/master/README_KR.md">Korean</a> •
<a href="https://github.com/projectdiscovery/nuclei/blob/master/README_ID.md">Indonesia</a>
</p>
---
Nuclei digunakan untuk mengirim permintaan lintas target berdasarkan templat, yang menghasilkan nol positif palsu dan menyediakan pemindaian yang cepat pada banyak host. Nuclei menawarkan pemindaian untuk berbagai protokol, termasuk TCP, DNS, HTTP, SSL, File, Whois, Websocket, Headless, dll. Dengan templating yang kuat dan fleksibel, Nuclei dapat digunakan untuk memodelkan semua jenis pemeriksaan keamanan.
Kami memiliki [repositori khusus](https://github.com/projectdiscovery/nuclei-templates) yang menampung berbagai jenis templat kerentanan yang disumbangkan oleh **lebih dari 300** peneliti dan teknisi keamanan.
## Cara Kerja
<h3 align="center">
<img src="static/nuclei-flow.jpg" alt="nuclei-flow" width="700px"></a>
</h3>
# Instalasi Nuclei
Nuclei membutuhkan **go1.18** agar dapat diinstall. Jalankan perintah berikut untuk menginstal versi terbaru -
```sh
go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest
```
**Metode [instalasi lain dapat ditemukan di sini](https://nuclei.projectdiscovery.io/nuclei/get-started/).**
<table>
<tr>
<td>
### Nuclei Templates
Nuclei memiliki dukungan untuk unduhan/pembaruan templat otomatis sebagai bawaan sejak versi [v2.5.2](https://github.com/projectdiscovery/nuclei/releases/tag/v2.5.2). Proyek [**Nuclei-Templates**](https://github.com/projectdiscovery/nuclei-templates) menyediakan daftar template siap pakai yang dibuat oleh komunitas yang terus diperbarui.
Anda dapat menggunakan flag `-update-templates` untuk memperbarui templat inti kapan saja; Anda juga dapat menulis pemeriksaan Anda sendiri untuk alur kerja individu dan untuk kebutuhan Anda sendiri dengan mengikuti [panduan pembuatan templat Nuclei](https://nuclei.projectdiscovery.io/templating-guide/).
Untuk referensi penulisan sintaks DSL berbasis YAML tersedia [di sini](SYNTAX-REFERENCE.md).
</td>
</tr>
</table>
### Cara Pakai
```sh
nuclei -h
```
Ini akan menampilkan bantuan untuk alat tersebut. Berikut adalah semua flag yang didukungnya.
```console
Nuclei is a fast, template based vulnerability scanner focusing
on extensive configurability, massive extensibility and ease of use.
Usage:
nuclei [flags]
Flags:
TARGET:
-u, -target string[] target URLs/hosts to scan
-l, -list string path to file containing a list of target URLs/hosts to scan (one per line)
-resume string Resume scan using resume.cfg (clustering will be disabled)
TEMPLATES:
-nt, -new-templates run only new templates added in latest nuclei-templates release
-ntv, -new-templates-version string[] run new templates added in specific version
-as, -automatic-scan automatic web scan using wappalyzer technology detection to tags mapping
-t, -templates string[] list of template or template directory to run (comma-separated, file)
-tu, -template-url string[] list of template urls to run (comma-separated, file)
-w, -workflows string[] list of workflow or workflow directory to run (comma-separated, file)
-wu, -workflow-url string[] list of workflow urls to run (comma-separated, file)
-validate validate the passed templates to nuclei
-nss, -no-strict-syntax Disable strict syntax check on templates
-tl list all available templates
FILTERING:
-a, -author string[] templates to run based on authors (comma-separated, file)
-tags string[] templates to run based on tags (comma-separated, file)
-etags, -exclude-tags string[] templates to exclude based on tags (comma-separated, file)
-itags, -include-tags string[] tags to be executed even if they are excluded either by default or configuration
-id, -template-id string[] templates to run based on template ids (comma-separated, file)
-eid, -exclude-id string[] templates to exclude based on template ids (comma-separated, file)
-it, -include-templates string[] templates to be executed even if they are excluded either by default or configuration
-et, -exclude-templates string[] template or template directory to exclude (comma-separated, file)
-em, -exclude-matchers string[] template matchers to exclude in result
-s, -severity value[] templates to run based on severity. Possible values: info, low, medium, high, critical, unknown
-es, -exclude-severity value[] templates to exclude based on severity. Possible values: info, low, medium, high, critical, unknown
-pt, -type value[] templates to run based on protocol type. Possible values: dns, file, http, headless, network, workflow, ssl, websocket, whois
-ept, -exclude-type value[] templates to exclude based on protocol type. Possible values: dns, file, http, headless, network, workflow, ssl, websocket, whois
-tc, -template-condition string[] templates to run based on expression condition
OUTPUT:
-o, -output string output file to write found issues/vulnerabilities
-sresp, -store-resp store all request/response passed through nuclei to output directory
-srd, -store-resp-dir string store all request/response passed through nuclei to custom directory (default "output")
-silent display findings only
-nc, -no-color disable output content coloring (ANSI escape codes)
-json write output in JSONL(ines) format
-irr, -include-rr include request/response pairs in the JSONL output (for findings only)
-nm, -no-meta disable printing result metadata in cli output
-nts, -no-timestamp disable printing timestamp in cli output
-rdb, -report-db string nuclei reporting database (always use this to persist report data)
-ms, -matcher-status display match failure status
-me, -markdown-export string directory to export results in markdown format
-se, -sarif-export string file to export results in SARIF format
CONFIGURATIONS:
-config string path to the nuclei configuration file
-fr, -follow-redirects enable following redirects for http templates
-fhr, -follow-host-redirects follow redirects on the same host
-mr, -max-redirects int max number of redirects to follow for http templates (default 10)
-dr, -disable-redirects disable redirects for http templates
-rc, -report-config string nuclei reporting module configuration file
-H, -header string[] custom header/cookie to include in all http request in header:value format (cli, file)
-V, -var value custom vars in key=value format
-r, -resolvers string file containing resolver list for nuclei
-sr, -system-resolvers use system DNS resolving as error fallback
-passive enable passive HTTP response processing mode
-ev, -env-vars enable environment variables to be used in template
-cc, -client-cert string client certificate file (PEM-encoded) used for authenticating against scanned hosts
-ck, -client-key string client key file (PEM-encoded) used for authenticating against scanned hosts
-ca, -client-ca string client certificate authority file (PEM-encoded) used for authenticating against scanned hosts
-sml, -show-match-line show match lines for file templates, works with extractors only
-ztls use ztls library with autofallback to standard one for tls13
-sni string tls sni hostname to use (default: input domain name)
-i, -interface string network interface to use for network scan
-sip, -source-ip string source ip address to use for network scan
-config-directory string Override the default config path ($home/.config)
-rsr, -response-size-read int max response size to read in bytes (default 10485760)
-rss, -response-size-save int max response size to save in bytes (default 10485760)
INTERACTSH:
-iserver, -interactsh-server string interactsh server url for self-hosted instance (default: oast.pro,oast.live,oast.site,oast.online,oast.fun,oast.me)
-itoken, -interactsh-token string authentication token for self-hosted interactsh server
-interactions-cache-size int number of requests to keep in the interactions cache (default 5000)
-interactions-eviction int number of seconds to wait before evicting requests from cache (default 60)
-interactions-poll-duration int number of seconds to wait before each interaction poll request (default 5)
-interactions-cooldown-period int extra time for interaction polling before exiting (default 5)
-ni, -no-interactsh disable interactsh server for OAST testing, exclude OAST based templates
RATE-LIMIT:
-rl, -rate-limit int maximum number of requests to send per second (default 150)
-rlm, -rate-limit-minute int maximum number of requests to send per minute
-bs, -bulk-size int maximum number of hosts to be analyzed in parallel per template (default 25)
-c, -concurrency int maximum number of templates to be executed in parallel (default 25)
-hbs, -headless-bulk-size int maximum number of headless hosts to be analyzed in parallel per template (default 10)
-headc, -headless-concurrency int maximum number of headless templates to be executed in parallel (default 10)
OPTIMIZATIONS:
-timeout int time to wait in seconds before timeout (default 10)
-retries int number of times to retry a failed request (default 1)
-ldp, -leave-default-ports leave default HTTP/HTTPS ports (eg. host:80,host:443
-mhe, -max-host-error int max errors for a host before skipping from scan (default 30)
-project use a project folder to avoid sending same request multiple times
-project-path string set a specific project path
-spm, -stop-at-first-path stop processing HTTP requests after the first match (may break template/workflow logic)
-stream stream mode - start elaborating without sorting the input
-irt, -input-read-timeout duration timeout on input read (default 3m0s)
-no-stdin Disable Stdin processing
HEADLESS:
-headless enable templates that require headless browser support (root user on linux will disable sandbox)
-page-timeout int seconds to wait for each page in headless mode (default 20)
-sb, -show-browser show the browser on the screen when running templates with headless mode
-sc, -system-chrome Use local installed chrome browser instead of nuclei installed
-lha, -list-headless-action list available headless actions
DEBUG:
-debug show all requests and responses
-dreq, -debug-req show all sent requests
-dresp, -debug-resp show all received responses
-p, -proxy string[] list of http/socks5 proxy to use (comma separated or file input)
-pi, -proxy-internal proxy all internal requests
-ldf, -list-dsl-function list all supported DSL function signatures
-tlog, -trace-log string file to write sent requests trace log
-elog, -error-log string file to write sent requests error log
-version show nuclei version
-hm, -hang-monitor enable nuclei hang monitoring
-v, -verbose show verbose output
-profile-mem string optional nuclei memory profile dump file
-vv display templates loaded for scan
-ep, -enable-pprof enable pprof debugging server
-tv, -templates-version shows the version of the installed nuclei-templates
-hc, -health-check run diagnostic check up
UPDATE:
-update update nuclei engine to the latest released version
-ut, -update-templates update nuclei-templates to latest released version
-ud, -update-directory string overwrite the default directory to install nuclei-templates
-duc, -disable-update-check disable automatic nuclei/templates update check
STATISTICS:
-stats display statistics about the running scan
-sj, -stats-json write statistics data to an output file in JSONL(ines) format
-si, -stats-interval int number of seconds to wait between showing a statistics update (default 5)
-m, -metrics expose nuclei metrics on a port
-mp, -metrics-port int port to expose nuclei metrics on (default 9092)
```
### Menjalankan Nuclei
Memindai domain target dengan templat Nuclei yang [dikurasi oleh komunitas](https://github.com/projectdiscovery/nuclei-templates).
```sh
nuclei -u https://example.com
```
Memindai URL target dengan templat Nuclei yang [dikurasi oleh komunitas](https://github.com/projectdiscovery/nuclei-templates).
```sh
nuclei -list urls.txt
```
Contoh dari berkas `urls.txt`:
```yaml
http://example.com
http://app.example.com
http://test.example.com
http://uat.example.com
```
**Contoh lebih detil tentang menjalankan Nuclei dapat ditemukan [di sini](https://nuclei.projectdiscovery.io/nuclei/get-started/#running-nuclei).**
# Untuk Teknisi Keamanan
Nuclei menawarkan sejumlah besar fitur yang berguna bagi teknisi keamanan untuk menyesuaikan alur kerja di organisasi mereka. Dengan berbagai kemampuan pemindaian (seperti misalnya DNS, HTTP, TCP), teknisi keamanan dapat dengan mudah membuat rangkaian pemeriksaan khusus mereka dengan Nuclei.
- Berbagai protokol yang didukung: TCP, DNS, HTTP, File, dll
- Mencapai langkah-langkah kerentanan yang kompleks dengan alur kerja dan [permintaan dinamis](https://blog.projectdiscovery.io/nuclei-unleashed-quickly-write-complex-exploits/).
- Mudah diintegrasikan ke dalam CI/CD, dirancang agar mudah diintegrasikan ke dalam siklus regresi untuk secara aktif memeriksa perbaikan dan kemunculan kerentanan kembali.
<h1 align="left">
<a href="https://nuclei.projectdiscovery.io/nuclei/get-started/"><img src="static/learn-more-button.png" width="170px" alt="Pelajari Selengkapnya"></a>
</h1>
<table>
<tr>
<td>
**Untuk Pemburu Celah Berhadiah:**
Nuclei memungkinkan Anda untuk menyesuaikan pendekatan pengujian Anda dengan rangkaian pemeriksaan Anda sendiri dan dengan mudah menjalankan program celah berhadiah Anda. Selain itu, Nuclei dapat dengan mudah diintegrasikan ke dalam alur kerja pemindaian berkelanjutan.
- Dirancang agar mudah diintegrasikan ke dalam alur kerja alat lainnya.
- Dapat memproses ribuan host hanya dalam beberapa menit.
- Mudah mengotomatiskan pendekatan pengujian khusus Anda dengan sintaks DSL berbasis YAML sederhana kami.
Silakan periksa proyek sumber terbuka kami yang lain yang mungkin cocok dengan alur kerja celah berhadiah Anda: [github.com/projectdiscovery](http://github.com/projectdiscovery), kami juga menyediakan [penyegaran data DNS di Chaos setiap hari](http://chaos.projectdiscovery.io).
</td>
</tr>
</table>
<table>
<tr>
<td>
**Untuk Penguji Penetrasi:**
Nuclei sangat meningkatkan cara Anda mendekati penilaian keamanan dengan menambah proses manual yang berulang. Para konsultan sudah mengonversi langkah penilaian manual mereka dengan Nuclei, ini memungkinkan mereka untuk menjalankan serangkaian pendekatan penilaian khusus mereka di ribuan host secara otomatis.
Para penguji penetrasi mendapatkan kekuatan penuh dari templat publik dan kemampuan penyesuaian kami untuk mempercepat proses penilaian mereka, dan khususnya dengan siklus regresi di mana Anda dapat dengan mudah memverifikasi perbaikannya.
- Mudah untuk membuat daftar pemeriksa kepatuhan Anda, sederet standar (mis., OWASP 10 Teratas).
- Dengan kemampuan seperti [fuzz](https://nuclei.projectdiscovery.io/templating-guide/#advance-fuzzing) dan [alur kerja](https://nuclei.projectdiscovery.io/templating-guide/#workflows), langkah manual yang rumit dan penilaian berulang dapat dengan mudah diotomatisasi dengan Nuclei.
- Mudah untuk menguji ulang perbaikan kerentanan hanya dengan menjalankan ulang template.
</td>
</tr>
</table>
# Untuk Pengembang dan Organisasi
Nuclei dibangun dengan kesederhanaan dalam pemikiran, dengan templat yang didukung komunitas oleh ratusan peneliti keamanan, memungkinkan Anda untuk tidak tertinggal dengan ancaman keamanan terbaru menggunakan pemindaian Nuclei terus menerus pada host. Ini dirancang agar mudah diintegrasikan ke dalam siklus pengujian regresi, untuk memverifikasi perbaikan dan menghilangkan kerentanan agar tidak terjadi di masa mendatang.
- **CI/CD:** Pengembang sudah memanfaatkan Nuclei dalam aliran CI/CD mereka, ini memungkinkan mereka untuk terus memantau lingkungan pementasan dan produksi mereka dengan templat yang disesuaikan.
- **Siklus Regresi Berkelanjutan:** Dengan Nuclei, Anda dapat membuat templat khusus pada setiap kerentanan baru yang teridentifikasi dan dimasukkan ke dalam mesin Nuclei untuk dihilangkan dalam siklus regresi berkelanjutan.
Kami memiliki [utas diskusi tentang ini](https://github.com/projectdiscovery/nuclei-templates/discussions/693), sudah ada beberapa program celah berhadiah yang memberikan insentif kepada peretas untuk menulis templat inti dengan setiap pengiriman, yang membantu mereka untuk menghilangkan kerentanan di semua aset mereka, serta untuk menghilangkan risiko masa depan yang muncul kembali pada lingkungan produksi. Jika Anda tertarik untuk menerapkannya di organisasi Anda, jangan ragu untuk [menghubungi kami](mailto:[email protected]). Kami akan dengan senang hati membantu Anda dalam proses memulai, atau Anda juga dapat memposting ke [utas diskusi](https://github.com/projectdiscovery/nuclei-templates/discussions/693) untuk bantuan apapun.
<h3 align="center">
<img src="static/regression-with-nuclei.jpg" alt="Siklus Regresi Berkelanjutan dengan Nuclei" width="1100px"></a>
</h3>
<h1 align="left">
<a href="https://github.com/projectdiscovery/nuclei-action"><img src="static/learn-more-button.png" width="170px" alt="Pelajari Selengkapnya"></a>
</h1>
### Sumber Daya
- [Menemukan bug dengan menggunakan Nuclei dengan PinkDraconian (Robbe Van Roey)](https://www.youtube.com/watch?v=ewP0xVPW-Pk) oleh **[@PinkDraconian](https://twitter.com/PinkDraconian)**
- [Nuclei: Mengemas Pukulan dengan Pemindaian Kerentanan](https://bishopfox.com/blog/nuclei-vulnerability-scan) oleh **Bishopfox**
- [Kerangka kemanjuran WAF](https://www.fastly.com/blog/the-waf-efficacy-framework-measuring-the-effectiveness-of-your-waf) oleh **Fastly**
- [Memindai Aplikasi Web Langsung dengan Nuclei di Aliran CI/CD](https://blog.escape.tech/devsecops-part-iii-scanning-live-web-applications/) oleh **[@TristanKalos](https://twitter.com/TristanKalos)**
- [Pemindaian Bertenaga Komunitas dengan Nuclei](https://blog.projectdiscovery.io/community-powered-scanning-with-nuclei/)
- [Nuclei Unleashed - Menulis eksploitasi kompleks dengan cepat](https://blog.projectdiscovery.io/nuclei-unleashed-quickly-write-complex-exploits/)
- [Nuclei - Fuzz semua hal](https://blog.projectdiscovery.io/nuclei-fuzz-all-the-things/)
- [Integrasi Nuclei + Interactsh untuk Mengotomatiskan Pengujian OOB](https://blog.projectdiscovery.io/nuclei-interactsh-integration/)
- [Mempersenjatai Alur Kerja Nuclei untuk Menghancurkan Semua Hal](https://medium.com/@dwisiswant0/weaponizes-nuclei-workflows-to-pwn-all-the-things-cd01223feb77) oleh **[@dwisiswant0](https://github.com/dwisiswant0)**
- [Bagaimana Memindai Terus-menerus dengan Nuclei?](https://medium.com/@dwisiswant0/how-to-scan-continuously-with-nuclei-fcb7e9d8b8b9) oleh **[@dwisiswant0](https://github.com/dwisiswant0)**
- [Retas dengan Otomatisasi !!!](https://dhiyaneshgeek.github.io/web/security/2021/07/19/hack-with-automation/) oleh **[@DhiyaneshGeek](https://github.com/DhiyaneshGeek)**
### Kredit
Terima kasih kepada semua komunitas yang luar biasa yang [berkontribusi untuk mengirimkan PR](https://github.com/projectdiscovery/nuclei/graphs/contributors). Lihat juga proyek sumber-terbuka serupa di bawah ini yang mungkin sesuai dengan alur kerja Anda:
[FFuF](https://github.com/ffuf/ffuf), [Qsfuzz](https://github.com/ameenmaali/qsfuzz), [Inception](https://github.com/proabiral/inception), [Snallygaster](https://github.com/hannob/snallygaster), [Gofingerprint](https://github.com/Static-Flow/gofingerprint), [Sn1per](https://github.com/1N3/Sn1per/tree/master/templates), [Google tsunami](https://github.com/google/tsunami-security-scanner), [Jaeles](https://github.com/jaeles-project/jaeles), [ChopChop](https://github.com/michelin/ChopChop)
### Lisensi
Nuclei didistribusikan di bawah [Lisensi MIT](https://github.com/projectdiscovery/nuclei/blob/master/LICENSE.md)
<h1 align="left">
<a href="https://discord.gg/projectdiscovery"><img src="static/Join-Discord.png" width="380" alt="Join Discord"></a> <a href="https://nuclei.projectdiscovery.io"><img src="static/check-nuclei-documentation.png" width="380" alt="Cek Dokumentasi Nuclei"></a>
</h1>
+345
View File
@@ -0,0 +1,345 @@
<h1 align="center">
<br>
<a href="https://nuclei.projectdiscovery.io"><img src="static/nuclei-logo.png" width="200px" alt="Nuclei"></a>
</h1>
<h4 align="center">DSL 기반의 간단한 YAML을 기초로한 빠른 맞춤형 취약점 스캐너</h4>
<p align="center">
<img src="https://img.shields.io/github/go-mod/go-version/projectdiscovery/nuclei?filename=v2%2Fgo.mod">
<a href="https://github.com/projectdiscovery/nuclei/releases"><img src="https://img.shields.io/github/downloads/projectdiscovery/nuclei/total">
<a href="https://github.com/projectdiscovery/nuclei/graphs/contributors"><img src="https://img.shields.io/github/contributors-anon/projectdiscovery/nuclei">
<a href="https://github.com/projectdiscovery/nuclei/releases/"><img src="https://img.shields.io/github/release/projectdiscovery/nuclei">
<a href="https://github.com/projectdiscovery/nuclei/issues"><img src="https://img.shields.io/github/issues-raw/projectdiscovery/nuclei">
<a href="https://github.com/projectdiscovery/nuclei/discussions"><img src="https://img.shields.io/github/discussions/projectdiscovery/nuclei">
<a href="https://discord.gg/projectdiscovery"><img src="https://img.shields.io/discord/695645237418131507.svg?logo=discord"></a>
<a href="https://twitter.com/pdnuclei"><img src="https://img.shields.io/twitter/follow/pdnuclei.svg?logo=twitter"></a>
</p>
<p align="center">
<a href="#작동-방식">작동 방식</a> •
<a href="#설치">설치</a> •
<a href="#보안-엔지니어를-위한">보안 엔지니어를 위한</a> •
<a href="#개발자를-위한">개발자를 위한</a> •
<a href="https://nuclei.projectdiscovery.io/nuclei/get-started/">문서</a> •
<a href="#credits">Credits</a> •
<a href="https://nuclei.projectdiscovery.io/faq/nuclei/">FAQs</a> •
<a href="https://discord.gg/projectdiscovery"> Discord 참가</a>
</p>
<p align="center">
<a href="https://github.com/projectdiscovery/nuclei/blob/master/README.md">English</a> •
<a href="https://github.com/projectdiscovery/nuclei/blob/master/README_CN.md">中文</a> •
<a href="https://github.com/projectdiscovery/nuclei/blob/master/README_KR.md">한국어</a>
</p>
---
Nuclei는 템플릿을 기반으로 대상 간에 요청을 보내기 위해 사용되며 긍정 오류(false positives)가 0이고 다수의 호스트에서 빠른 스캔을 제공합니다. Nuclei는 TCP, DNS, HTTP, SSL, File, Whois, Websocket, Headless 등을 포함한 다양한 프로토콜의 스캔을 제공합니다. 강력하고 유연한 템플릿을 통해 Nuclei는 모든 종류의 보안 검사를 모델링 할 수 있습니다.
**300명 이상의** 보안 연구원과 엔지니어가 제공한 다양한 유형의 취약점 템플릿을 보관하는 [전용 저장소](https://github.com/projectdiscovery/nuclei-templates)를 보유하고 있습니다.
## 작동 방식
<h3 align="center">
<img src="static/nuclei-flow.jpg" alt="nuclei-flow" width="700px"></a>
</h3>
# 설치
Nuclei를 성공적으로 설치하기 위해서 **go1.18**가 필요합니다. 다음 명령을 실행하여 최신 버전을 설치합니다.
```sh
go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest
```
**자세한 설치 방법은 [여기](https://nuclei.projectdiscovery.io/nuclei/get-started/)에서 찾을 수 있습니다.**
<table>
<tr>
<td>
### Nuclei 템플릿
Nuclei는 [v2.5.2](https://github.com/projectdiscovery/nuclei/releases/tag/v2.5.2)부터 자동 템플릿 다운로드/업데이트를 기본으로 지원합니다.
[**Nuclei-Templates**](https://github.com/projectdiscovery/nuclei-templates) 프로젝트는 지속적으로 업데이트되는 즉시 사용 가능한 템플릿 목록을 제공합니다.
`update-templates` 플래그를 사용하여 언제든 템플릿을 업데이트할 수 있습니다. Nuclei의 [템플릿 가이드](https://nuclei.projectdiscovery.io/templating-guide/)에 따라 개별 워크플로 및 요구 사항에 대한 자체 검사를 작성할 수 있습니다.
YAML DSL의 참조 구문은 [여기](SYNTAX-REFERENCE.md)에서 확인할 수 있습니다.
</td>
</tr>
</table>
### 사용 방법
```sh
nuclei -h
```
도구에 대한 도움말이 표시됩니다. 다음은 지원하는 모든 스위치들입니다.
```console
Nuclei is a fast, template based vulnerability scanner focusing
on extensive configurability, massive extensibility and ease of use.
Usage:
nuclei [flags]
Flags:
TARGET:
-u, -target string[] 스캔할 URLs/hosts 대상
-l, -list string 스캔할 URLs/hosts 대상 목록이 포함된 파일 경로(줄당 하나씩)
-resume string resume.cfg를 사용한 스캔 재개(클러스터링이 비활성화됨)
TEMPLATES:
-nt, -new-templates nuclei-templates에 가장 최근에 추가된 새 템플릿만 실행
-as, -automatic-scan 태그 매핑에 대한 wappalyzer 기술 탐지를 사용한 자동 웹 스캔
-t, -templates string[] 실행할 템플릿 또는 템플릿 디렉터리 목록(쉼표로 구분된 파일)
-tu, -template-url string[] 실행할 템플릿 URL 목록(쉼표로 구분된 파일)
-w, -workflows string[] 실행할 워크플로 또는 워크플로 디렉터리 목록(쉼표로 구분된 파일)
-wu, -workflow-url string[] 실행할 워크플로 URL 목록(쉼표로 구분된 파일)
-validate nuclei로 전달된 템플릿 검증
-tl 사용 가능한 모든 템플릿 목록
-td 템플릿 내용 표시
FILTERING:
-a, -author string[] 작성자를 기준으로 실행할 템플릿(쉼표로 구분된 파일)
-tags string[] 태그를 기준으로 실행할 템플릿(쉼표로 구분된 파일)
-etags, -exclude-tags string[] 태그를 기준으로 제외할 템플릿(쉼표로 구분된 파일)
-itags, -include-tags string[] 태그가 기본 또는 구성에 의해 제외된 경우에도 실행됨
-id, -template-id string[] 템플릿 ID들을 기준으로 실행할 템플릿(쉼표로 구분된 파일)
-eid, -exclude-id string[] 템플릿 ID들을 기준으로 제외할 템플릿(쉼표로 구분된 파일)
-it, -include-templates string[] 템플릿이 기본 또는 구성에 의해 제외된 경우에도 실행됨
-et, -exclude-templates string[] 제외할 템플릿 또는 템플릿 디렉터리(파일로 구분됨, 파일)
-s, -severity value[] 심각도를 기준으로 실행할 템플릿. 가능한 값: info, low, medium, high, critical, unknown
-es, -exclude-severity value[] 심각도를 기준으로 제외할 템플릿. 가능한 값: info, low, medium, high, critical, unknown
-pt, -type value[] 프로토콜 유형을 기준으로 실행할 템플릿. 가능한 값: dns, file, http, headless, network, workflow, ssl, websocket, whois
-ept, -exclude-type value[] 프로토콜 유형에 따라 제외할 템플릿. 가능한 값: dns, file, http, headless, network, workflow, ssl, websocket, whois
OUTPUT:
-o, -output string 발견된 문제/취약점를 쓰기 위한 출력 파일
-sresp, -store-resp nuclei을 통해 전달된 모든 요청/응답을 출력 디렉터리에 저장
-srd, -store-resp-dir string nuclei을 통해 전달된 모든 요청/응답을 사용자 지정 디렉터리에 저장(기본 "output")
-silent 결과만 표시
-nc, -no-color 출력 내용 색상 비활성화 (ANSI escape codes)
-json JSONL(ines) 형식으로 출력
-irr, -include-rr JSONL 출력에 요청/응답 쌍 포함(결과만)
-nm, -no-meta cli 출력에서 결과 메타데이터 출력 비활성화
-nts, -no-timestamp cli 출력에서 결과 타임스탬프 출력 비활성화
-rdb, -report-db string nuclei 보고 데이터베이스(보고서 데이터를 유지하려면 항상 이것을 사용)
-ms, -matcher-status 매치 실패 상태 표시
-me, -markdown-export string 마크다운 형식으로 결과를 내보낼 디렉터리
-se, -sarif-export string 결과를 SARIF 형식으로 내보내는 파일
CONFIGURATIONS:
-config string nuclei 환경 설정 파일 경로
-fr, -follow-redirects http 템플릿에 following redirects 활성화
-mr, -max-redirects int http 템플릿에 따라야 할 최대 리디렉션 수(기본값 10)
-dr, -disable-redirects http 템플릿에 대한 리디렉션 비활성화
-rc, -report-config string nuclei 보고 모듈 환경 설정 파일
-H, -header string[] 헤더:값 형식의 모든 http 요청에 포함할 사용자 정의 헤더/쿠키(cli, file)
-V, -var value 키=값 형식의 사용자 정의 변수
-r, -resolvers string nuclei에 대한 리졸버 목록이 포함된 파일
-sr, -system-resolvers 에러 fallback으로 시스템 DNS 리졸빙 사용
-passive 수동 HTTP 응답 처리 모드 활성화
-ev, -env-vars 템플릿에서 환경 변수를 사용할 수 있도록 설정
-cc, -client-cert string 스캔된 호스트에 인증하는 데 사용되는 클라이언트 인증서 파일(PEM-encoded)
-ck, -client-key string 스캔된 호스트에 인증하는 데 사용되는 클라이언트 key 파일(PEM-encoded)
-ca, -client-ca string 스캔된 호스트에 인증하는 데 사용되는 클라이언트 인증 기관 파일(PEM-encoded)
-sml, -show-match-line 파일 템플릿에 대해 일치하는 줄 표시, extractors에서만 작동
-ztls tls13의 표준으로 autofallback과 함께 ztls 라이브러리 사용
-sni string 사용할 tls sni 호스트 이름(기본: 입력한 도메인 이름)
INTERACTSH:
-iserver, -interactsh-server string 자체 호스팅된 인스턴스에 대한 interactsh 서버 URL (기본: oast.pro,oast.live,oast.site,oast.online,oast.fun,oast.me)
-itoken, -interactsh-token string 자체 호스팅된 interactsh 서버에 대한 인증 토큰
-interactions-cache-size int 상호 작용 캐시에 유지할 요청 수 (기본 5000)
-interactions-eviction int 캐시에서 요청을 제거하기 전에 대기할 시간(초) (기본 60)
-interactions-poll-duration int 각 상호 작용 폴링 요청 전에 대기할 시간(초) (기본 5)
-interactions-cooldown-period int 종료 전 상호작용 폴링을 위한 추가 시간 (기본 5)
-ni, -no-interactsh OAST 테스트를 위해 interactsh 서버 비활성화, OAST 기반 템플릿 제외
RATE-LIMIT:
-rl, -rate-limit int 초당 보낼 최대 요청 수 (기본 150)
-rlm, -rate-limit-minute int 분당 보낼 최대 요청 수
-bs, -bulk-size int 템플릿당 병렬로 분석할 최대 호스트 수 (기본 25)
-c, -concurrency int 병렬로 실행할 최대 템플릿 수 (기본 25)
-hbs, -headless-bulk-size int 템플릿당 병렬로 분석할 최대 headless 호스트 수 (기본 10)
-hc, -headless-concurrency int 병렬로 실행할 최대 headless 템플릿 수 (기본 10)
OPTIMIZATIONS:
-timeout int 타임아웃 전 대기 시간(초) (기본 5)
-retries int 실패한 요청을 재시도하는 횟수 (기본 1)
-ldp, -leave-default-ports leave default HTTP/HTTPS ports (eg. host:80,host:443
-mhe, -max-host-error int 스캔을 건너뛰기 전에 호스트에 대한 최대 오류 수 (기본 30)
-project 프로젝트 폴더를 사용하여 동일한 요청을 여러 번 보내지 않음
-project-path string 특정 프로젝트 경로 설정
-spm, -stop-at-first-match 첫 번째 일치 후 HTTP 요청 처리 중지 (template/workflow 로직이 중단될 수 있음)
-stream stream 모드 - 입력을 정렬하지 않고 elaborating 시작
HEADLESS:
-headless 헤드리스 브라우저 지원이 필요한 템플릿 활성화(root user on linux will disable sandbox)
-page-timeout int 헤드리스 모드에서 각 페이지를 기다리는 시간(초)(기본 20)
-sb, -show-browser 헤드리스 모드로 템플릿을 실행할 때 화면에 브라우저 표시
-sc, -system-chrome 설치된 nuclei 대신 로컬에 설치된 chrome 브라우저 사용
DEBUG:
-debug 모든 요청 및 응답 표시
-dreq, -debug-req 보낸 모든 요청 표시
-dresp, -debug-resp 받은 모든 응답 표시
-p, -proxy string[] 사용할 http/socks5 프록시 목록(쉼표로 구분하거나 파일 입력)
-pi, -proxy-internal 모든 내부 요청을 프록시
-tlog, -trace-log string 보낸 요청 추적 로그를 기록할 파일
-elog, -error-log string 보낸 요청 오류 로그를 기록할 파일
-version nuclei 버전 출력
-hm, -hang-monitor nuclei hang monitoring 활성화
-v, -verbose 상세 출력 표시
-vv 스캔을 위해 로드된 디스플레이 템플릿 표시
-ep, -enable-pprof pprof debugging server 활성화
-tv, -templates-version 설치된 nuclei-templates 버전 출력
UPDATE:
-update 최신 릴리스 버전으로 nuclei 엔진 업데이트
-ut, -update-templates 최신 릴리스 버전으로 nuclei-templates 엔진 업데이트
-ud, -update-directory string nuclei-templates를 설치할 기본 디렉터리를 덮어씀
-duc, -disable-update-check 자동 nuclei/templates 업데이트 확인 비활성화
STATISTICS:
-stats 실행 중인 스캔에 대한 통계 표시
-sj, -stats-json JSONL(ines) 형식으로 출력 파일에 통계 데이터 쓰기
-si, -stats-interval int 통계 업데이트를 표시할 때까지 대기하는 시간(초) (기본 5)
-m, -metrics expose nuclei metrics on a port
-mp, -metrics-port int port to expose nuclei metrics on (기본 9092)
```
### Nuclei 실행
[community-curated](https://github.com/projectdiscovery/nuclei-templates) nuclei 템플릿으로 대상 도메인을 스캔합니다.
```sh
nuclei -u https://example.com
```
[community-curated](https://github.com/projectdiscovery/nuclei-templates) nuclei 템플릿으로 대상 URL들을 스캔합니다.
```sh
nuclei -list urls.txt
```
`urls.txt`의 예시:
```yaml
http://example.com
http://app.example.com
http://test.example.com
http://uat.example.com
```
**nuclei를 실행하는 자세한 예는 [여기](https://nuclei.projectdiscovery.io/nuclei/get-started/#running-nuclei)에서 찾을 수 있습니다.**
# 보안 엔지니어를 위한
Nuclei는 보안 엔지니어가 조직에서 워크플로를 커스텀하는 데 도움이 되는 많은 기능을 제공합니다.
다양한 스캔 기능(DNS, HTTP, TCP 등)을 통해 보안 엔지니어는 Nuclei를 사용하여 맞춤형 검사 세트를 쉽게 만들 수 있습니다.
- 다양한 프로토콜 지원: TCP, DNS, HTTP, File, etc
- 워크플로 및 [동적 요청](https://blog.projectdiscovery.io/nuclei-unleashed-quickly-write-complex-exploits/)을 통한 복잡한 취약점 탐색 달성
- CI/CD에 쉽게 통합할 수 있으며, 회귀 주기에 쉽게 통합되어 취약점의 수정 및 재출현을 능동적으로 확인할 수 있도록 설계됨.
<h1 align="left">
<a href="https://nuclei.projectdiscovery.io/nuclei/get-started/"><img src="static/learn-more-button.png" width="170px" alt="Learn More"></a>
</h1>
<table>
<tr>
<td>
**Bug Bounty hunter들을 위해:**
Nuclei를 사용하면 자체 검사 모음으로 테스트 접근 방식을 사용자 정의하고 버그 바운티 프로그램에서 쉽게 실행할 수 있습니다.
또한 Nuclei는 모든 연속 스캔 워크플로에 쉽게 통합될 수 있습니다.
- 다른 도구 워크플로에 쉽게 통합되도록 설계됨.
- 몇 분 안에 수천 개의 호스트를 처리할 수 있음.
- 간단한 YAML DSL로 사용자 지정 테스트 접근 방식을 쉽게 자동화할 수 있음.
버그 바운티 워크플로에 맞는 다른 오픈 소스 프로젝트를 확인할 수 있습니다.: [github.com/projectdiscovery](http://github.com/projectdiscovery), 또한, 우리는 매일 [Chaos에서 DNS 데이터를 갱신해 호스팅합니다.](http://chaos.projectdiscovery.io).
</td>
</tr>
</table>
<table>
<tr>
<td>
**침투 테스터들을 위해:**
Nuclei는 수동적이고 반복적인 프로세스를 보강하여 보안 평가에 접근하는 방식을 크게 개선합니다.
컨설턴트들은 이미 Nuclei를 사용해 수동 평가 단계를 전환하고 있으며 이를 통해 수천 개의 호스트에서 자동화된 방식으로 맞춤형 평가 접근 방식을 실행할 수 있습니다.
침투 테스터는 평가 프로세스, 특히 수정 사항을 쉽게 확인할 수 있는 회귀 주기를 통해 공개 템플릿 및 사용자 지정 기능을 최대한 활용할 수 있습니다.
- 규정 준수, 표준 제품군(예: OWASP Top 10) 체크리스트 쉽게 생성.
- Nuclei의 [fuzz](https://nuclei.projectdiscovery.io/templating-guide/#advance-fuzzing) 및 [workflows](https://nuclei.projectdiscovery.io/templating-guide/#workflows) 같은 기능으로 복잡한 수동 단계와 반복 평가를 쉽게 자동화할 수 있음.
- 템플릿 재실행으로 취약점 수정 재테스트 용이.
</td>
</tr>
</table>
# 개발자를 위한
Nuclei는 단순성을 염두에 두고 구축되었으며 수백 명의 보안 연구원들이 지원하는 커뮤니티 템플릿을 사용하여 호스트에서 지속적인 Nuclei 스캔을 사용하여 최신 보안 위협에 대한 업데이트를 유지할 수 있습니다.
수정 사항을 검증하고 향후 발생하는 취약점을 제거하기 위해 회귀 테스트 주기에 쉽게 통합되도록 설계되었습니다.
- **CI/CD:** 엔지니어들은 이미 CI/CD 파이프라인 내에서 Nuclei를 활용하고 있으며 이를 통해 맞춤형 템플릿으로 스테이징 및 프로덕션 환경을 지속적으로 모니터링할 수 있습니다.
- **Continuous Regression Cycle:** Nuclei를 사용하면 새로 식별된 모든 취약점에 대한 사용자 지정 템플릿을 만들고 Nuclei 엔진에 넣어 지속적인 회귀 주기에서 제거할 수 있습니다.
[이 문제에 대한 논의 스레드](https://github.com/projectdiscovery/nuclei-templates/discussions/693)가 있으며, Nuclei 템플릿을 작성해 제출할 때마다 해커에게 인센티브를 제공하는 버그 바운티 프로그램들이 존재합니다. 이 프로그램은 모든 자산에서 취약점을 제거할 뿐만 아니라 미래에 프로덕션에 다시 등장할 위험을 제거할 수 있도록 도와줍니다.
이것을 당신의 조직에서 구현하는 것에 관심이 있다면 언제든지 [저희에게 연락하십시오](mailto:[email protected]).
시작하는 과정에서 기꺼이 도와드리거나 [도움이 필요한 경우 논의 스레드](https://github.com/projectdiscovery/nuclei-templates/discussions/693)에 게시할 수도 있습니다.
<h3 align="center">
<img src="static/regression-with-nuclei.jpg" alt="regression-cycle-with-nuclei" width="1100px"></a>
</h3>
<h1 align="left">
<a href="https://github.com/projectdiscovery/nuclei-action"><img src="static/learn-more-button.png" width="170px" alt="Learn More"></a>
</h1>
### Resources
- [Finding bugs with Nuclei with PinkDraconian (Robbe Van Roey)](https://www.youtube.com/watch?v=ewP0xVPW-Pk) by **[@PinkDraconian](https://twitter.com/PinkDraconian)**
- [Nuclei: Packing a Punch with Vulnerability Scanning](https://bishopfox.com/blog/nuclei-vulnerability-scan) by **Bishopfox**
- [The WAF efficacy framework](https://www.fastly.com/blog/the-waf-efficacy-framework-measuring-the-effectiveness-of-your-waf) by **Fastly**
- [Scanning Live Web Applications with Nuclei in CI/CD Pipeline](https://blog.escape.tech/devsecops-part-iii-scanning-live-web-applications/) by **[@TristanKalos](https://twitter.com/TristanKalos)**
- [Community Powered Scanning with Nuclei](https://blog.projectdiscovery.io/community-powered-scanning-with-nuclei/)
- [Nuclei Unleashed - Quickly write complex exploits](https://blog.projectdiscovery.io/nuclei-unleashed-quickly-write-complex-exploits/)
- [Nuclei - Fuzz all the things](https://blog.projectdiscovery.io/nuclei-fuzz-all-the-things/)
- [Nuclei + Interactsh Integration for Automating OOB Testing](https://blog.projectdiscovery.io/nuclei-interactsh-integration/)
- [Weaponizes nuclei Workflows to Pwn All the Things](https://medium.com/@dwisiswant0/weaponizes-nuclei-workflows-to-pwn-all-the-things-cd01223feb77) by **[@dwisiswant0](https://github.com/dwisiswant0)**
- [How to Scan Continuously with Nuclei?](https://medium.com/@dwisiswant0/how-to-scan-continuously-with-nuclei-fcb7e9d8b8b9) by **[@dwisiswant0](https://github.com/dwisiswant0)**
- [Hack with Automation !!!](https://dhiyaneshgeek.github.io/web/security/2021/07/19/hack-with-automation/) by **[@DhiyaneshGeek](https://github.com/DhiyaneshGeek)**
### Credits
Thanks to all the amazing community [contributors for sending PRs](https://github.com/projectdiscovery/nuclei/graphs/contributors). Do also check out the below similar open-source projects that may fit in your workflow:
[FFuF](https://github.com/ffuf/ffuf), [Qsfuzz](https://github.com/ameenmaali/qsfuzz), [Inception](https://github.com/proabiral/inception), [Snallygaster](https://github.com/hannob/snallygaster), [Gofingerprint](https://github.com/Static-Flow/gofingerprint), [Sn1per](https://github.com/1N3/Sn1per/tree/master/templates), [Google tsunami](https://github.com/google/tsunami-security-scanner), [Jaeles](https://github.com/jaeles-project/jaeles), [ChopChop](https://github.com/michelin/ChopChop)
### License
Nuclei is distributed under [MIT License](https://github.com/projectdiscovery/nuclei/blob/master/LICENSE.md)
<h1 align="left">
<a href="https://discord.gg/projectdiscovery"><img src="static/Join-Discord.png" width="380" alt="Join Discord"></a> <a href="https://nuclei.projectdiscovery.io"><img src="static/check-nuclei-documentation.png" width="380" alt="Check Nuclei Documentation"></a>
</h1>
-5
View File
@@ -1,5 +0,0 @@
# Security Policy
## Reporting a Vulnerability
DO NOT CREATE AN ISSUE to report a security problem. Instead, please send an email to security@projectdiscovery.io, and we will acknowledge it within 3 working days.
+423 -8
View File
@@ -132,6 +132,7 @@ dns:
regex:
- ec2-[-\d]+\.compute[-\d]*\.amazonaws\.com
- ec2-[-\d]+\.[\w\d\-]+\.compute[-\d]*\.amazonaws\.com
dsl: []
name: '{{FQDN}}'
type: CNAME
class: inet
@@ -164,8 +165,11 @@ file:
- type: regex
regex:
- amzn\.mws\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
dsl: []
extensions:
- all
archive: false
mimetype: false
```
@@ -315,6 +319,19 @@ Valid values:
<hr />
<div class="dd">
<code>variables</code> <i><a href="#variablesvariable">variables.Variable</a></i>
</div>
<div class="dt">
Variables contains any variables for the current request.
</div>
<hr />
@@ -489,7 +506,7 @@ Severity of the template.
<div class="dd">
<code>metadata</code> <i>map[string]string</i>
<code>metadata</code> <i>map[string]interface{}</i>
</div>
<div class="dt">
@@ -572,6 +589,8 @@ Appears in:
- <code><a href="#workflowsworkflowtemplate">workflows.WorkflowTemplate</a>.tags</code>
- <code><a href="#workflowsmatcher">workflows.Matcher</a>.name</code>
```yaml
<username>
@@ -633,6 +652,8 @@ Enum Values:
- <code>high</code>
- <code>critical</code>
- <code>unknown</code>
</div>
<hr />
@@ -1194,6 +1215,19 @@ max-size: 2048
```
</div>
<hr />
<div class="dd">
<code>fuzzing</code> <i>[]<a href="#fuzzrule">fuzz.Rule</a></i>
</div>
<div class="dt">
Fuzzing describes schema to fuzz http requests
</div>
<hr />
@@ -1232,6 +1266,20 @@ all requests defined in raw section.
<div class="dd">
<code>read-all</code> <i>bool</i>
</div>
<div class="dt">
Enables force reading of the entire raw unsafe request body ignoring
any specified content length headers.
</div>
<hr />
<div class="dd">
<code>redirects</code> <i>bool</i>
</div>
@@ -1247,6 +1295,21 @@ This can be used in conjunction with `max-redirects` to control the HTTP request
<div class="dd">
<code>host-redirects</code> <i>bool</i>
</div>
<div class="dt">
Redirects specifies whether only redirects to the same host should be followed by the HTTP Client.
This can be used in conjunction with `max-redirects` to control the HTTP request redirects.
</div>
<hr />
<div class="dd">
<code>pipeline</code> <i>bool</i>
</div>
@@ -1345,6 +1408,32 @@ IterateAll iterates all the values extracted from internal extractors
<hr />
<div class="dd">
<code>digest-username</code> <i>string</i>
</div>
<div class="dt">
DigestAuthUsername specifies the username for digest authentication
</div>
<hr />
<div class="dd">
<code>digest-password</code> <i>string</i>
</div>
<div class="dt">
DigestAuthPassword specifies the password for digest authentication
</div>
<hr />
@@ -2094,6 +2183,8 @@ Enum Values:
- <code>xpath</code>
- <code>json</code>
- <code>dsl</code>
</div>
<hr />
@@ -2204,6 +2295,197 @@ Enum Values:
## fuzz.Rule
Rule is a single rule which describes how to fuzz the request
Appears in:
- <code><a href="#httprequest">http.Request</a>.fuzzing</code>
<hr />
<div class="dd">
<code>type</code> <i>string</i>
</div>
<div class="dt">
Type is the type of fuzzing rule to perform.
replace replaces the values entirely. prefix prefixes the value. postfix postfixes the value
and infix places between the values.
Valid values:
- <code>replace</code>
- <code>prefix</code>
- <code>postfix</code>
- <code>infix</code>
</div>
<hr />
<div class="dd">
<code>part</code> <i>string</i>
</div>
<div class="dt">
Part is the part of request to fuzz.
query fuzzes the query part of url. More parts will be added later.
Valid values:
- <code>query</code>
</div>
<hr />
<div class="dd">
<code>mode</code> <i>string</i>
</div>
<div class="dt">
Mode is the mode of fuzzing to perform.
single fuzzes one value at a time. multiple fuzzes all values at same time.
Valid values:
- <code>single</code>
- <code>multiple</code>
</div>
<hr />
<div class="dd">
<code>keys</code> <i>[]string</i>
</div>
<div class="dt">
Keys is the optional list of key named parameters to fuzz.
Examples:
```yaml
# Examples of keys
keys:
- url
- file
- host
```
</div>
<hr />
<div class="dd">
<code>keys-regex</code> <i>[]string</i>
</div>
<div class="dt">
KeysRegex is the optional list of regex key parameters to fuzz.
Examples:
```yaml
# Examples of key regex
keys-regex:
- url.*
```
</div>
<hr />
<div class="dd">
<code>values</code> <i>[]string</i>
</div>
<div class="dt">
Values is the optional list of regex value parameters to fuzz.
Examples:
```yaml
# Examples of value regex
values:
- https?://.*
```
</div>
<hr />
<div class="dd">
<code>fuzz</code> <i>[]string</i>
</div>
<div class="dt">
Fuzz is the list of payloads to perform substitutions with.
Examples:
```yaml
# Examples of fuzz
fuzz:
- '{{ssrf}}'
- '{{interactsh-url}}'
- example-value
```
</div>
<hr />
## SignatureTypeHolder
SignatureTypeHolder is used to hold internal type of the signature
@@ -2233,6 +2515,7 @@ extractors:
regex:
- ec2-[-\d]+\.compute[-\d]*\.amazonaws\.com
- ec2-[-\d]+\.[\w\d\-]+\.compute[-\d]*\.amazonaws\.com
dsl: []
name: '{{FQDN}}'
type: CNAME
class: inet
@@ -2552,8 +2835,11 @@ extractors:
- type: regex
regex:
- amzn\.mws\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
dsl: []
extensions:
- all
archive: false
mimetype: false
```
Part Definitions:
@@ -2628,7 +2914,7 @@ Valid values:
</div>
<div class="dt">
Extensions is the list of extensions to perform matching on.
Extensions is the list of extensions or mime types to perform matching on.
@@ -2654,7 +2940,7 @@ extensions:
</div>
<div class="dt">
DenyList is the list of file, directories or extensions to deny during matching.
DenyList is the list of file, directories, mime types or extensions to deny during matching.
By default, it contains some non-interesting extensions that are hardcoded
in nuclei.
@@ -2691,15 +2977,16 @@ ID is the optional id of the request
<div class="dd">
<code>max-size</code> <i>int</i>
<code>max-size</code> <i>string</i>
</div>
<div class="dt">
MaxSize is the maximum size of the file to run request on.
By default, nuclei will process 5 MB files and not go more than that.
By default, nuclei will process 1 GB of content and not go more than that.
It can be set to much lower or higher depending on use.
If set to "no" then all content will be processed
@@ -2707,7 +2994,7 @@ Examples:
```yaml
max-size: 2048
max-size: 5Mb
```
@@ -3204,6 +3491,34 @@ Steps is the list of actions to run for headless request
<div class="dd">
<code>user_agent</code> <i><a href="#useragentuseragentholder">userAgent.UserAgentHolder</a></i>
</div>
<div class="dt">
descriptions: |
User-Agent is the type of user-agent to use for the request.
</div>
<hr />
<div class="dd">
<code>custom_user_agent</code> <i>string</i>
</div>
<div class="dt">
description: |
If UserAgent is set to custom, customUserAgent is the custom user-agent to use for the request.
</div>
<hr />
<div class="dd">
<code>matchers</code> <i>[]<a href="#matchersmatcher">matchers.Matcher</a></i>
</div>
@@ -3416,6 +3731,48 @@ Enum Values:
## userAgent.UserAgentHolder
UserAgentHolder holds a UserAgent type. Required for un/marshalling purposes
Appears in:
- <code><a href="#headlessrequest">headless.Request</a>.user_agent</code>
<hr />
<div class="dd">
<code></code> <i>UserAgent</i>
</div>
<div class="dt">
Enum Values:
- <code>random</code>
- <code>off</code>
- <code>default</code>
- <code>custom</code>
</div>
<hr />
## ssl.Request
Request is a request for the SSL protocol
@@ -3567,6 +3924,28 @@ Client Cipher Suites - auto if not specified.
<hr />
<div class="dd">
<code>scan_mode</code> <i>string</i>
</div>
<div class="dt">
Tls Scan Mode - auto if not specified
Valid values:
- <code>ctls</code>
- <code>ztls</code>
- <code>auto</code>
</div>
<hr />
@@ -3994,12 +4373,12 @@ Appears in:
<div class="dd">
<code>name</code> <i>string</i>
<code>name</code> <i><a href="#stringslicestringslice">stringslice.StringSlice</a></i>
</div>
<div class="dt">
Name is the name of the item to match.
Name is the name of the items to match.
</div>
@@ -4007,6 +4386,27 @@ Name is the name of the item to match.
<div class="dd">
<code>condition</code> <i>string</i>
</div>
<div class="dt">
Condition is the optional condition between names. By default,
the condition is assumed to be OR.
Valid values:
- <code>and</code>
- <code>or</code>
</div>
<hr />
<div class="dd">
<code>subtemplates</code> <i>[]<a href="#workflowsworkflowtemplate">workflows.WorkflowTemplate</a></i>
</div>
@@ -4035,3 +4435,18 @@ Appears in:
## variables.Variable
Variable is a key-value pair of strings that can be used
throughout template.
Appears in:
- <code><a href="#template">Template</a>.variables</code>
+6
View File
@@ -0,0 +1,6 @@
apiVersion: v2
name: nuclei
description: A Helm chart for Nuclei
type: application
version: 0.1.0
appVersion: "2.5.7"
+22
View File
@@ -0,0 +1,22 @@
1. Get the application URL by running these commands:
{{- if .Values.interactsh.ingress.enabled }}
{{- range $host := .Values.interactsh.ingress.hosts }}
{{- range .paths }}
http{{ if $.Values.interactsh.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }}
{{- end }}
{{- end }}
{{- else if contains "NodePort" .Values.interactsh.service.type }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "nuclei.fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT
{{- else if contains "LoadBalancer" .Values.interactsh.service.type }}
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "nuclei.fullname" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "nuclei.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
echo http://$SERVICE_IP:{{ .Values.interactsh.service.port }}
{{- else if contains "ClusterIP" .Values.interactsh.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "nuclei.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}")
echo "Visit http://127.0.0.1:8080 to use your application"
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT
{{- end }}
+62
View File
@@ -0,0 +1,62 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "nuclei.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "nuclei.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "nuclei.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Common labels
*/}}
{{- define "nuclei.labels" -}}
helm.sh/chart: {{ include "nuclei.chart" . }}
{{ include "nuclei.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{/*
Selector labels
*/}}
{{- define "nuclei.selectorLabels" -}}
app.kubernetes.io/name: {{ include "nuclei.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{/*
Create the name of the service account to use
*/}}
{{- define "nuclei.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "nuclei.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}
+28
View File
@@ -0,0 +1,28 @@
{{- if .Values.autoscaling.enabled }}
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "nuclei.fullname" . }}
labels:
{{- include "nuclei.labels" . | nindent 4 }}
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: {{ include "nuclei.fullname" . }}-interactsh
minReplicas: {{ .Values.autoscaling.minReplicas }}
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
metrics:
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}
+62
View File
@@ -0,0 +1,62 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "nuclei.fullname" . }}-interactsh
labels:
{{- include "nuclei.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
selector:
matchLabels:
{{- include "nuclei.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "nuclei.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "nuclei.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: {{ .Chart.Name }}-interactsh
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.interactsh.image.repository }}:{{ .Values.interactsh.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.interactsh.image.pullPolicy }}
command: ["interactsh-server", "-skip-acme", "-d", "{{ .Values.interactsh.service.name }}"]
ports:
- name: http
containerPort: 80
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
+61
View File
@@ -0,0 +1,61 @@
{{- if .Values.interactsh.ingress.enabled -}}
{{- $fullName := include "nuclei.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- if and .Values.interactsh.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
{{- if not (hasKey .Values.interactsh.ingress.annotations "kubernetes.io/ingress.class") }}
{{- $_ := set .Values.interactsh.ingress.annotations "kubernetes.io/ingress.class" .Values.interactsh.ingress.className}}
{{- end }}
{{- end }}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
apiVersion: extensions/v1beta1
{{- end }}
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
{{- include "nuclei.labels" . | nindent 4 }}
{{- with .Values.interactsh.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if and .Values.interactsh.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
ingressClassName: {{ .Values.interactsh.ingress.className }}
{{- end }}
{{- if .Values.interactsh.ingress.tls }}
tls:
{{- range .Values.interactsh.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
{{- range .Values.interactsh.ingress.hosts }}
- host: {{ .host | quote }}
http:
paths:
{{- range .paths }}
- path: {{ .path }}
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
pathType: {{ .pathType }}
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
service:
name: {{ $fullName }}
port:
number: {{ $svcPort }}
{{- else }}
serviceName: {{ $fullName }}
servicePort: {{ $svcPort }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
+15
View File
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.interactsh.service.name }}
labels:
{{- include "nuclei.labels" . | nindent 4 }}
spec:
type: {{ .Values.interactsh.service.type }}
ports:
- port: {{ .Values.interactsh.service.port }}
targetPort: http
protocol: TCP
name: http
selector:
{{- include "nuclei.selectorLabels" . | nindent 4 }}
+17
View File
@@ -0,0 +1,17 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: nuclei-conf
data:
nuclei.conf: |-
{{ .Values.nuclei.config | indent 4 }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: nuclei-target-list
data:
target-list.txt: |-
{{ .Values.nuclei.target_list | indent 4 }}
+32
View File
@@ -0,0 +1,32 @@
{{- if .Values.nuclei.enabled -}}
apiVersion: batch/v1
kind: CronJob
metadata:
name: {{ .Chart.Name }}-nuclei-cron
spec:
schedule: "{{ .Values.nuclei.cron }}"
jobTemplate:
spec:
template:
spec:
containers:
- name: {{ .Chart.Name }}-nuclei-cron
image: "{{ .Values.nuclei.image.repository }}:{{ .Values.nuclei.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.nuclei.image.pullPolicy }}
command: [ "nuclei", "-config", "/config/nuclei.conf" ]
volumeMounts:
- name: nuclei-conf
mountPath: /config/nuclei.conf
subPath: nuclei.conf
- name: nuclei-target-list
mountPath: /config/target-list.txt
subPath: target-list.txt
restartPolicy: OnFailure
volumes:
- name: nuclei-conf
configMap:
name: nuclei-conf
- name: nuclei-target-list
configMap:
name: nuclei-target-list
{{- end }}
+12
View File
@@ -0,0 +1,12 @@
{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "nuclei.serviceAccountName" . }}
labels:
{{- include "nuclei.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
+121
View File
@@ -0,0 +1,121 @@
# Default values for nuclei.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
replicaCount: 1
nuclei:
enabled: true
image:
repository: docker.io/projectdiscovery/nuclei
pullPolicy: IfNotPresent
tag: "v2.7.5"
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
cron: "0 0 * * Sun"
config: |
interactsh-server: http://nuclei-interactsh # should match the name of interactsh.service.name
list: /config/target-list.txt
# Headers to include with all HTTP request
#header:
# - 'X-BugBounty-Hacker: h1/geekboy'
# Directory based template execution
#templates:
# - cves/
# - vulnerabilities/
# - misconfiguration/
# Tags based template execution
#tags: exposures,cve
# Template Filters
#tags: exposures,cve
#author: geeknik,pikpikcu,dhiyaneshdk
#severity: critical,high,medium
# Template Allowlist
#include-tags: dos,fuzz # Tag based inclusion (allows overwriting nuclei-ignore list)
#include-templates: # Template based inclusion (allows overwriting nuclei-ignore list)
#- vulnerabilities/xxx
#- misconfiguration/xxxx
# Template Denylist
#exclude-tags: info # Tag based exclusion
#exclude-templates: # Template based exclusion
#- vulnerabilities/xxx
#- misconfiguration/xxxx
# Rate Limit configuration
#rate-limit: 500
#bulk-size: 50
#concurrency: 50
target_list: |
https://10.50.50.2
interactsh:
image:
repository: docker.io/projectdiscovery/interactsh-server
pullPolicy: IfNotPresent
tag: "v1.0.6"
service:
name: "nuclei-interactsh"
type: ClusterIP
port: 80
ingress:
enabled: false
className: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths:
- path: /
pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
serviceAccount:
create: true
annotations: {}
name: ""
podAnnotations: {}
podSecurityContext: {}
securityContext: {}
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
nodeSelector: {}
tolerations: []
affinity: {}
+17
View File
@@ -0,0 +1,17 @@
id: go-integration-test
info:
name: Basic Go Integration Test
author: pdteam
severity: info
requests:
- method: GET
path:
- "{{BaseURL}}"
headers:
test: nuclei
matchers:
- type: word
words:
- "This is test headers matcher text"
@@ -0,0 +1,22 @@
id: cname-fingerprint
info:
name: CNAME Fingerprint
author: pdteam
severity: info
tags: dns,cname
dns:
- name: "{{FQDN}}"
type: NS
matchers:
- type: word
words:
- "IN\tCNAME"
extractors:
- type: regex
group: 1
regex:
- "IN\tCNAME\t(.+)"
+20
View File
@@ -0,0 +1,20 @@
id: variables-example
info:
name: Variables Example
author: pdteam
severity: info
variables:
a1: "IN"
dns:
- name: "{{FQDN}}"
type: A
class: inet
recursion: true
retries: 3
matchers:
- type: word
words:
- "{{a1}}"
+2
View File
@@ -0,0 +1,2 @@
AAA
BBB
+2
View File
@@ -0,0 +1,2 @@
CCC
DDD
+2
View File
@@ -0,0 +1,2 @@
11 EE 11
11 FF 11
+16
View File
@@ -0,0 +1,16 @@
id: file-extract
info:
name: File with Extractor
author: pdteam
severity: info
tags: file
file:
- extensions:
- all
extractors:
- type: regex
regex:
- "(?m)11\\s(EE|FF)\\s11"
@@ -0,0 +1,20 @@
id: file-matcher-with-or
info:
name: File Matcher With AND
author: pdteam
severity: info
tags: file
file:
- extensions:
- all
matchers-condition: and
matchers:
- type: word
words:
- "CCC"
- type: word
words:
- "DDD"
@@ -0,0 +1,19 @@
id: file-matcher-with-or
info:
name: File Matcher With OR
author: pdteam
severity: info
tags: file
file:
- extensions:
- all
matchers:
- type: word
words:
- "AA"
- type: word
words:
- "BB"
@@ -17,7 +17,7 @@ headless:
name: extract
args:
code: |
'\n' + [...new Set(Array.from(document.querySelectorAll('[src], [href], [url], [action]')).map(i => i.src || i.href || i.url || i.action))].join('\r\n') + '\n'
() => '\n' + [...new Set(Array.from(document.querySelectorAll('[src], [href], [url], [action]')).map(i => i.src || i.href || i.url || i.action))].join('\r\n') + '\n'
matchers:
- type: word
+20
View File
@@ -0,0 +1,20 @@
id: variables-example
info:
name: Variables Example
author: pdteam
severity: info
variables:
a1: "{{base64('hello')}}"
headless:
- steps:
- args:
url: "{{BaseURL}}"
action: navigate
- action: waitload
matchers:
- type: word
words:
- "{{a1}}"
@@ -0,0 +1,18 @@
id: annotation-timeout
info:
name: Basic Annotation Timeout
author: pdteam
severity: info
requests:
- raw:
- |
@timeout: 5s
GET / HTTP/1.1
Host: {{Hostname}}
matchers:
- type: word
words:
- "This is test matcher text"
@@ -0,0 +1,23 @@
id: custom-attack-type
info:
name: Custom Attack Type
author: pdteam
severity: info
requests:
- method: GET
path:
- "{{BaseURL}}/?a={{test}}&b={{values}}"
payloads:
test:
- hello
- another
values:
- data
- hacking
attack: pitchfork
matchers:
- type: word
words:
- "This is test custom payload"
@@ -0,0 +1,17 @@
id: basic-disable-redirects
info:
name: Basic GET Redirects Request
author: pdteam
severity: info
requests:
- method: GET
path:
- "{{BaseURL}}"
redirects: true
max-redirects: 2
matchers:
- type: word
words:
- "This is test disable redirects matcher text"
+83 -51
View File
@@ -7,6 +7,7 @@ info:
requests:
- raw:
# Note for the integration test: dsl expression should not contain commas
- |
GET / HTTP/1.1
Host: {{Hostname}}
@@ -14,59 +15,90 @@ requests:
02: {{base64(1234)}}
03: {{base64_decode("SGVsbG8=")}}
04: {{base64_py("Hello")}}
05: {{concat("Hello", "world")}}
06: {{contains("Hello", "lo")}}
07: {{generate_java_gadget("commons-collections3.1", "wget http://{{interactsh-url}}", "base64")}}
08: {{gzip("Hello")}}
09: {{hex_decode("6161")}}
10: {{hex_encode("aa")}}
11: {{html_escape("<body>test</body>")}}
12: {{html_unescape("&lt;body&gt;test&lt;/body&gt;")}}
13: {{len("Hello")}}
14: {{len(5555)}}
15: {{md5("Hello")}}
16: {{md5(1234)}}
17: {{mmh3("Hello")}}
18: {{print_debug(1+2, "Hello")}}
19: {{rand_base(5, "abc")}}
20: {{rand_base(5, "")}}
21: {{rand_base(5)}}
22: {{rand_char("abc")}}
23: {{rand_char("")}}
24: {{rand_char()}}
25: {{rand_int(1, 10)}}
26: {{rand_int(10)}}
27: {{rand_int()}}
28: {{rand_text_alpha(10, "abc")}}
29: {{rand_text_alpha(10, "")}}
30: {{rand_text_alpha(10)}}
31: {{rand_text_alphanumeric(10, "ab12")}}
32: {{rand_text_alphanumeric(10)}}
33: {{rand_text_numeric(10, 123)}}
34: {{rand_text_numeric(10)}}
35: {{regex("H([a-z]+)o", "Hello")}}
36: {{remove_bad_chars("abcd", "bc")}}
37: {{repeat("a", 5)}}
38: {{replace("Hello", "He", "Ha")}}
39: {{replace_regex("He123llo", "(\\d+)", "")}}
40: {{reverse("abc")}}
41: {{sha1("Hello")}}
42: {{sha256("Hello")}}
43: {{to_lower("HELLO")}}
44: {{to_upper("hello")}}
45: {{trim("aaaHelloddd", "ad")}}
46: {{trim_left("aaaHelloddd", "ad")}}
47: {{trim_prefix("aaHelloaa", "aa")}}
48: {{trim_right("aaaHelloddd", "ad")}}
49: {{trim_space(" Hello ")}}
50: {{trim_suffix("aaHelloaa", "aa")}}
51: {{unix_time(10)}}
52: {{url_decode("https:%2F%2Fprojectdiscovery.io%3Ftest=1")}}
53: {{url_encode("https://projectdiscovery.io/test?a=1")}}
54: {{wait_for(1)}}
05: {{compare_versions('v1.0.0', '>v0.0.1', '<v1.0.1')}}
06: {{concat("Hello", "world")}}
07: {{contains("Hello", "lo")}}
08: {{contains_all("Hello everyone", "lo", "every")}}
09: {{contains_any("Hello everyone", "abc", "llo")}}
10: {{date_time("%Y-%M-%D")}}
11: {{date_time("%Y-%M-%D", unix_time())}}
12: {{date_time("%H-%m")}}
13: {{date_time("02-01-2006 15:04")}}
14: {{date_time("02-01-2006 15:04", unix_time())}}
15: {{dec_to_hex(11111)}}
16: {{generate_java_gadget("commons-collections3.1", "wget http://{{interactsh-url}}", "base64")}}
17: {{gzip("Hello")}}
18: {{gzip_decode(hex_decode("1f8b08000000000000fff248cdc9c907040000ffff8289d1f705000000"))}}
19: {{hex_decode("6161")}}
20: {{hex_encode("aa")}}
21: {{hmac("sha1", "test", "scrt")}}
22: {{hmac("sha256", "test", "scrt")}}
23: {{hmac("sha512", "test", "scrt")}}
24: {{html_escape("<body>test</body>")}}
25: {{html_unescape("&lt;body&gt;test&lt;/body&gt;")}}
26: {{join("_", "hello", "world")}}
27: {{len("Hello")}}
28: {{len(5555)}}
29: {{md5("Hello")}}
30: {{md5(1234)}}
31: {{mmh3("Hello")}}
32: {{print_debug(1+2, "Hello")}}
33: {{rand_base(5, "abc")}}
34: {{rand_base(5, "")}}
35: {{rand_base(5)}}
36: {{rand_char("abc")}}
37: {{rand_char("")}}
38: {{rand_char()}}
39: {{rand_int(1, 10)}}
40: {{rand_int(10)}}
41: {{rand_int()}}
42: {{rand_ip("192.168.0.0/24")}}
43: {{rand_ip("2002:c0a8::/24")}}
44: {{rand_ip("192.168.0.0/24","10.0.100.0/24")}}
45: {{rand_text_alpha(10, "abc")}}
46: {{rand_text_alpha(10, "")}}
47: {{rand_text_alpha(10)}}
48: {{rand_text_alphanumeric(10, "ab12")}}
49: {{rand_text_alphanumeric(10)}}
50: {{rand_text_numeric(10, 123)}}
51: {{rand_text_numeric(10)}}
52: {{regex("H([a-z]+)o", "Hello")}}
53: {{remove_bad_chars("abcd", "bc")}}
54: {{repeat("a", 5)}}
55: {{replace("Hello", "He", "Ha")}}
56: {{replace_regex("He123llo", "(\\d+)", "")}}
57: {{reverse("abc")}}
58: {{sha1("Hello")}}
59: {{sha256("Hello")}}
60: {{sha512("Hello")}}
61: {{to_lower("HELLO")}}
62: {{to_upper("hello")}}
63: {{trim("aaaHelloddd", "ad")}}
64: {{trim_left("aaaHelloddd", "ad")}}
65: {{trim_prefix("aaHelloaa", "aa")}}
66: {{trim_right("aaaHelloddd", "ad")}}
67: {{trim_space(" Hello ")}}
68: {{trim_suffix("aaHelloaa", "aa")}}
69: {{unix_time(10)}}
70: {{url_decode("https:%2F%2Fprojectdiscovery.io%3Ftest=1")}}
71: {{url_encode("https://projectdiscovery.io/test?a=1")}}
72: {{wait_for(1)}}
73: {{zlib("Hello")}}
74: {{zlib_decode(hex_decode("789cf248cdc9c907040000ffff058c01f5"))}}
75: {{hex_encode(aes_gcm("AES256Key-32Characters1234567890", "exampleplaintext"))}}
76: {{starts_with("Hello", "He")}}
77: {{ends_with("Hello", "lo")}}
78: {{line_starts_with("Hi\nHello", "He")}}
79: {{line_ends_with("Hello\nHi", "lo")}}
80: {{sort("a1b2c3d4e5")}}
81: {{uniq("abcabdaabbccd")}}
82: {{join(" ", sort("b", "a", "2", "c", "3", "1", "d", "4"))}}
83: {{join(" ", uniq("ab", "cd", "12", "34", "12", "cd"))}}
84: {{split("ab,cd,efg", ",")}}
85: {{split("ab,cd,efg", ",", 2)}}
extractors:
- type: regex
name: results
regex:
- '\d+: [^\s]+'
- '\d+: [^\s]+'
+27
View File
@@ -0,0 +1,27 @@
id: fuzz-query
info:
name: Basic Fuzz URL Query
author: pdteam
severity: info
requests:
- method: GET
path:
- "{{BaseURL}}"
fuzzing:
- part: query
type: postfix
mode: single
keys: ["id"]
fuzz: ["6842'\"><"]
matchers-condition: and
matchers:
- type: word
part: body
words:
- "6842'\"><"
- type: word
part: header
words:
- "text/html"
+15
View File
@@ -0,0 +1,15 @@
id: get-all-ips
info:
name: Basic GET Request on all IPS
author: pdteam
severity: info
requests:
- method: GET
path:
- "{{BaseURL}}"
matchers:
- type: word
words:
- "ok"
@@ -0,0 +1,17 @@
id: basic-get-host-redirects
info:
name: Basic GET Host Redirects Request
author: pdteam
severity: info
requests:
- method: GET
path:
- "{{BaseURL}}"
host-redirects: true
max-redirects: 3
matchers:
- type: dsl
dsl:
- "status_code==307"
@@ -0,0 +1,18 @@
id: basic-raw-http-example
info:
name: Test RAW GET Template
author: pdteam
severity: info
requests:
- raw:
- |
@tls-sni:request.host
GET / HTTP/1.1
Host: test
matchers:
- type: word
words:
- "test-ok"
@@ -0,0 +1,18 @@
id: basic-unsafe-get
info:
name: Basic Unsafe GET Request with CLI SNI
author: pdteam
severity: info
requests:
- raw:
- |+
GET / HTTP/1.1
Host: {{Hostname}}
unsafe: true
matchers:
- type: word
words:
- "test-ok"
+15
View File
@@ -0,0 +1,15 @@
id: basic-get
info:
name: Basic GET Request with CLI SNI
author: pdteam
severity: info
requests:
- method: GET
path:
- "{{BaseURL}}"
matchers:
- type: word
words:
- "test-ok"
@@ -0,0 +1,15 @@
id: get-without-scheme
info:
name: Basic GET Request without scheme
author: pdteam
severity: info
requests:
- method: GET
path:
- "{{BaseURL}}"
matchers:
- type: word
words:
- "ok"
@@ -0,0 +1,18 @@
id: redirect-match-url
info:
name: Redirect Match URL
author: pdteam
severity: info
requests:
- method: GET
path:
- "{{BaseURL}}"
stop-at-first-match: true # Confirm stop-at-first-match
redirects: true # Confirm redirected URL matched value
max-redirects: 3
matchers:
- type: word
words:
- "This is test redirects matcher text"
@@ -10,8 +10,7 @@ requests:
path:
- "{{BaseURL}}/200"
- "{{BaseURL}}/400"
req-condition: true
matchers:
- type: dsl
dsl:
+26
View File
@@ -0,0 +1,26 @@
id: variables-example
info:
name: Variables Example
author: pdteam
severity: info
variables:
a1: "value"
a2: "{{base64('hello')}}"
requests:
- raw:
- |
GET / HTTP/1.1
Host: {{FQDN}}
Test: {{a1}}
Another: {{a2}}
stop-at-first-match: true
matchers-condition: or
matchers:
- type: word
words:
- "value"
- "aGVsbG8="
@@ -0,0 +1,16 @@
id: excluded-template
info:
name: Basic Excluded Template
author: pdteam
severity: info
tags: fuzz
requests:
- method: GET
path:
- "{{BaseURL}}"
matchers:
- type: word
words:
- "This is test matcher text"
+22
View File
@@ -0,0 +1,22 @@
id: variables-example
info:
name: Variables Example
author: pdteam
severity: info
variables:
a1: "PING"
a2: "{{base64('hello')}}"
network:
- host:
- "{{Hostname}}"
inputs:
- data: "{{a1}}"
read-size: 8
matchers:
- type: word
part: data
words:
- "{{a2}}"
@@ -0,0 +1,26 @@
GET / HTTP/1.1
Host: pastebin.com
User-Agent: curl/7.79.1
Accept: */*
Connection: close
HTTP/1.1 200 OK
Date: Tue, 21 Jun 2022 09:32:01 GMT
Content-Type: text/plain; charset=utf-8
Connection: close
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
cache-control: public, max-age=1801
CF-Cache-Status: HIT
Age: 1585
Last-Modified: Tue, 21 Jun 2022 09:05:36 GMT
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Server: cloudflare
CF-RAY: 71ebbc0a7ea83b8b-CDG
54
line1
this is a line containing HTTP/1.1 FOO BAR
line3
0
@@ -0,0 +1,18 @@
id: offline-allowed-paths
info:
name: offline-allowed-paths
author: pdteam
severity: info
description: offline-allowed-paths
requests:
- path:
- "{{BaseURL}}"
- "{{BaseURL}}/"
- "/"
matchers:
- type: status
status:
- 200
@@ -0,0 +1,16 @@
id: offline-raw
info:
name: Test Offline raw Template
author: pdteam
severity: info
requests:
- raw:
- |
GET / HTTP/1.1
Host: {{Hostname}}
matchers:
- type: status
status:
- 200
@@ -0,0 +1,15 @@
id: rfc-req-resp
info:
name: Basic GET Request
author: pdteam
severity: info
requests:
- method: GET
path:
- "{{BaseURL}}"
matchers:
- type: word
words:
- "this is a line containing HTTP/1.1 FOO BAR"
+6
View File
@@ -6,12 +6,18 @@ cd ../v2/cmd/nuclei
go build
mv nuclei ../../../integration_tests/nuclei
echo "::endgroup::"
echo "::group::Build nuclei integration-test"
cd ../integration-test
go build
mv integration-test ../../../integration_tests/integration-test
cd ../../../integration_tests
echo "::endgroup::"
echo "::group::Installing nuclei templates"
./nuclei -update-templates
echo "::endgroup::"
./integration-test
if [ $? -eq 0 ]
then
+5 -3
View File
@@ -1,15 +1,17 @@
id: basic-ssl-tls
info:
name: Basic SSL Request with ztls
name: Basic SSL Request with ztls
author: pdteam
severity: info
ssl:
- address: "{{Host}}:{{Port}}"
min_version: sslv3
min_version: ssl30
max_version: tls12
matchers:
- type: dsl
dsl:
- "not_after>=0"
- "tls_connection == 'ztls'"
+3 -2
View File
@@ -1,4 +1,4 @@
id: expired-ssl
id: basic-ssl
info:
name: Basic SSL Request
@@ -7,7 +7,8 @@ info:
ssl:
- address: "{{Host}}:{{Port}}"
matchers:
- type: dsl
dsl:
- "not_after>=0"
- "probe_status == true"
+18
View File
@@ -0,0 +1,18 @@
id: custom-cipher
info:
name: Basic SSL Request
author: pdteam
severity: info
ssl:
- address: "{{Host}}:{{Port}}"
cipher_suites:
- TLS_AES_128_GCM_SHA256
matchers:
- type: word
part: response
words:
- "TLS_AES_128_GCM_SHA256"
+18
View File
@@ -0,0 +1,18 @@
id: custom-version
info:
name: Basic SSL Request
author: pdteam
severity: info
ssl:
- address: "{{Host}}:{{Port}}"
min_version: tls12
max_version: tls12
matchers:
- type: word
part: response
words:
- 'tls12'
@@ -0,0 +1,17 @@
id: dns-value-sharing-template1
info:
name: dns-value-sharing-template1
author: pdteam
severity: info
dns:
- name: "{{FQDN}}"
type: A
extractors:
- type: regex
name: extracted
group: 1
regex:
- "IN\tA\t(.+)"
@@ -0,0 +1,10 @@
id: dns-value-sharing-template2
info:
name: dns-value-sharing-template2
author: pdteam
severity: info
dns:
- name: "{{extracted}}"
type: PTR
@@ -0,0 +1,19 @@
id: value-sharing-template2
info:
name: value-sharing-template2
author: pdteam
severity: info
requests:
- raw:
- |
GET / HTTP/1.1
Host: {{Hostname}}
{{extracted}}
matchers:
- type: word
words:
- "ok"
@@ -0,0 +1,11 @@
id: dns-value-sharing-workflow
info:
name: DNS Value Sharing Test
author: pdteam
severity: info
workflows:
- template: workflow/dns-value-share-template-1.yaml
subtemplates:
- template: workflow/dns-value-share-template-2.yaml
- template: workflow/dns-value-share-template-3.yaml
@@ -0,0 +1,17 @@
id: value-sharing-template1
info:
name: value-sharing-template1
author: pdteam
severity: info
requests:
- path:
- "{{BaseURL}}/path1"
extractors:
- type: regex
part: body
name: extracted
regex:
- 'href="(.*)"'
group: 1
@@ -0,0 +1,19 @@
id: value-sharing-template2
info:
name: value-sharing-template2
author: pdteam
severity: info
requests:
- raw:
- |
GET /path2 HTTP/1.1
Host: {{Hostname}}
{{extracted}}
matchers:
- type: word
words:
- "test-value"
@@ -0,0 +1,10 @@
id: http-value-sharing-workflow
info:
name: HTTP Value Sharing Test
author: pdteam
severity: info
workflows:
- template: workflow/http-value-share-template-1.yaml
subtemplates:
- template: workflow/http-value-share-template-2.yaml
Executable → Regular
+175 -10
View File
@@ -72,7 +72,7 @@
"metadata": {
"patternProperties": {
".*": {
"type": "string"
"additionalProperties": true
}
},
"type": "object",
@@ -103,7 +103,8 @@
"low",
"medium",
"high",
"critical"
"critical",
"unknown"
],
"type": "string",
"title": "severity of the template",
@@ -119,9 +120,20 @@
}
]
},
"userAgent.UserAgentHolder": {
"enum": [
"off",
"default",
"custom"
],
"type": "string",
"title": "userAgent for the headless",
"description": "userAgent for the headless http request"
},
"extractors.Extractor": {
"required": [
"type"
"type",
"DSL"
],
"properties": {
"name": {
@@ -175,6 +187,12 @@
"title": "optional attribute to extract from xpath",
"description": "Optional attribute to extract from response XPath"
},
"DSL": {
"items": {
"type": "string"
},
"type": "array"
},
"part": {
"type": "string",
"title": "part of response to extract data from",
@@ -199,7 +217,8 @@
"regex",
"kval",
"xpath",
"json"
"json",
"dsl"
],
"type": "string",
"title": "type of the extractor",
@@ -333,6 +352,11 @@
"title": "type of the attack",
"description": "Type of the attack"
},
"variables.Variable": {
"properties": {},
"additionalProperties": false,
"type": "object"
},
"dns.DNSRequestTypeHolder": {
"enum": [
"A",
@@ -439,6 +463,10 @@
"type": "object"
},
"file.Request": {
"required": [
"Archive",
"MimeType"
],
"properties": {
"matchers": {
"items": {
@@ -487,10 +515,16 @@
"description": "ID is the optional ID for the request"
},
"max-size": {
"type": "integer",
"type": "string",
"title": "max size data to run request on",
"description": "Maximum size of the file to run request on"
},
"Archive": {
"type": "boolean"
},
"MimeType": {
"type": "boolean"
},
"no-recursive": {
"type": "boolean",
"title": "do not perform recursion",
@@ -531,6 +565,17 @@
"title": "list of actions for headless request",
"description": "List of actions to run for headless request"
},
"user_agent": {
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/userAgent.UserAgentHolder",
"title": "user agent for the headless request",
"description": "User agent for the headless request"
},
"custom_user_agent": {
"type": "string",
"title": "custom user agent for the headless request",
"description": "Custom user agent for the headless request"
},
"matchers": {
"items": {
"$ref": "#/definitions/matchers.Matcher"
@@ -609,7 +654,7 @@
"waitload",
"getresource",
"extract",
"set-method",
"setmethod",
"addheader",
"setheader",
"deleteheader",
@@ -763,6 +808,15 @@
"title": "maximum http response body size",
"description": "Maximum size of http response body to read in bytes"
},
"fuzzing": {
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/fuzz.Rule"
},
"type": "array",
"title": "fuzzin rules for http fuzzing",
"description": "Fuzzing describes rule schema to fuzz http requests"
},
"signature": {
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/http.SignatureTypeHolder",
@@ -774,11 +828,21 @@
"title": "optional cookie reuse enable",
"description": "Optional setting that enables cookie reuse"
},
"read-all": {
"type": "boolean",
"title": "force read all body",
"description": "Enables force reading of entire unsafe http request body"
},
"redirects": {
"type": "boolean",
"title": "follow http redirects",
"description": "Specifies whether redirects should be followed by the HTTP Client"
},
"host-redirects": {
"type": "boolean",
"title": "follow same host http redirects",
"description": "Specifies whether redirects to the same host should be followed by the HTTP Client"
},
"pipeline": {
"type": "boolean",
"title": "perform HTTP 1.1 pipelining",
@@ -813,6 +877,16 @@
"type": "boolean",
"title": "iterate all the values",
"description": "Iterates all the values extracted from internal extractors"
},
"digest-username": {
"type": "string",
"title": "specifies the username for digest authentication",
"description": "Optional parameter which specifies the username for digest auth"
},
"digest-password": {
"type": "string",
"title": "specifies the password for digest authentication",
"description": "Optional parameter which specifies the password for digest auth"
}
},
"additionalProperties": false,
@@ -826,6 +900,72 @@
"title": "type of the signature",
"description": "Type of the signature"
},
"fuzz.Rule": {
"properties": {
"type": {
"enum": [
"replace",
"prefix",
"postfix",
"infix"
],
"type": "string",
"title": "type of rule",
"description": "Type of fuzzing rule to perform"
},
"part": {
"enum": [
"query"
],
"type": "string",
"title": "part of rule",
"description": "Part of request rule to fuzz"
},
"mode": {
"enum": [
"single",
"multiple"
],
"type": "string",
"title": "mode of rule",
"description": "Mode of request rule to fuzz"
},
"keys": {
"items": {
"type": "string"
},
"type": "array",
"title": "keys of parameters to fuzz",
"description": "Keys of parameters to fuzz"
},
"keys-regex": {
"items": {
"type": "string"
},
"type": "array",
"title": "keys regex to fuzz",
"description": "Regex of parameter keys to fuzz"
},
"values": {
"items": {
"type": "string"
},
"type": "array",
"title": "values regex to fuzz",
"description": "Regex of parameter values to fuzz"
},
"fuzz": {
"items": {
"type": "string"
},
"type": "array",
"title": "payloads of fuzz rule",
"description": "Payloads to perform fuzzing substitutions with"
}
},
"additionalProperties": false,
"type": "object"
},
"network.Input": {
"properties": {
"data": {
@@ -981,7 +1121,7 @@
"tls13"
],
"type": "string",
"title": "TLS version",
"title": "Min. TLS version",
"description": "Minimum tls version - automatic if not specified."
},
"max_version": {
@@ -993,7 +1133,7 @@
"tls13"
],
"type": "string",
"title": "TLS version",
"title": "Max. TLS version",
"description": "Max tls version - automatic if not specified."
},
"cipher_suites": {
@@ -1001,6 +1141,16 @@
"type": "string"
},
"type": "array"
},
"scan_mode": {
"enum": [
"ctls",
"ztls",
"auto"
],
"type": "string",
"title": "Scan Mode",
"description": "Scan Mode - auto if not specified."
}
},
"additionalProperties": false,
@@ -1249,6 +1399,12 @@
"$ref": "#/definitions/http.SignatureTypeHolder",
"title": "signature is the http request signature method",
"description": "Signature is the HTTP Request signature Method"
},
"variables": {
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/variables.Variable",
"title": "variables for the http request",
"description": "Variables contains any variables for the current request"
}
},
"additionalProperties": false,
@@ -1257,9 +1413,18 @@
"workflows.Matcher": {
"properties": {
"name": {
"$ref": "#/definitions/stringslice.StringSlice",
"title": "name of items to match",
"description": "Name of items to match"
},
"condition": {
"enum": [
"and",
"or"
],
"type": "string",
"title": "name of item to match",
"description": "Name of item to match"
"title": "condition between names",
"description": "Condition between the names"
},
"subtemplates": {
"items": {
+36 -17
View File
@@ -3,36 +3,55 @@ before:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- windows
- linux
- darwin
goarch:
- amd64
- 386
- arm
- arm64
- main: cmd/nuclei/main.go
binary: nuclei
id: nuclei-cli
env:
- CGO_ENABLED=0
goos: [windows,linux,darwin]
goarch: [amd64,386,arm,arm64]
ignore:
- goos: darwin
goarch: '386'
goarch: 386
- goos: windows
goarch: 'arm'
goarch: arm
- goos: windows
goarch: 'arm64'
binary: '{{ .ProjectName }}'
main: cmd/nuclei/main.go
goarch: arm64
flags:
- -trimpath
- main: cmd/cve-annotate/main.go
binary: cve-annotate
id: annotate
env:
- CGO_ENABLED=0
goos: [linux]
goarch: [amd64]
archives:
- format: zip
id: nuclei
builds: [nuclei-cli]
replacements:
darwin: macOS
- format: zip
id: annotate
builds: [annotate]
name_template: "{{ .Binary }}"
checksum:
algorithm: sha256
announce:
slack:
enabled: true
channel: '#release'
username: GoReleaser
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
+12 -6
View File
@@ -3,11 +3,17 @@ GOCMD=go
GOBUILD=$(GOCMD) build
GOMOD=$(GOCMD) mod
GOTEST=$(GOCMD) test
GOGET=$(GOCMD) get
GOFLAGS := -v
# This should be disabled if the binary uses pprof
LDFLAGS := -s -w
ifneq ($(shell go env GOOS),darwin)
LDFLAGS := -extldflags "-static"
endif
all: build
build:
$(GOBUILD) -v -ldflags="-extldflags=-static" -o "nuclei" cmd/nuclei/main.go
$(GOBUILD) $(GOFLAGS) -ldflags '$(LDFLAGS)' -o "nuclei" cmd/nuclei/main.go
docs:
if ! which dstdocgen > /dev/null; then
echo -e "Command not found! Install? (y/n) \c"
@@ -17,10 +23,10 @@ docs:
$(GOBUILD) -o "cmd/docgen/docgen" cmd/docgen/docgen.go
./cmd/docgen/docgen docs.md nuclei-jsonschema.json
test:
$(GOTEST) -v ./...
$(GOTEST) $(GOFLAGS) ./...
integration:
bash ../integration_tests/run.sh
cd ../integration_tests; bash run.sh
functional:
bash cmd/functional-tests/run.sh
cd cmd/functional-test; bash run.sh
tidy:
$(GOMOD) tidy
$(GOMOD) tidy
+272 -28
View File
@@ -1,19 +1,37 @@
package main
import (
"bytes"
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"log"
"net/http"
"net/url"
"os"
"regexp"
"strings"
"github.com/Ice3man543/nvd"
"github.com/projectdiscovery/nuclei/v2/pkg/catalog"
"github.com/pkg/errors"
"github.com/projectdiscovery/nuclei/v2/pkg/catalog/disk"
"github.com/projectdiscovery/nvd"
sliceutil "github.com/projectdiscovery/utils/slice"
stringsutil "github.com/projectdiscovery/utils/strings"
"gopkg.in/yaml.v3"
)
const (
yamlIndentSpaces = 2
)
var cisaKnownExploitedVulnerabilities map[string]struct{}
func init() {
if err := fetchCISAKnownExploitedVulnerabilities(); err != nil {
panic(err)
}
}
var (
input = flag.String("i", "", "Templates to annotate")
templateDir = flag.String("d", "", "Custom template directory for update")
@@ -32,7 +50,7 @@ func main() {
}
func process() error {
tempDir, err := ioutil.TempDir("", "nuclei-nvd-%s")
tempDir, err := os.MkdirTemp("", "nuclei-nvd-%s")
if err != nil {
return err
}
@@ -42,18 +60,27 @@ func process() error {
if err != nil {
return err
}
catalog := catalog.New(*templateDir)
catalog := disk.NewCatalog(*templateDir)
paths, err := catalog.GetTemplatePath(*input)
if err != nil {
return err
}
for _, path := range paths {
data, err := ioutil.ReadFile(path)
data, err := os.ReadFile(path)
if err != nil {
return err
}
getCVEData(client, path, string(data))
dataString := string(data)
// First try to resolve references to tags
dataString, err = parseAndAddReferenceBasedTags(path, dataString)
if err != nil {
log.Printf("Could not parse reference tags %s: %s\n", path, err)
continue
}
// Next try and fill CVE data
getCVEData(client, path, dataString)
}
return nil
}
@@ -63,6 +90,25 @@ var (
severityRegex = regexp.MustCompile(`severity: ([a-z]+)`)
)
const maxReferenceCount = 5
// dead sites to skip for references
var badRefs = []string{
"osvdb.org/",
"securityfocus.com/",
"archives.neohapsis.com/",
"iss.net/",
"ntelbras.com/",
"andmp.com/",
"blacklanternsecurity.com/",
"pwnwiki.org/",
"0dayhack.net/",
"correkt.horse/",
"poc.wgpsec.org/",
"ctf-writeup.revers3c.com/",
"secunia.com/",
}
func getCVEData(client *nvd.Client, filePath, data string) {
matches := idRegex.FindAllStringSubmatch(data, 1)
if len(matches) == 0 {
@@ -70,16 +116,26 @@ func getCVEData(client *nvd.Client, filePath, data string) {
}
cveName := matches[0][1]
// Perform CISA Known-exploited-vulnerabilities tag annotation
// if we discover it has been exploited.
var err error
if cisaKnownExploitedVulnerabilities != nil {
_, ok := cisaKnownExploitedVulnerabilities[strings.ToLower(cveName)]
if ok {
data, err = parseAndAddCISAKevTagTemplate(filePath, data)
}
}
if err != nil {
log.Printf("Could not parse cisa data %s: %s\n", cveName, err)
return
}
severityMatches := severityRegex.FindAllStringSubmatch(data, 1)
if len(severityMatches) == 0 {
return
}
severityValue := severityMatches[0][1]
// Skip if there's classification data already
if strings.Contains(data, "classification:") {
return
}
cveItem, err := client.FetchCVE(cveName)
if err != nil {
log.Printf("Could not fetch cve %s: %s\n", cveName, err)
@@ -98,45 +154,91 @@ func getCVEData(client *nvd.Client, filePath, data string) {
infoBlockIndexData := data[strings.Index(data, "info:"):]
requestsIndex := strings.Index(infoBlockIndexData, "requests:")
networkIndex := strings.Index(infoBlockIndexData, "network:")
if requestsIndex == -1 && networkIndex == -1 {
variablesIndex := strings.Index(infoBlockIndexData, "variables:")
if requestsIndex == -1 && networkIndex == -1 && variablesIndex == -1 {
return
}
if networkIndex != -1 {
requestsIndex = networkIndex
}
if variablesIndex != -1 {
requestsIndex = variablesIndex
}
infoBlockData := infoBlockIndexData[:requestsIndex]
infoBlockClean := strings.TrimRight(infoBlockData, "\n")
newInfoBlock := infoBlockClean
var changed bool
infoBlock := InfoBlock{}
err = yaml.Unmarshal([]byte(data), &infoBlock)
if err != nil {
log.Printf("Could not unmarshal info block: %s\n", err)
}
var changed bool
if newSeverity := isSeverityMatchingCvssScore(severityValue, cvssScore); newSeverity != "" {
changed = true
newInfoBlock = strings.ReplaceAll(newInfoBlock, severityMatches[0][0], "severity: "+newSeverity)
infoBlock.Info.Severity = newSeverity
fmt.Printf("Adjusting severity for %s from %s=>%s (%.2f)\n", filePath, severityValue, newSeverity, cvssScore)
}
if !strings.Contains(infoBlockClean, "classification") && (cvssScore != 0 && cvssMetrics != "") {
isCvssEmpty := cvssScore == 0 || cvssMetrics == ""
hasCvssChanged := infoBlock.Info.Classification.CvssScore != cvssScore || cvssMetrics != infoBlock.Info.Classification.CvssMetrics
if !isCvssEmpty && hasCvssChanged {
changed = true
newInfoBlock += fmt.Sprintf("\n classification:\n cvss-metrics: %s\n cvss-score: %.2f\n cve-id: %s", cvssMetrics, cvssScore, cveName)
infoBlock.Info.Classification.CvssMetrics = cvssMetrics
infoBlock.Info.Classification.CvssScore = cvssScore
infoBlock.Info.Classification.CveId = cveName
if len(cweID) > 0 && (cweID[0] != "NVD-CWE-Other" && cweID[0] != "NVD-CWE-noinfo") {
newInfoBlock += fmt.Sprintf("\n cwe-id: %s", strings.Join(cweID, ","))
infoBlock.Info.Classification.CweId = strings.Join(cweID, ",")
}
}
// If there is no description field, fill the description from CVE information
if !strings.Contains(infoBlockClean, "description:") && len(cveItem.CVE.Description.DescriptionData) > 0 {
hasDescriptionData := len(cveItem.CVE.Description.DescriptionData) > 0
isDescriptionEmpty := infoBlock.Info.Description == ""
if isDescriptionEmpty && hasDescriptionData {
changed = true
newInfoBlock += fmt.Sprintf("\n description: %s", fmt.Sprintf("%q", cveItem.CVE.Description.DescriptionData[0].Value))
// removes all new lines
description := stringsutil.ReplaceAll(cveItem.CVE.Description.DescriptionData[0].Value, "", "\n", "\\", "'", "\t")
description += "\n"
infoBlock.Info.Description = description
}
if !strings.Contains(infoBlockClean, "reference:") && len(cveItem.CVE.References.ReferenceData) > 0 {
changed = true
newInfoBlock += "\n reference:"
for _, reference := range cveItem.CVE.References.ReferenceData {
newInfoBlock += fmt.Sprintf("\n - %s", reference.URL)
// we are unmarshaling info block to have valid data
var referenceDataURLs []string
// skip sites that are no longer alive
for _, reference := range cveItem.CVE.References.ReferenceData {
if stringsutil.ContainsAny(reference.URL, badRefs...) {
continue
}
referenceDataURLs = append(referenceDataURLs, reference.URL)
}
newTemplate := strings.ReplaceAll(data, infoBlockClean, newInfoBlock)
hasReferenceData := len(cveItem.CVE.References.ReferenceData) > 0
areCveReferencesContained := sliceutil.ContainsItems(infoBlock.Info.Reference, referenceDataURLs)
referencesCount := len(infoBlock.Info.Reference)
if hasReferenceData && !areCveReferencesContained {
changed = true
for _, ref := range referenceDataURLs {
referencesCount++
if referencesCount >= maxReferenceCount {
break
}
infoBlock.Info.Reference = append(infoBlock.Info.Reference, ref)
}
infoBlock.Info.Reference = sliceutil.PruneEmptyStrings(sliceutil.Dedupe(infoBlock.Info.Reference))
}
var newInfoBlock bytes.Buffer
yamlEncoder := yaml.NewEncoder(&newInfoBlock)
yamlEncoder.SetIndent(yamlIndentSpaces)
err = yamlEncoder.Encode(infoBlock)
if err != nil {
log.Printf("Could not marshal info block: %s\n", err)
return
}
newInfoBlockData := strings.TrimSuffix(newInfoBlock.String(), "\n")
newTemplate := strings.ReplaceAll(data, infoBlockClean, newInfoBlockData)
if changed {
_ = ioutil.WriteFile(filePath, []byte(newTemplate), 0644)
_ = os.WriteFile(filePath, []byte(newTemplate), 0644)
fmt.Printf("Wrote updated template to %s\n", filePath)
}
}
@@ -161,3 +263,145 @@ func isSeverityMatchingCvssScore(severity string, score float64) string {
}
return ""
}
type cisaKEVData struct {
Vulnerabilities []struct {
CVEID string `json:"cveID"`
}
}
// fetchCISAKnownExploitedVulnerabilities fetches CISA known exploited
// vulnerabilities catalog for template tag enrichment
func fetchCISAKnownExploitedVulnerabilities() error {
data := &cisaKEVData{}
resp, err := http.Get("https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json")
if err != nil {
return errors.Wrap(err, "could not get cisa kev catalog")
}
defer resp.Body.Close()
if err := json.NewDecoder(resp.Body).Decode(data); err != nil {
return errors.Wrap(err, "could not decode cisa kev catalog json data")
}
cisaKnownExploitedVulnerabilities = make(map[string]struct{})
for _, vuln := range data.Vulnerabilities {
cisaKnownExploitedVulnerabilities[strings.ToLower(vuln.CVEID)] = struct{}{}
}
return nil
}
// parseAndAddCISAKevTagTemplate parses and adds `kev` tag to CISA KEV templates.
// also removes cisa tag if it exists
func parseAndAddCISAKevTagTemplate(path string, data string) (string, error) {
block := &InfoBlock{}
if err := yaml.NewDecoder(strings.NewReader(data)).Decode(block); err != nil {
return "", errors.Wrap(err, "could not decode template yaml")
}
splitted := strings.Split(block.Info.Tags, ",")
if len(splitted) == 0 {
return data, nil
}
var cisaIndex = -1
for i, tag := range splitted {
// If we already have tag, return
if tag == "kev" {
return data, nil
}
if tag == "cisa" {
cisaIndex = i
}
}
// Remove CISA index tag element
if cisaIndex >= 0 {
splitted = append(splitted[:cisaIndex], splitted[cisaIndex+1:]...)
}
splitted = append(splitted, "kev")
replaced := strings.ReplaceAll(data, block.Info.Tags, strings.Join(splitted, ","))
return replaced, os.WriteFile(path, []byte(replaced), os.ModePerm)
}
// parseAndAddReferenceBasedTags parses and adds reference based tags to templates
func parseAndAddReferenceBasedTags(path string, data string) (string, error) {
block := &InfoBlock{}
if err := yaml.NewDecoder(strings.NewReader(data)).Decode(block); err != nil {
return "", errors.Wrap(err, "could not decode template yaml")
}
splitted := strings.Split(block.Info.Tags, ",")
if len(splitted) == 0 {
return data, nil
}
tagsCurrent := fmt.Sprintf("tags: %s", block.Info.Tags)
newTags := suggestTagsBasedOnReference(block.Info.Reference, splitted)
if len(newTags) == len(splitted) {
return data, nil
}
replaced := strings.ReplaceAll(data, tagsCurrent, fmt.Sprintf("tags: %s", strings.Join(newTags, ",")))
return replaced, os.WriteFile(path, []byte(replaced), os.ModePerm)
}
var referenceMapping = map[string]string{
"huntr.dev": "huntr",
"hackerone.com": "hackerone",
"tenable.com": "tenable",
"packetstormsecurity.org": "packetstorm",
"seclists.org": "seclists",
"wpscan.com": "wpscan",
"packetstormsecurity.com": "packetstorm",
"exploit-db.com": "edb",
"https://github.com/rapid7/metasploit-framework/": "msf",
"https://github.com/vulhub/vulhub/": "vulhub",
}
func suggestTagsBasedOnReference(references, currentTags []string) []string {
uniqueTags := make(map[string]struct{})
for _, value := range currentTags {
uniqueTags[value] = struct{}{}
}
for _, reference := range references {
parsed, err := url.Parse(reference)
if err != nil {
continue
}
hostname := parsed.Hostname()
for value, tag := range referenceMapping {
if strings.HasSuffix(hostname, value) || strings.HasPrefix(reference, value) {
uniqueTags[tag] = struct{}{}
}
}
}
newTags := make([]string, 0, len(uniqueTags))
for tag := range uniqueTags {
newTags = append(newTags, tag)
}
return newTags
}
// Cloning struct from nuclei as we don't want any validation
type InfoBlock struct {
Info TemplateInfo `yaml:"info"`
}
type TemplateClassification struct {
CvssMetrics string `yaml:"cvss-metrics,omitempty"`
CvssScore float64 `yaml:"cvss-score,omitempty"`
CveId string `yaml:"cve-id,omitempty"`
CweId string `yaml:"cwe-id,omitempty"`
}
type TemplateInfo struct {
Name string `yaml:"name"`
Author string `yaml:"author"`
Severity string `yaml:"severity"`
Description string `yaml:"description,omitempty"`
Reference []string `yaml:"reference,omitempty"`
Remediation string `yaml:"remediation,omitempty"`
Classification TemplateClassification `yaml:"classification,omitempty"`
Metadata map[string]string `yaml:"metadata,omitempty"`
Tags string `yaml:"tags,omitempty"`
}
+2 -3
View File
@@ -3,7 +3,6 @@ package main
import (
"bytes"
"encoding/json"
"io/ioutil"
"log"
"os"
"regexp"
@@ -22,7 +21,7 @@ func main() {
if err != nil {
log.Fatalf("Could not encode docs: %s\n", err)
}
err = ioutil.WriteFile(os.Args[1], data, 0644)
err = os.WriteFile(os.Args[1], data, 0644)
if err != nil {
log.Fatalf("Could not write docs: %s\n", err)
}
@@ -44,7 +43,7 @@ func main() {
for _, match := range pathRegex.FindAllStringSubmatch(schema, -1) {
schema = strings.ReplaceAll(schema, match[0], match[1])
}
err = ioutil.WriteFile(os.Args[2], []byte(schema), 0644)
err = os.WriteFile(os.Args[2], []byte(schema), 0644)
if err != nil {
log.Fatalf("Could not write jsonschema: %s\n", err)
}
+20 -1
View File
@@ -66,6 +66,10 @@ func runTestCases(file *os.File, debug bool) (bool, []string) {
if testCase == "" {
continue
}
// skip comments
if strings.HasPrefix(testCase, "#") {
continue
}
if runTestCase(testCase, debug) {
errored = true
failedTestCases = append(failedTestCases, testCase)
@@ -85,7 +89,22 @@ func runTestCase(testCase string, debug bool) bool {
}
func runIndividualTestCase(testcase string, debug bool) error {
parts := strings.Fields(testcase)
quoted := false
// split upon unquoted spaces
parts := strings.FieldsFunc(testcase, func(r rune) bool {
if r == '"' {
quoted = !quoted
}
return !quoted && r == ' '
})
// Quoted strings containing spaces are expressions and must have trailing \" removed
for index, part := range parts {
if strings.Contains(part, " ") {
parts[index] = strings.Trim(part, "\"")
}
}
var finalArgs []string
if len(parts) > 1 {
+4
View File
@@ -15,6 +15,10 @@ echo "::group::Building Nuclei binary from current branch"
go build -o nuclei_dev$extension ../nuclei
echo "::endgroup::"
echo "::group::Installing nuclei templates"
./nuclei_dev$extension -update-templates
echo "::endgroup::"
echo "::group::Building latest release of nuclei"
go build -o nuclei$extension -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei
echo "::endgroup::"
+4
View File
@@ -0,0 +1,4 @@
scanme.sh
scanme.sh?a=1
scanme.sh?a=2
scanme.sh?a=3
+33 -1
View File
@@ -1,4 +1,8 @@
# Simple binary invocation
{{binary}}
# Template tags filter
{{binary}} -tags cve -ntv 8.8.8,8.8.9
{{binary}} -tags cve
{{binary}} -tags cve,exposure
{{binary}} -tags cve,exposure -tags token
@@ -45,7 +49,35 @@
{{binary}} -t cves/ -t exposures/ -tags config -severity high,critical -author geeknik,pdteam -etags sqli -exclude-templates cves/2021/
{{binary}} -t cves/ -t exposures/ -tags config -severity high,critical -author geeknik,pdteam -etags sqli -exclude-templates cves/2017/CVE-2017-7269.yaml
{{binary}} -t cves/ -t exposures/ -tags config -severity high,critical -author geeknik,pdteam -etags sqli -include-templates cves/2017/CVE-2017-7269.yaml
{{binary}} -tags cve -author geeknik,pdteam -tc severity=='high'
{{binary}} -tc contains(authors,'pdteam')
{{binary}} -t cves/ -t exposures/ -tc contains(tags,'cve') -exclude-templates cves/2020/CVE-2020-9757.yaml
# Workflow Filters
{{binary}} -w workflows
{{binary}} -w workflows -author geeknik,pdteam
{{binary}} -w workflows -severity high,critical
{{binary}} -w workflows -author geeknik,pdteam -severity high,critical
{{binary}} -w workflows -author geeknik,pdteam -severity high,critical
# Input Types
# http protocol
# host
{{binary}} -id tech-detect -u scanme.sh
# host:port
{{binary}} -id tech-detect -u scanme.sh:80
# scheme://host:port
{{binary}} -id tech-detect -u http://scanme.sh:80
# scheme://host
{{binary}} -id tech-detect -u https://scanme.sh
# Network Protocol
# host
{{binary}} -id ftp-weak-credentials -u scanme.sh
# host:port
{{binary}} -id ftp-weak-credentials -u scanme.sh:21
# SSL Protocol
# host
{{binary}} -id tls-version -u scanme.sh
# host:port
{{binary}} -id tls-version -u scanme.sh:22
+55
View File
@@ -0,0 +1,55 @@
package main
import (
"bytes"
"crypto/sha1"
"encoding/hex"
"io"
"io/fs"
"log"
"os"
"path/filepath"
"strings"
)
func main() {
if len(os.Args) < 3 {
log.Fatalf("Usage: %s <templates-directory> <checksum-file>\n", os.Args[0])
}
checksumFile := os.Args[2]
templatesDirectory := os.Args[1]
file, err := os.Create(checksumFile)
if err != nil {
log.Fatalf("Could not create file: %s\n", err)
}
defer file.Close()
err = filepath.WalkDir(templatesDirectory, func(path string, d fs.DirEntry, err error) error {
if err != nil || d.IsDir() {
return nil
}
pathIndex := path[strings.Index(path, "nuclei-templates/")+17:]
pathIndex = strings.TrimPrefix(pathIndex, "nuclei-templates/")
// Ignore items starting with dots
if strings.HasPrefix(pathIndex, ".") {
return nil
}
data, err := os.ReadFile(path)
if err != nil {
return nil
}
h := sha1.New()
_, _ = io.Copy(h, bytes.NewReader(data))
hash := hex.EncodeToString(h.Sum(nil))
_, _ = file.WriteString(pathIndex)
_, _ = file.WriteString(":")
_, _ = file.WriteString(hash)
_, _ = file.WriteString("\n")
return nil
})
if err != nil {
log.Fatalf("Could not walk directory: %s\n", err)
}
}
+132
View File
@@ -0,0 +1,132 @@
package main
import (
"context"
"fmt"
"log"
"net/http"
"net/http/httptest"
"os"
"path"
"strings"
"time"
"github.com/julienschmidt/httprouter"
"github.com/logrusorgru/aurora"
"github.com/pkg/errors"
"github.com/projectdiscovery/goflags"
"github.com/projectdiscovery/nuclei/v2/pkg/catalog/config"
"github.com/projectdiscovery/nuclei/v2/pkg/catalog/disk"
"github.com/projectdiscovery/nuclei/v2/pkg/catalog/loader"
"github.com/projectdiscovery/nuclei/v2/pkg/core"
"github.com/projectdiscovery/nuclei/v2/pkg/core/inputs"
"github.com/projectdiscovery/nuclei/v2/pkg/output"
"github.com/projectdiscovery/nuclei/v2/pkg/parsers"
"github.com/projectdiscovery/nuclei/v2/pkg/protocols"
"github.com/projectdiscovery/nuclei/v2/pkg/protocols/common/contextargs"
"github.com/projectdiscovery/nuclei/v2/pkg/protocols/common/hosterrorscache"
"github.com/projectdiscovery/nuclei/v2/pkg/protocols/common/interactsh"
"github.com/projectdiscovery/nuclei/v2/pkg/protocols/common/protocolinit"
"github.com/projectdiscovery/nuclei/v2/pkg/protocols/common/protocolstate"
"github.com/projectdiscovery/nuclei/v2/pkg/reporting"
"github.com/projectdiscovery/nuclei/v2/pkg/testutils"
"github.com/projectdiscovery/nuclei/v2/pkg/types"
"github.com/projectdiscovery/ratelimit"
)
var codeTestcases = map[string]testutils.TestCase{
"code/test.yaml": &goIntegrationTest{},
}
type goIntegrationTest struct{}
// Execute executes a test case and returns an error if occurred
//
// Execute the docs at ../DESIGN.md if the code stops working for integration.
func (h *goIntegrationTest) Execute(templatePath string) error {
router := httprouter.New()
router.GET("/", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
fmt.Fprintf(w, "This is test matcher text")
if strings.EqualFold(r.Header.Get("test"), "nuclei") {
fmt.Fprintf(w, "This is test headers matcher text")
}
})
ts := httptest.NewServer(router)
defer ts.Close()
results, err := executeNucleiAsCode(templatePath, ts.URL)
if err != nil {
return err
}
return expectResultsCount(results, 1)
}
// executeNucleiAsCode contains an example
func executeNucleiAsCode(templatePath, templateURL string) ([]string, error) {
cache := hosterrorscache.New(30, hosterrorscache.DefaultMaxHostsCount)
defer cache.Close()
mockProgress := &testutils.MockProgressClient{}
reportingClient, _ := reporting.New(&reporting.Options{}, "")
defer reportingClient.Close()
outputWriter := testutils.NewMockOutputWriter()
var results []string
outputWriter.WriteCallback = func(event *output.ResultEvent) {
results = append(results, fmt.Sprintf("%v\n", event))
}
defaultOpts := types.DefaultOptions()
_ = protocolstate.Init(defaultOpts)
_ = protocolinit.Init(defaultOpts)
defaultOpts.Templates = goflags.StringSlice{templatePath}
defaultOpts.ExcludeTags = config.ReadIgnoreFile().Tags
interactOpts := interactsh.NewDefaultOptions(outputWriter, reportingClient, mockProgress)
interactClient, err := interactsh.New(interactOpts)
if err != nil {
return nil, errors.Wrap(err, "could not create interact client")
}
defer interactClient.Close()
home, _ := os.UserHomeDir()
catalog := disk.NewCatalog(path.Join(home, "nuclei-templates"))
executerOpts := protocols.ExecuterOptions{
Output: outputWriter,
Options: defaultOpts,
Progress: mockProgress,
Catalog: catalog,
IssuesClient: reportingClient,
RateLimiter: ratelimit.New(context.Background(), 150, time.Second),
Interactsh: interactClient,
HostErrorsCache: cache,
Colorizer: aurora.NewAurora(true),
ResumeCfg: types.NewResumeCfg(),
}
engine := core.New(defaultOpts)
engine.SetExecuterOptions(executerOpts)
workflowLoader, err := parsers.NewLoader(&executerOpts)
if err != nil {
log.Fatalf("Could not create workflow loader: %s\n", err)
}
executerOpts.WorkflowLoader = workflowLoader
configObject, err := config.ReadConfiguration()
if err != nil {
return nil, errors.Wrap(err, "could not read configuration file")
}
store, err := loader.New(loader.NewConfig(defaultOpts, configObject, catalog, executerOpts))
if err != nil {
return nil, errors.Wrap(err, "could not create loader")
}
store.Load()
input := &inputs.SimpleInputProvider{Inputs: []*contextargs.MetaInput{{Input: templateURL}}}
_ = engine.Execute(store.Templates(), input)
engine.WorkPool().Wait() // Wait for the scan to finish
return results, nil
}
+38
View File
@@ -0,0 +1,38 @@
package main
import (
"os"
"github.com/projectdiscovery/nuclei/v2/pkg/testutils"
)
type customConfigDirTest struct{}
var customConfigDirTestCases = map[string]testutils.TestCase{
"dns/cname-fingerprint.yaml": &customConfigDirTest{},
}
// Execute executes a test case and returns an error if occurred
func (h *customConfigDirTest) Execute(filePath string) error {
customTempDirectory, err := os.MkdirTemp("", "")
if err != nil {
return err
}
defer os.RemoveAll(customTempDirectory)
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, "8x8exch02.8x8.com", debug, "-config-directory", customTempDirectory)
if err != nil {
return err
}
if len(results) == 0 {
return nil
}
files, err := os.ReadDir(customTempDirectory)
if err != nil {
return err
}
var fileNames []string
for _, file := range files {
fileNames = append(fileNames, file.Name())
}
return expectResultsCount(fileNames, 4)
}
+20 -3
View File
@@ -5,9 +5,10 @@ import (
)
var dnsTestCases = map[string]testutils.TestCase{
"dns/basic.yaml": &dnsBasic{},
"dns/ptr.yaml": &dnsPtr{},
"dns/caa.yaml": &dnsCAA{},
"dns/basic.yaml": &dnsBasic{},
"dns/ptr.yaml": &dnsPtr{},
"dns/caa.yaml": &dnsCAA{},
"dns/variables.yaml": &dnsVariables{},
}
type dnsBasic struct{}
@@ -57,3 +58,19 @@ func (h *dnsCAA) Execute(filePath string) error {
}
return expectResultsCount(results, 1)
}
type dnsVariables struct{}
// Execute executes a test case and returns an error if occurred
func (h *dnsVariables) Execute(filePath string) error {
var routerErr error
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, "one.one.one.one", debug)
if err != nil {
return err
}
if routerErr != nil {
return routerErr
}
return expectResultsCount(results, 1)
}
+47
View File
@@ -0,0 +1,47 @@
package main
import (
"github.com/projectdiscovery/nuclei/v2/pkg/testutils"
)
var fileTestcases = map[string]testutils.TestCase{
"file/matcher-with-or.yaml": &fileWithOrMatcher{},
"file/matcher-with-and.yaml": &fileWithAndMatcher{},
"file/extract.yaml": &fileWithExtractor{},
}
type fileWithOrMatcher struct{}
// Execute executes a test case and returns an error if occurred
func (h *fileWithOrMatcher) Execute(filePath string) error {
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, "file/data/", debug)
if err != nil {
return err
}
return expectResultsCount(results, 1)
}
type fileWithAndMatcher struct{}
// Execute executes a test case and returns an error if occurred
func (h *fileWithAndMatcher) Execute(filePath string) error {
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, "file/data/", debug)
if err != nil {
return err
}
return expectResultsCount(results, 1)
}
type fileWithExtractor struct{}
// Execute executes a test case and returns an error if occurred
func (h *fileWithExtractor) Execute(filePath string) error {
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, "file/data/", debug)
if err != nil {
return err
}
return expectResultsCount(results, 1)
}
+19
View File
@@ -14,6 +14,7 @@ var headlessTestcases = map[string]testutils.TestCase{
"headless/headless-header-action.yaml": &headlessHeaderActions{},
"headless/headless-extract-values.yaml": &headlessExtractValues{},
"headless/headless-payloads.yaml": &headlessPayloads{},
"headless/variables.yaml": &headlessVariables{},
}
type headlessBasic struct{}
@@ -92,3 +93,21 @@ func (h *headlessPayloads) Execute(filePath string) error {
return expectResultsCount(results, 4)
}
type headlessVariables struct{}
// Execute executes a test case and returns an error if occurred
func (h *headlessVariables) Execute(filePath string) error {
router := httprouter.New()
router.GET("/", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
_, _ = w.Write([]byte("<html><body>aGVsbG8=</body></html>"))
})
ts := httptest.NewServer(router)
defer ts.Close()
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, ts.URL, debug, "-headless")
if err != nil {
return err
}
return expectResultsCount(results, 1)
}
+294 -32
View File
@@ -4,24 +4,28 @@ import (
"encoding/json"
"errors"
"fmt"
"net"
"net/http"
"net/http/httptest"
"net/http/httputil"
"regexp"
"strconv"
"strings"
"time"
"github.com/julienschmidt/httprouter"
"github.com/projectdiscovery/nuclei/v2/pkg/testutils"
stringsutil "github.com/projectdiscovery/utils/strings"
)
var httpTestcases = map[string]testutils.TestCase{
//"http/raw-unsafe-request.yaml": &httpRawUnsafeRequest{},
"http/get-headers.yaml": &httpGetHeaders{},
"http/get-query-string.yaml": &httpGetQueryString{},
"http/get-redirects.yaml": &httpGetRedirects{},
"http/get-host-redirects.yaml": &httpGetHostRedirects{},
"http/disable-redirects.yaml": &httpDisableRedirects{},
"http/get.yaml": &httpGet{},
"http/fuzz-query.yaml": &httpFuzzQuery{},
"http/post-body.yaml": &httpPostBody{},
"http/post-json-body.yaml": &httpPostJSONBody{},
"http/post-multipart-body.yaml": &httpPostMultipartBody{},
@@ -31,7 +35,6 @@ var httpTestcases = map[string]testutils.TestCase{
"http/raw-get.yaml": &httpRawGet{},
"http/raw-payload.yaml": &httpRawPayload{},
"http/raw-post-body.yaml": &httpRawPostBody{},
"http/raw-unsafe-request.yaml": &httpRawUnsafeRequest{},
"http/request-condition.yaml": &httpRequestCondition{},
"http/request-condition-new.yaml": &httpRequestCondition{},
"http/interactsh.yaml": &httpInteractshRequest{},
@@ -46,6 +49,15 @@ var httpTestcases = map[string]testutils.TestCase{
"http/race-multiple.yaml": &httpRaceMultiple{},
"http/stop-at-first-match.yaml": &httpStopAtFirstMatch{},
"http/stop-at-first-match-with-extractors.yaml": &httpStopAtFirstMatchWithExtractors{},
"http/variables.yaml": &httpVariables{},
"http/get-override-sni.yaml": &httpSniAnnotation{},
"http/get-sni.yaml": &customCLISNI{},
"http/redirect-match-url.yaml": &httpRedirectMatchURL{},
"http/get-sni-unsafe.yaml": &customCLISNIUnsafe{},
"http/annotation-timeout.yaml": &annotationTimeout{},
"http/custom-attack-type.yaml": &customAttackType{},
"http/get-all-ips.yaml": &scanAllIPS{},
"http/get-without-scheme.yaml": &httpGetWithoutScheme{},
}
type httpInteractshRequest struct{}
@@ -159,6 +171,56 @@ func (h *httpGetRedirects) Execute(filePath string) error {
return expectResultsCount(results, 1)
}
type httpGetHostRedirects struct{}
// Execute executes a test case and returns an error if occurred
func (h *httpGetHostRedirects) Execute(filePath string) error {
router := httprouter.New()
router.GET("/", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
http.Redirect(w, r, "/redirected1", http.StatusFound)
})
router.GET("/redirected1", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
http.Redirect(w, r, "redirected2", http.StatusFound)
})
router.GET("/redirected2", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
http.Redirect(w, r, "/redirected3", http.StatusFound)
})
router.GET("/redirected3", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
http.Redirect(w, r, "https://scanme.sh", http.StatusTemporaryRedirect)
})
ts := httptest.NewServer(router)
defer ts.Close()
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, ts.URL, debug)
if err != nil {
return err
}
return expectResultsCount(results, 1)
}
type httpDisableRedirects struct{}
// Execute executes a test case and returns an error if occurred
func (h *httpDisableRedirects) Execute(filePath string) error {
router := httprouter.New()
router.GET("/", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
http.Redirect(w, r, "/redirected", http.StatusMovedPermanently)
})
router.GET("/redirected", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
fmt.Fprintf(w, "This is test redirects matcher text")
})
ts := httptest.NewServer(router)
defer ts.Close()
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, ts.URL, debug, "-dr")
if err != nil {
return err
}
return expectResultsCount(results, 0)
}
type httpGet struct{}
// Execute executes a test case and returns an error if occurred
@@ -221,19 +283,22 @@ func (h *httpDSLFunctions) Execute(filePath string) error {
return err
}
resultPattern := regexp.MustCompile(`\[[^]]+] \[[^]]+] \[[^]]+] [^]]+ \[([^]]+)]`)
submatch := resultPattern.FindStringSubmatch(results[0])
if len(submatch) != 2 {
return errors.New("could not parse the result")
// get result part
resultPart, err := stringsutil.After(results[0], ts.URL)
if err != nil {
return err
}
totalExtracted := strings.Split(submatch[1], ",")
numberOfDslFunctions := 54
if len(totalExtracted) != numberOfDslFunctions {
// remove additional characters till the first valid result and ignore last ] which doesn't alter the total count
resultPart = stringsutil.TrimPrefixAny(resultPart, "/", " ", "[")
extracted := strings.Split(resultPart, ",")
numberOfDslFunctions := 85
if len(extracted) != numberOfDslFunctions {
return errors.New("incorrect number of results")
}
for _, header := range totalExtracted {
for _, header := range extracted {
parts := strings.Split(header, ": ")
index, err := strconv.Atoi(parts[0])
if err != nil {
@@ -548,28 +613,27 @@ func (h *httpRawCookieReuse) Execute(filePath string) error {
return expectResultsCount(results, 1)
}
type httpRawUnsafeRequest struct{}
// type httpRawUnsafeRequest struct{
// Execute executes a test case and returns an error if occurred
func (h *httpRawUnsafeRequest) Execute(filePath string) error {
var routerErr error
ts := testutils.NewTCPServer(false, defaultStaticPort, func(conn net.Conn) {
defer conn.Close()
_, _ = conn.Write([]byte("HTTP/1.1 200 OK\r\nConnection: close\r\nContent-Length: 36\r\nContent-Type: text/plain; charset=utf-8\r\n\r\nThis is test raw-unsafe-matcher test"))
})
defer ts.Close()
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, "http://"+ts.URL, debug)
if err != nil {
return err
}
if routerErr != nil {
return routerErr
}
return expectResultsCount(results, 1)
}
// func (h *httpRawUnsafeRequest) Execute(filePath string) error {
// var routerErr error
//
// ts := testutils.NewTCPServer(nil, defaultStaticPort, func(conn net.Conn) {
// defer conn.Close()
// _, _ = conn.Write([]byte("HTTP/1.1 200 OK\r\nContent-Length: 36\r\nContent-Type: text/plain; charset=utf-8\r\n\r\nThis is test raw-unsafe-matcher test"))
// })
// defer ts.Close()
//
// results, err := testutils.RunNucleiTemplateAndGetResults(filePath, "http://"+ts.URL, debug)
// if err != nil {
// return err
// }
// if routerErr != nil {
// return routerErr
// }
//
// return expectResultsCount(results, 1)
// }
type httpRequestCondition struct{}
@@ -767,3 +831,201 @@ func (h *httpStopAtFirstMatchWithExtractors) Execute(filePath string) error {
return expectResultsCount(results, 2)
}
type httpVariables struct{}
// Execute executes a test case and returns an error if occurred
func (h *httpVariables) Execute(filePath string) error {
router := httprouter.New()
router.GET("/", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
fmt.Fprintf(w, "%s\n%s", r.Header.Get("Test"), r.Header.Get("Another"))
})
ts := httptest.NewServer(router)
defer ts.Close()
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, ts.URL, debug)
if err != nil {
return err
}
return expectResultsCount(results, 1)
}
type customCLISNI struct{}
// Execute executes a test case and returns an error if occurred
func (h *customCLISNI) Execute(filePath string) error {
router := httprouter.New()
router.GET("/", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
if r.TLS.ServerName == "test" {
_, _ = w.Write([]byte("test-ok"))
} else {
_, _ = w.Write([]byte("test-ko"))
}
})
ts := httptest.NewTLSServer(router)
defer ts.Close()
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, ts.URL, debug, "-sni", "test")
if err != nil {
return err
}
return expectResultsCount(results, 1)
}
type httpSniAnnotation struct{}
// Execute executes a test case and returns an error if occurred
func (h *httpSniAnnotation) Execute(filePath string) error {
router := httprouter.New()
router.GET("/", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
if r.TLS.ServerName == "test" {
_, _ = w.Write([]byte("test-ok"))
} else {
_, _ = w.Write([]byte("test-ko"))
}
})
ts := httptest.NewTLSServer(router)
defer ts.Close()
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, ts.URL, debug)
if err != nil {
return err
}
return expectResultsCount(results, 1)
}
type httpRedirectMatchURL struct{}
// Execute executes a test case and returns an error if occurred
func (h *httpRedirectMatchURL) Execute(filePath string) error {
router := httprouter.New()
router.GET("/", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
http.Redirect(w, r, "/redirected", http.StatusFound)
_, _ = w.Write([]byte("This is test redirects matcher text"))
})
router.GET("/redirected", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
fmt.Fprintf(w, "This is test redirects matcher text")
})
ts := httptest.NewServer(router)
defer ts.Close()
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, ts.URL, debug, "-no-meta")
if err != nil {
return err
}
if err := expectResultsCount(results, 1); err != nil {
return err
}
if results[0] != fmt.Sprintf("%s/redirected", ts.URL) {
return fmt.Errorf("mismatched url found: %s", results[0])
}
return nil
}
type customCLISNIUnsafe struct{}
// Execute executes a test case and returns an error if occurred
func (h *customCLISNIUnsafe) Execute(filePath string) error {
router := httprouter.New()
router.GET("/", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
if r.TLS.ServerName == "test" {
_, _ = w.Write([]byte("test-ok"))
} else {
_, _ = w.Write([]byte("test-ko"))
}
})
ts := httptest.NewTLSServer(router)
defer ts.Close()
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, ts.URL, debug, "-sni", "test")
if err != nil {
return err
}
return expectResultsCount(results, 1)
}
type annotationTimeout struct{}
// Execute executes a test case and returns an error if occurred
func (h *annotationTimeout) Execute(filePath string) error {
router := httprouter.New()
router.GET("/", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
time.Sleep(4 * time.Second)
fmt.Fprintf(w, "This is test matcher text")
})
ts := httptest.NewTLSServer(router)
defer ts.Close()
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, ts.URL, debug, "-timeout", "1")
if err != nil {
return err
}
return expectResultsCount(results, 1)
}
type httpFuzzQuery struct{}
// Execute executes a test case and returns an error if occurred
func (h *httpFuzzQuery) Execute(filePath string) error {
router := httprouter.New()
router.GET("/", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
w.Header().Set("Content-Type", "text/html")
value := r.URL.Query().Get("id")
fmt.Fprintf(w, "This is test matcher text: %v", value)
})
ts := httptest.NewTLSServer(router)
defer ts.Close()
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, ts.URL+"/?id=example", debug)
if err != nil {
return err
}
return expectResultsCount(results, 1)
}
type customAttackType struct{}
// Execute executes a test case and returns an error if occurred
func (h *customAttackType) Execute(filePath string) error {
router := httprouter.New()
got := []string{}
router.GET("/", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
got = append(got, r.URL.RawQuery)
fmt.Fprintf(w, "This is test custom payload")
})
ts := httptest.NewTLSServer(router)
defer ts.Close()
_, err := testutils.RunNucleiTemplateAndGetResults(filePath, ts.URL, debug, "-attack-type", "clusterbomb")
if err != nil {
return err
}
return expectResultsCount(got, 4)
}
// Disabled as GH doesn't support ipv6
type scanAllIPS struct{}
// Execute executes a test case and returns an error if occurred
func (h *scanAllIPS) Execute(filePath string) error {
got, err := testutils.RunNucleiTemplateAndGetResults(filePath, "https://scanme.sh", debug, "-scan-all-ips", "-iv", "4")
if err != nil {
return err
}
// limiting test to ipv4 (GH doesn't support ipv6)
return expectResultsCount(got, 1)
}
// ensure that ip|host are handled without http|https scheme
type httpGetWithoutScheme struct{}
// Execute executes a test case and returns an error if occurred
func (h *httpGetWithoutScheme) Execute(filePath string) error {
got, err := testutils.RunNucleiTemplateAndGetResults(filePath, "scanme.sh", debug)
if err != nil {
return err
}
return expectResultsCount(got, 1)
}
+19 -13
View File
@@ -19,15 +19,21 @@ var (
failed = aurora.Red("[✘]").String()
protocolTests = map[string]map[string]testutils.TestCase{
"http": httpTestcases,
"network": networkTestcases,
"dns": dnsTestCases,
"workflow": workflowTestcases,
"loader": loaderTestcases,
"websocket": websocketTestCases,
"headless": headlessTestcases,
"whois": whoisTestCases,
"ssl": sslTestcases,
"http": httpTestcases,
"network": networkTestcases,
"dns": dnsTestCases,
"workflow": workflowTestcases,
"loader": loaderTestcases,
"websocket": websocketTestCases,
"headless": headlessTestcases,
"whois": whoisTestCases,
"ssl": sslTestcases,
"code": codeTestcases,
"templatesPath": templatesPathTestCases,
"templatesDir": templatesDirTestCases,
"file": fileTestcases,
"offlineHttp": offlineHttpTestcases,
"customConfigDir": customConfigDirTestCases,
}
)
@@ -56,7 +62,7 @@ func runTests(customTemplatePaths map[string]struct{}) map[string]struct{} {
for templatePath, testCase := range testCases {
if len(customTemplatePaths) == 0 || contains(customTemplatePaths, templatePath) {
if err, failedTemplatePath := execute(testCase, templatePath); err != nil {
if failedTemplatePath, err := execute(testCase, templatePath); err != nil {
failedTestTemplatePaths[failedTemplatePath] = struct{}{}
}
}
@@ -66,14 +72,14 @@ func runTests(customTemplatePaths map[string]struct{}) map[string]struct{} {
return failedTestTemplatePaths
}
func execute(testCase testutils.TestCase, templatePath string) (error, string) {
func execute(testCase testutils.TestCase, templatePath string) (string, error) {
if err := testCase.Execute(templatePath); err != nil {
_, _ = fmt.Fprintf(os.Stderr, "%s Test \"%s\" failed: %s\n", failed, templatePath, err)
return err, templatePath
return templatePath, err
}
fmt.Printf("%s Test \"%s\" passed!\n", success, templatePath)
return nil, ""
return "", nil
}
func expectResultsCount(results []string, expectedNumber int) error {
+26 -3
View File
@@ -2,7 +2,6 @@ package main
import (
"fmt"
"io/ioutil"
"net/http"
"net/http/httptest"
"os"
@@ -16,6 +15,7 @@ import (
var loaderTestcases = map[string]testutils.TestCase{
"loader/template-list.yaml": &remoteTemplateList{},
"loader/workflow-list.yaml": &remoteWorkflowList{},
"loader/excluded-template.yaml": &excludedTemplate{},
"loader/nonexistent-template-list.yaml": &nonExistentTemplateList{},
"loader/nonexistent-workflow-list.yaml": &nonExistentWorkflowList{},
"loader/template-list-not-allowed.yaml": &remoteTemplateListNotAllowed{},
@@ -48,7 +48,7 @@ func (h *remoteTemplateList) Execute(templateList string) error {
defer ts.Close()
configFileData := `remote-template-domain: [ "` + ts.Listener.Addr().String() + `" ]`
err := ioutil.WriteFile("test-config.yaml", []byte(configFileData), os.ModePerm)
err := os.WriteFile("test-config.yaml", []byte(configFileData), os.ModePerm)
if err != nil {
return err
}
@@ -62,6 +62,29 @@ func (h *remoteTemplateList) Execute(templateList string) error {
return expectResultsCount(results, 2)
}
type excludedTemplate struct{}
// Execute executes a test case and returns an error if occurred
func (h *excludedTemplate) Execute(templateList string) error {
router := httprouter.New()
router.GET("/", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
fmt.Fprintf(w, "This is test matcher text")
if strings.EqualFold(r.Header.Get("test"), "nuclei") {
fmt.Fprintf(w, "This is test headers matcher text")
}
})
ts := httptest.NewServer(router)
defer ts.Close()
results, err := testutils.RunNucleiBareArgsAndGetResults(debug, "-target", ts.URL, "-t", templateList, "-include-templates", templateList)
if err != nil {
return err
}
return expectResultsCount(results, 1)
}
type remoteTemplateListNotAllowed struct{}
// Execute executes a test case and returns an error if occurred
@@ -124,7 +147,7 @@ func (h *remoteWorkflowList) Execute(workflowList string) error {
defer ts.Close()
configFileData := `remote-template-domain: [ "` + ts.Listener.Addr().String() + `" ]`
err := ioutil.WriteFile("test-config.yaml", []byte(configFileData), os.ModePerm)
err := os.WriteFile("test-config.yaml", []byte(configFileData), os.ModePerm)
if err != nil {
return err
}
+35 -3
View File
@@ -11,6 +11,7 @@ var networkTestcases = map[string]testutils.TestCase{
"network/hex.yaml": &networkBasic{},
"network/multi-step.yaml": &networkMultiStep{},
"network/self-contained.yaml": &networkRequestSelContained{},
"network/variables.yaml": &networkVariables{},
}
const defaultStaticPort = 5431
@@ -21,7 +22,7 @@ type networkBasic struct{}
func (h *networkBasic) Execute(filePath string) error {
var routerErr error
ts := testutils.NewTCPServer(false, defaultStaticPort, func(conn net.Conn) {
ts := testutils.NewTCPServer(nil, defaultStaticPort, func(conn net.Conn) {
defer conn.Close()
data := make([]byte, 4)
@@ -52,7 +53,7 @@ type networkMultiStep struct{}
func (h *networkMultiStep) Execute(filePath string) error {
var routerErr error
ts := testutils.NewTCPServer(false, defaultStaticPort, func(conn net.Conn) {
ts := testutils.NewTCPServer(nil, defaultStaticPort, func(conn net.Conn) {
defer conn.Close()
data := make([]byte, 5)
@@ -100,7 +101,7 @@ type networkRequestSelContained struct{}
func (h *networkRequestSelContained) Execute(filePath string) error {
var routerErr error
ts := testutils.NewTCPServer(false, defaultStaticPort, func(conn net.Conn) {
ts := testutils.NewTCPServer(nil, defaultStaticPort, func(conn net.Conn) {
defer conn.Close()
_, _ = conn.Write([]byte("Authentication successful"))
@@ -116,3 +117,34 @@ func (h *networkRequestSelContained) Execute(filePath string) error {
return expectResultsCount(results, 1)
}
type networkVariables struct{}
// Execute executes a test case and returns an error if occurred
func (h *networkVariables) Execute(filePath string) error {
var routerErr error
ts := testutils.NewTCPServer(nil, defaultStaticPort, func(conn net.Conn) {
defer conn.Close()
data := make([]byte, 4)
if _, err := conn.Read(data); err != nil {
routerErr = err
return
}
if string(data) == "PING" {
_, _ = conn.Write([]byte("aGVsbG8="))
}
})
defer ts.Close()
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, ts.URL, debug)
if err != nil {
return err
}
if routerErr != nil {
return routerErr
}
return expectResultsCount(results, 1)
}
+48
View File
@@ -0,0 +1,48 @@
package main
import (
"fmt"
"github.com/projectdiscovery/nuclei/v2/pkg/testutils"
)
var offlineHttpTestcases = map[string]testutils.TestCase{
"offlinehttp/rfc-req-resp.yaml": &RfcRequestResponse{},
"offlinehttp/offline-allowed-paths.yaml": &RequestResponseWithAllowedPaths{},
"offlinehttp/offline-raw.yaml": &RawRequestResponse{},
}
type RfcRequestResponse struct{}
// Execute executes a test case and returns an error if occurred
func (h *RfcRequestResponse) Execute(filePath string) error {
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, "offlinehttp/data/", debug, "-passive")
if err != nil {
return err
}
return expectResultsCount(results, 1)
}
type RequestResponseWithAllowedPaths struct{}
// Execute executes a test case and returns an error if occurred
func (h *RequestResponseWithAllowedPaths) Execute(filePath string) error {
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, "offlinehttp/data/", debug, "-passive")
if err != nil {
return err
}
return expectResultsCount(results, 1)
}
type RawRequestResponse struct{}
// Execute executes a test case and returns an error if occurred
func (h *RawRequestResponse) Execute(filePath string) error {
_, err := testutils.RunNucleiTemplateAndGetResults(filePath, "offlinehttp/data/", debug, "-passive")
if err == nil {
return fmt.Errorf("incorrect result: no error (actual) vs error expected")
}
return nil
}
+49 -4
View File
@@ -1,21 +1,24 @@
package main
import (
"crypto/tls"
"net"
"github.com/projectdiscovery/nuclei/v2/pkg/testutils"
)
var sslTestcases = map[string]testutils.TestCase{
"ssl/basic.yaml": &sslBasic{},
"ssl/basic-ztls.yaml": &sslBasicZtls{},
"ssl/basic.yaml": &sslBasic{},
"ssl/basic-ztls.yaml": &sslBasicZtls{},
"ssl/custom-cipher.yaml": &sslCustomCipher{},
"ssl/custom-version.yaml": &sslCustomVersion{},
}
type sslBasic struct{}
// Execute executes a test case and returns an error if occurred
func (h *sslBasic) Execute(filePath string) error {
ts := testutils.NewTCPServer(true, defaultStaticPort, func(conn net.Conn) {
ts := testutils.NewTCPServer(&tls.Config{}, defaultStaticPort, func(conn net.Conn) {
defer conn.Close()
data := make([]byte, 4)
if _, err := conn.Read(data); err != nil {
@@ -36,7 +39,7 @@ type sslBasicZtls struct{}
// Execute executes a test case and returns an error if occurred
func (h *sslBasicZtls) Execute(filePath string) error {
ts := testutils.NewTCPServer(true, defaultStaticPort, func(conn net.Conn) {
ts := testutils.NewTCPServer(&tls.Config{}, defaultStaticPort, func(conn net.Conn) {
defer conn.Close()
data := make([]byte, 4)
if _, err := conn.Read(data); err != nil {
@@ -52,3 +55,45 @@ func (h *sslBasicZtls) Execute(filePath string) error {
return expectResultsCount(results, 1)
}
type sslCustomCipher struct{}
// Execute executes a test case and returns an error if occurred
func (h *sslCustomCipher) Execute(filePath string) error {
ts := testutils.NewTCPServer(&tls.Config{CipherSuites: []uint16{tls.TLS_AES_128_GCM_SHA256}}, defaultStaticPort, func(conn net.Conn) {
defer conn.Close()
data := make([]byte, 4)
if _, err := conn.Read(data); err != nil {
return
}
})
defer ts.Close()
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, ts.URL, debug)
if err != nil {
return err
}
return expectResultsCount(results, 1)
}
type sslCustomVersion struct{}
// Execute executes a test case and returns an error if occurred
func (h *sslCustomVersion) Execute(filePath string) error {
ts := testutils.NewTCPServer(&tls.Config{MinVersion: tls.VersionTLS12, MaxVersion: tls.VersionTLS12}, defaultStaticPort, func(conn net.Conn) {
defer conn.Close()
data := make([]byte, 4)
if _, err := conn.Read(data); err != nil {
return
}
})
defer ts.Close()
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, ts.URL, debug)
if err != nil {
return err
}
return expectResultsCount(results, 1)
}
+34
View File
@@ -0,0 +1,34 @@
package main
import (
"os"
"github.com/projectdiscovery/nuclei/v2/pkg/testutils"
)
func getTemplatesDir() string {
temp := os.TempDir()
return temp
}
var templatesDirTestCases = map[string]testutils.TestCase{
"dns/cname-fingerprint.yaml": &templateDirWithTargetTest{},
}
type templateDirWithTargetTest struct{}
// Execute executes a test case and returns an error if occurred
func (h *templateDirWithTargetTest) Execute(filePath string) error {
defer os.RemoveAll(getTemplatesDir())
var routerErr error
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, "8x8exch02.8x8.com", debug, "-ud", getTemplatesDir())
if err != nil {
return err
}
if routerErr != nil {
return routerErr
}
return expectResultsCount(results, 1)
}
+72
View File
@@ -0,0 +1,72 @@
package main
import (
"fmt"
"strings"
"github.com/projectdiscovery/nuclei/v2/pkg/testutils"
"github.com/projectdiscovery/nuclei/v2/pkg/utils"
)
func getTemplatePath() string {
templatePath, _ := utils.GetDefaultTemplatePath()
return templatePath
}
var templatesPathTestCases = map[string]testutils.TestCase{
//template folder path issue
"http/get.yaml": &folderPathTemplateTest{},
//cwd
"./dns/cname-fingerprint.yaml": &cwdTemplateTest{},
//relative path
"dns/cname-fingerprint.yaml": &relativePathTemplateTest{},
//absolute path
fmt.Sprintf("%v/dns/cname-fingerprint.yaml", getTemplatePath()): &absolutePathTemplateTest{},
}
type cwdTemplateTest struct{}
// Execute executes a test case and returns an error if occurred
func (h *cwdTemplateTest) Execute(filePath string) error {
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, "8x8exch02.8x8.com", debug)
if err != nil {
return err
}
return expectResultsCount(results, 1)
}
type relativePathTemplateTest struct{}
// Execute executes a test case and returns an error if occurred
func (h *relativePathTemplateTest) Execute(filePath string) error {
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, "8x8exch02.8x8.com", debug)
if err != nil {
return err
}
return expectResultsCount(results, 1)
}
type absolutePathTemplateTest struct{}
// Execute executes a test case and returns an error if occurred
func (h *absolutePathTemplateTest) Execute(filePath string) error {
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, "8x8exch02.8x8.com", debug)
if err != nil {
return err
}
return expectResultsCount(results, 1)
}
type folderPathTemplateTest struct{}
// Execute executes a test case and returns an error if occurred
func (h *folderPathTemplateTest) Execute(filePath string) error {
results, err := testutils.RunNucleiBinaryAndGetCombinedOutput(debug, []string{"-t", filePath, "-target", "http://example.com"})
if err != nil {
return err
}
if strings.Contains(results, "installing") {
return fmt.Errorf("couldn't find template path,re-installing")
}
return nil
}
Loaded 100 of 326 files, more files were not shown because too many files have changed in this diff. Show more