Compare commits

...
2042 Commits
Author SHA1 Message Date
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
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
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
Sandeep Singh fe6b1e4671 Merge pull request #1636 from projectdiscovery/dev
bugfix release
2022-02-24 02:30:43 +05:30
sandeep 60a723ffab Update config.go 2022-02-24 02:21:58 +05:30
Sandeep Singh e4d17bff67 Merge pull request #1635 from projectdiscovery/proxy-to-stringslice
path normalization bugfix
2022-02-24 02:09:28 +05:30
Sandeep Singh bf7a9aa708 Merge branch 'dev' into proxy-to-stringslice 2022-02-24 01:43:53 +05:30
Ice3man fb5a34de57 Merge branch 'proxy-to-stringslice' of https://github.com/projectdiscovery/nuclei into proxy-to-stringslice 2022-02-23 21:46:10 +05:30
Ice3man 010bab5aaf Fixed failing tests due to missing field declaration 2022-02-23 21:45:55 +05:30
sandeep ddb62ee3ff go mod update 2022-02-23 18:56:29 +05:30
Mzack9999 97fd1f7ab3 Merge pull request #1632 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.43.4
chore(deps): bump github.com/aws/aws-sdk-go from 1.43.3 to 1.43.4 in /v2
2022-02-23 14:08:57 +01:00
mzack 6746071979 Refactoring file templates to handle large files in chunks + removing deprecated io methods 2022-02-23 13:54:46 +01:00
Ice3man 793db8a614 Use normalized original helpers to skip lowercasing for flags 2022-02-23 18:00:43 +05:30
dependabot[bot] 1c0689ad7e chore(deps): bump github.com/aws/aws-sdk-go from 1.43.3 to 1.43.4 in /v2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.3 to 1.43.4.
- [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.3...v1.43.4)

---
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-23 05:18:40 +00:00
sandeep 1d11a8e40c Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into dev 2022-02-22 15:36:43 +05:30
sandeep 95f330d7e8 dev update 2022-02-22 15:36:34 +05:30
Sandeep Singh 6ea16bab61 Merge pull request #1628 from projectdiscovery/dev
Bugfix release
2022-02-22 15:36:05 +05:30
tanimdiucse123andSandeep Singh bae7e2810f Update README.md (#1606)
* Update README.md

Grammatical & punctuation error.

* Update README.md

Co-authored-by: Sandeep Singh <[email protected]>
2022-02-22 15:30:07 +05:30
sandeep cedb1f45f7 readme update 2022-02-22 15:23:47 +05:30
dependabot[bot] 9498692046 chore(deps): bump github.com/andygrunwald/go-jira in /v2 (#1620)
Bumps [github.com/andygrunwald/go-jira](https://github.com/andygrunwald/go-jira) from 1.14.0 to 1.15.0.
- [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.14.0...v1.15.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]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-22 13:45:37 +05:30
dependabot[bot] 63fff7c294 chore(deps): bump github.com/xanzy/go-gitlab in /v2 (#1600)
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.55.0 to 0.55.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.55.0...v0.55.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]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-22 13:45:21 +05:30
dependabot[bot] af9472fb07 chore(deps): bump github.com/aws/aws-sdk-go from 1.43.0 to 1.43.3 in /v2 (#1626)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.43.0 to 1.43.3.
- [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.0...v1.43.3)

---
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-02-22 13:44:57 +05:30
sandeep 35e91a771d version update 2022-02-22 13:14:02 +05:30
Sajad 94d8c1d8e8 remove new-addtions file creation (#1624) 2022-02-22 13:10:57 +05:30
Ice3man 981e777b58 Use stringslice for proxy configuration instead of normalized 2022-02-20 17:41:10 +05:30
dependabot[bot] ed600871ae chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#1610)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.42.53 to 1.43.0.
- [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.42.53...v1.43.0)

---
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]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-17 11:18:15 +05:30
dependabot[bot] 685c91adbd chore(deps): bump golang from 1.17.6-alpine to 1.17.7-alpine (#1598)
Bumps golang from 1.17.6-alpine to 1.17.7-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-02-15 12:33:44 +05:30
dependabot[bot] 9d811dd7ba chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#1603)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.42.51 to 1.42.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.42.51...v1.42.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]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-15 11:44:56 +05:30
dependabot[bot] 33cec3e506 chore(deps): bump github.com/go-rod/rod from 0.101.8 to 0.102.0 in /v2 (#1589)
Bumps [github.com/go-rod/rod](https://github.com/go-rod/rod) from 0.101.8 to 0.102.0.
- [Release notes](https://github.com/go-rod/rod/releases)
- [Commits](https://github.com/go-rod/rod/compare/v0.101.8...v0.102.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]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-12 20:10:44 +05:30
dependabot[bot] 4050ac3a9f chore(deps): bump github.com/aws/aws-sdk-go in /v2 (#1595)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.42.48 to 1.42.51.
- [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.42.48...v1.42.51)

---
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-02-12 20:10:07 +05:30
dependabot[bot] cf68e6ec6b chore(deps): bump github.com/xanzy/go-gitlab in /v2 (#1596)
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.54.4 to 0.55.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.54.4...v0.55.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-02-12 20:09:52 +05:30
GitHub Action d7d896b75a Auto Generate Syntax Docs + JSONSchema [Thu Feb 10 10:30:58 UTC 2022] 🤖 2022-02-10 10:30:58 +00:00
Ice3man 7d83d3f8c9 Added line number for file results + stats fixes (#1495)
* Added line number for file results + stats fixes

* Misc

* Improved file result line calculation as per review

* Added new match-all attribute for file template matcher line count
2022-02-10 15:59:05 +05:30
Sandeep Singh ab1da1aa8e Added Sonar workflow (#1591)
* Added SonarCloud workflow

* added extension exclusion
2022-02-09 20:29:31 +05:30
Mzack9999 0732406a68 Uniform behavior for input CLI flags (#1569)
* Adding file normalized string slice support

* updating goflags
2022-02-09 10:16:17 +05:30
GitHub Action 73dec71628 Auto Generate Syntax Docs + JSONSchema [Tue Feb 8 07:42:20 UTC 2022] 🤖 2022-02-08 07:42:20 +00:00
Sandeep Singh ece56ea39d Merge pull request #1583 from projectdiscovery/typos
Typo fixes
2022-02-08 13:10:43 +05:30
Mzack9999 26a1f86b93 Merge pull request #1585 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.42.48
chore(deps): bump github.com/aws/aws-sdk-go from 1.42.47 to 1.42.48 in /v2
2022-02-08 08:19:48 +01:00
Mzack9999 8fd97dd7ed Merge pull request #1584 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/miekg/dns-1.1.46
chore(deps): bump github.com/miekg/dns from 1.1.45 to 1.1.46 in /v2
2022-02-08 08:16:07 +01:00
dependabot[bot] dfdb780c6f 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.42.47 to 1.42.48.
- [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.42.47...v1.42.48)

---
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-08 05:25:57 +00:00
dependabot[bot] 0536645704 chore(deps): bump github.com/miekg/dns from 1.1.45 to 1.1.46 in /v2
Bumps [github.com/miekg/dns](https://github.com/miekg/dns) from 1.1.45 to 1.1.46.
- [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.45...v1.1.46)

---
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-02-08 05:25:48 +00:00
forgedhallpass 72af50155d Typo fixes 2022-02-07 16:41:55 +02:00
Sandeep Singh d877f62f8d Merge pull request #1582 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.42.47
chore(deps): bump github.com/aws/aws-sdk-go from 1.42.46 to 1.42.47 in /v2
2022-02-07 13:37:36 +05:30
dependabot[bot] de170f9c91 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.42.46 to 1.42.47.
- [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.42.46...v1.42.47)

---
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-07 05:23:33 +00:00
Sandeep Singh 938928ad9f Merge pull request #1577 from projectdiscovery/file-size-update
update: increased limit for file protocol
2022-02-06 13:01:41 +05:30
sandeep e77105b402 Merge branch 'master' of https://github.com/projectdiscovery/nuclei into dev 2022-02-06 00:17:43 +05:30
Sandeep Singh e383449fb3 readme update 2022-02-06 00:17:13 +05:30
sandeep 26de1c0995 update: increased limit for file protocol
Increased default file size to read for file templates from 5 MB to 1GB to avoid false negative results.
2022-02-05 22:39:34 +05:30
sandeep 2d1c96a338 dev: version update 2022-02-05 21:13:26 +05:30
Sandeep Singh 149edf12d5 Merge pull request #1576 from projectdiscovery/dev
v2.6.0 Release
2022-02-05 20:48:24 +05:30
sandeep 7c8137cfff readme update 2022-02-05 20:39:59 +05:30
GitHub Action 845bae5c32 Auto Generate Syntax Docs + JSONSchema [Sat Feb 5 15:00:13 UTC 2022] 🤖 2022-02-05 15:00:13 +00:00
Sandeep Singh 145faeef8d Merge pull request #1574 from projectdiscovery/issue-582-headless-payloads
Adding support for payloads in headless protocol
2022-02-05 20:28:46 +05:30
GitHub Action a06e1c59ab Auto Generate Syntax Docs + JSONSchema [Sat Feb 5 06:56:19 UTC 2022] 🤖 2022-02-05 06:56:19 +00:00
Sandeep Singh a48e2adb69 Merge pull request #1529 from projectdiscovery/issue-1231-zcrypto 2022-02-05 12:24:47 +05:30
mzack fa6b21e9be fixing wrong bool condition 2022-02-05 00:37:03 +01:00
mzack 8694af971e fixing test 2022-02-04 11:51:29 +01:00
mzack 76fe8b682c correcting comment 2022-02-04 11:46:11 +01:00
mzack 54d8f9fdb5 Adding support for payloads in headless protocol 2022-02-04 11:43:42 +01:00
Mzack9999 993b5e7e77 Merge pull request #1567 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/xanzy/go-gitlab-0.54.4
chore(deps): bump github.com/xanzy/go-gitlab from 0.51.1 to 0.54.4 in /v2
2022-02-04 09:18:51 +01:00
mzack 9c578d4c71 Update gitlab.go 2022-02-04 08:10:26 +01:00
Mzack9999 377bc21f09 Merge pull request #1571 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.42.46
chore(deps): bump github.com/aws/aws-sdk-go from 1.42.45 to 1.42.46 in /v2
2022-02-04 07:22:30 +01:00
mzack acfe35eda9 fixing cipher suites selection 2022-02-04 07:22:10 +01:00
dependabot[bot] 996357b49a 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.42.45 to 1.42.46.
- [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.42.45...v1.42.46)

---
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-04 05:23:40 +00:00
Sandeep Singh 325f5d4e37 Merge pull request #1570 from cn-kali-team/cn_readme
Cn readme
2022-02-04 02:16:36 +05:30
Sandeep Singh 249937ca72 Merge pull request #1561 from projectdiscovery/issue-1543-rand-seed
Implementing incremental expression replacement
2022-02-03 23:19:35 +05:30
Sandeep Singh d20f557ec4 Merge pull request #1555 from projectdiscovery/issue-1394-headless-templating
Adding support for CLI/ENV vars to headless
2022-02-03 23:10:04 +05:30
cn-kali-team b3dbdbd3ae Inadvertently seen typos 2022-02-04 00:13:22 +08:00
mzack 62fc7a8110 Merge branch 'dev' into issue-1231-zcrypto 2022-02-03 09:02:09 +01:00
Sandeep Singh ae45519551 Merge pull request #1568 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.42.45
chore(deps): bump github.com/aws/aws-sdk-go from 1.42.44 to 1.42.45 in /v2
2022-02-03 11:29:07 +05:30
GitHub Action ddd652c3ed Auto Generate Syntax Docs + JSONSchema [Thu Feb 3 05:55:07 UTC 2022] 🤖 2022-02-03 05:55:07 +00:00
Sandeep Singh 04f8f84c9d Merge pull request #1564 from projectdiscovery/issue-1542-caa-query
Adding support for DNS CAA query
2022-02-03 11:23:03 +05:30
dependabot[bot] 7c47395780 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.42.44 to 1.42.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.42.44...v1.42.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]>
2022-02-03 05:25:54 +00:00
dependabot[bot] 85cf580dce chore(deps): bump github.com/xanzy/go-gitlab in /v2
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.51.1 to 0.54.4.
- [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.51.1...v0.54.4)

---
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-02-03 05:25:45 +00:00
Sandeep Singh e502d61550 Merge pull request #1559 from projectdiscovery/issue-1546-stop-at-first-with-extractors
Fixing exit at first match with extractors
2022-02-02 23:16:48 +05:30
Sandeep Singh 2875be8031 Merge pull request #1560 from projectdiscovery/issue-1553-mixed-matchers
Differentiate between interact matchers and markers
2022-02-02 23:16:06 +05:30
Sandeep Singh a03fa4e0ce Merge pull request #1562 from projectdiscovery/issue-1463-std-logger
Disable internal standard library logger
2022-02-02 14:04:26 +05:30
Mzack9999 9233056238 Merge pull request #1563 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/shirou/gopsutil/v3-3.22.1
chore(deps): bump github.com/shirou/gopsutil/v3 from 3.21.12 to 3.22.1 in /v2
2022-02-02 08:07:18 +01:00
mzack 4d6a8a71a7 Adding support for DNS CAA query 2022-02-02 07:54:15 +01:00
dependabot[bot] 2e6476eac2 chore(deps): bump github.com/shirou/gopsutil/v3 in /v2
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.21.12 to 3.22.1.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.21.12...v3.22.1)

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

Signed-off-by: dependabot[bot] <[email protected]>
2022-02-02 05:21:13 +00:00
mzack 5889a39fb4 Disable internal standard library logger 2022-02-01 14:46:40 +01:00
mzack 766a3eefb6 Implementing incremental expression replacement 2022-02-01 14:12:16 +01:00
mzack 4370abf89b improving markers detection 2022-02-01 12:34:12 +01:00
mzack b3c61ee157 Differentiate between interact matchers and markers 2022-02-01 12:10:18 +01:00
mzack 3807e648c7 Fixing exit at first match with extractors 2022-02-01 11:25:29 +01:00
mzack c701e2ad4a adding support for interactsh 2022-01-31 08:52:36 +01:00
Mzack9999 1bbcdd30dc Merge pull request #1556 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.42.44
chore(deps): bump github.com/aws/aws-sdk-go from 1.42.43 to 1.42.44 in /v2
2022-01-31 06:46:01 +01:00
dependabot[bot] 4ff22a50d9 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.42.43 to 1.42.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.42.43...v1.42.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-01-31 05:31:11 +00:00
mzack 2ba8e10050 Adding support for CLI/ENV vars to headless 2022-01-31 02:25:14 +01:00
Sandeep Singh d67d8232c2 Merge pull request #1549 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.42.43
chore(deps): bump github.com/aws/aws-sdk-go from 1.42.42 to 1.42.43 in /v2
2022-01-28 13:27:17 +05:30
dependabot[bot] b6fd4ebbcc 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.42.42 to 1.42.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.42.42...v1.42.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-01-28 05:18:17 +00:00
mzack 672d21cce7 using self-generated certificate 2022-01-27 23:16:47 +01:00
mzack 19d2b80a1c adding ssl test cases + tcpserver refactor 2022-01-27 21:29:28 +01:00
mzack 9eff05b99f updating deps 2022-01-27 20:36:29 +01:00
mzack cd3dba5a56 updating fastdialer 2022-01-27 20:34:43 +01:00
Sandeep Singh 8566bc0374 Merge pull request #1472 from projectdiscovery/remote-templates
Add support to run remote template
2022-01-27 18:02:52 +05:30
Sajad Parra 30850ced50 fix remote template integration test cases 2022-01-27 17:19:23 +05:30
Sajad Parra a47d4f8b8f validate remote input list URL and it's contents against allowed remote template domain list 2022-01-27 13:45:03 +05:30
Ice3man 8dfa9cee39 Added debug-req/resp support for interactsh interactions (#1491)
* Added debug-req/resp support for interactsh interactions

* Added format function for interact debug logs + misc fixes

* Added function for interact debug header

* Typo fix

* Enable debug logging for req/resp debug flag
2022-01-27 12:14:32 +05:30
Sandeep Singh 88fa050044 Merge pull request #1540 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.42.42
chore(deps): bump github.com/aws/aws-sdk-go from 1.42.41 to 1.42.42 in /v2
2022-01-27 11:45:16 +05:30
dependabot[bot] 0605de707a 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.42.41 to 1.42.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.42.41...v1.42.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-01-27 05:24:11 +00:00
Sandeep Singh 7cfa39f34e Merge pull request #1516 from projectdiscovery/issue-1497-lexer
Implementing lexer with runtime expression validation
2022-01-26 23:34:35 +05:30
Mzack9999 64550e420e Merge pull request #1537 from projectdiscovery/issue-1432
Headless limited code refactor for better readability
2022-01-26 14:38:21 +01:00
mzack 695404477e Headless limited code refactor for better readability 2022-01-26 14:20:23 +01:00
Sandeep Singh 01aa0388b9 Merge pull request #1536 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.42.41
chore(deps): bump github.com/aws/aws-sdk-go from 1.42.37 to 1.42.41 in /v2
2022-01-26 17:36:11 +05:30
dependabot[bot] 670421a79d 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.42.37 to 1.42.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.42.37...v1.42.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-01-26 05:20:13 +00:00
mzack e7655f1df0 fixing tls config generation 2022-01-25 20:57:54 +01:00
mzack a6798f37ad making ztls global and optional 2022-01-25 20:48:21 +01:00
mzack 449e4fa431 using standard library for tls13 2022-01-25 13:26:22 +01:00
mzack a57d25fab8 adding support for configurable TLS version/cipher suites 2022-01-24 18:20:29 +01:00
mzack 6107559c8d Add support for ztls for ssl/crypto templates 2022-01-24 16:15:02 +01:00
Sajad Parra c6de2ca406 rename few vars, extract duplicate functions to utils 2022-01-24 16:48:12 +05:30
sandeep 49ed4d2b93 dev version update 2022-01-23 14:25:28 +05:30
Sandeep Singh 4d4d72229b Merge pull request #1526 from projectdiscovery/dev
v2.5.9 Release
2022-01-23 14:24:43 +05:30
sandeep aa695c4197 version update 2022-01-23 13:18:06 +05:30
Sajad Parra ba33622073 add unit test coverage for remote tempates 2022-01-21 20:14:50 +05:30
Sandeep Singh 3091e7075f Merge pull request #1506 from projectdiscovery/default-port-fix
fix: strip default http/https ports from Host header
2022-01-20 17:50:56 +05:30
Ice3man 4f7148248b misc changes 2022-01-20 17:27:53 +05:30
Sandeep Singh 956442ff06 Merge pull request #1494 from projectdiscovery/fix-progress-calculation-http
Fixed stats calculation for payloads in http base request
2022-01-20 15:34:00 +05:30
Sandeep Singh 487bebe4c8 Merge pull request #1522 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.42.37
chore(deps): bump github.com/aws/aws-sdk-go from 1.42.36 to 1.42.37 in /v2
2022-01-20 13:55:21 +05:30
dependabot[bot] e04aaf6ce9 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.42.36 to 1.42.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.42.36...v1.42.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]>
2022-01-20 05:23:38 +00:00
mzack 8559cfabca removing unused code 2022-01-19 15:16:47 +01:00
mzack adf4721833 making markers parametric + simple match/replace for basic variables 2022-01-19 14:57:25 +01:00
mzack 369255a4fe Implementing lexer with runtime expression validation 2022-01-19 14:10:11 +01:00
Sandeep Singh 93616a9e80 Merge pull request #1511 from projectdiscovery/issue-1464-dns-ptr-query
Adding auto-PTR IP to FQDN
2022-01-19 17:30:12 +05:30
Sandeep Singh 6a5b9a4337 Merge pull request #1513 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.42.36
chore(deps): bump github.com/aws/aws-sdk-go from 1.42.35 to 1.42.36 in /v2
2022-01-19 12:18:10 +05:30
dependabot[bot] 67106ff592 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.42.35 to 1.42.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.42.35...v1.42.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-01-19 05:18:58 +00:00
Sandeep Singh 59762ae266 Merge pull request #1503 from projectdiscovery/dsl_concat
DSL concat function
2022-01-18 21:34:21 +05:30
Sandeep Singh 3afc2f4202 Merge pull request #1500 from projectdiscovery/issue-1471-race-conditions
Fixing race-requests block on curl generation command
2022-01-18 21:32:46 +05:30
Sandeep Singh eb6a1b263d Merge pull request #1489 from projectdiscovery/workflow-validation-fix
update validation logic to validate workflow templates and subtemplates
2022-01-18 21:26:17 +05:30
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
Sandeep Singh ed8f154c0a Merge pull request #1499 from projectdiscovery/fix-misc
Misc changes to description
2022-01-18 19:19:49 +05:30
GitHub Action f51d8cb4fe Auto Generate Syntax Docs + JSONSchema [Tue Jan 18 13:47:48 UTC 2022] 🤖 2022-01-18 13:47:48 +00:00
mzack aec007e1b4 adding integration tests for single/multiple race conditions requests 2022-01-18 14:15:15 +01:00
mzack f552b07a5f fixing test case 2022-01-18 13:49:23 +01:00
mzack 994bc9e789 adding PTR integration test 2022-01-18 13:47:15 +01:00
mzack aea7825f30 Merge branch 'dev' into issue-1464-dns-ptr-query 2022-01-18 13:38:39 +01:00
mzack bc84fb1109 Adding auto-PTR IP to FQDN 2022-01-18 13:35:41 +01:00
Sajad Parra 7af556c36c return validation result instead of continue in the loop 2022-01-18 14:44:58 +05:30
Ice3man 693796789b fix: strip default http/https ports from Host header 2022-01-18 04:13:59 +05:30
forgedhallpass 8019fb8f08 test: additional use-cases for the expression test 2022-01-17 14:05:36 +02:00
forgedhallpass 286e27510d test: introduce 'concat' DSL function
* correct order and number of expected results
2022-01-17 13:50:42 +02:00
forgedhallpass d4a015fb47 test: introduce 'concat' DSL function
* fixed typo in test
2022-01-17 13:45:16 +02:00
forgedhallpass bff1952268 test: introduce 'concat' DSL function
* removed irrelevant test case (covered elsewhere)
2022-01-17 13:41:34 +02:00
forgedhallpass ae07dce014 refactor: removed redundant escape characters from the unresolvedVariablesRegex variable 2022-01-17 13:32:47 +02:00
forgedhallpass 7f6c72853f feat: introduce 'concat' DSL function #1502 2022-01-17 13:32:15 +02:00
mzack 2ee74b483b Fixing race-requests block on curl generation command 2022-01-17 11:31:14 +01:00
Ice3man 6e71313d2b Misc changes to description 2022-01-17 15:35:27 +05:30
Sajad Parra 9865b14c70 update goflags to config-only-flag branch 2022-01-17 13:29:28 +05:30
Sandeep Singh abba498192 Merge pull request #1496 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.42.35
chore(deps): bump github.com/aws/aws-sdk-go from 1.42.34 to 1.42.35 in /v2
2022-01-17 12:10:19 +05:30
dependabot[bot] 918e09d84d 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.42.34 to 1.42.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.42.34...v1.42.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]>
2022-01-17 05:21:08 +00:00
Ice3man bd7f32d92f Fixed stats calculation for payloads in http base request 2022-01-17 03:33:10 +05:30
Sandeep Singh 4421202bc1 Merge pull request #1492 from projectdiscovery/redundant-color-log
Do not print redundant color log info with blank severity
2022-01-16 17:19:16 +05:30
Sandeep Singh 562c89c1d4 Merge pull request #1490 from projectdiscovery/issue-1433-additional-http-vars
Extending http variables list with dns generated variables
2022-01-16 17:14:05 +05:30
GitHub Action 72e842885d Auto Generate Syntax Docs + JSONSchema [Sun Jan 16 11:36:33 UTC 2022] 🤖 2022-01-16 11:36:33 +00:00
Sandeep Singh 2ee27c87cf Merge pull request #1484 from projectdiscovery/issue-1384-debug-method
Adding support for Debug http verb
2022-01-16 17:04:57 +05:30
Sandeep Singh a4c3a5c106 Merge pull request #1488 from projectdiscovery/issue-1459-new-templates-loader
Excluding non yaml file from new additions loading
2022-01-16 15:16:43 +05:30
Ice3man fa6ec8a7e6 Do not print redundant color log info with blank severity 2022-01-15 06:17:23 +05:30
mzack d7f7d9d1fc fixing function name 2022-01-14 12:03:24 +01:00
mzack 33f6f510b1 Extending http variables list with dns generated variables 2022-01-14 12:00:59 +01:00
Sajad Parra 09893539d2 update validation logic to validate workflow templates and subtemplates 2022-01-14 16:27:54 +05:30
mzack 11df6da209 Excluding non yaml file from new additions loading 2022-01-14 11:20:19 +01:00
Sandeep Singh 7ff2335935 Merge pull request #1487 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.42.34
chore(deps): bump github.com/aws/aws-sdk-go from 1.42.33 to 1.42.34 in /v2
2022-01-14 11:43:41 +05:30
Sandeep Singh 41f7a31640 Merge pull request #1486 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/go-playground/validator/v10-10.10.0
chore(deps): bump github.com/go-playground/validator/v10 from 10.9.0 to 10.10.0 in /v2
2022-01-14 11:43:17 +05:30
Sandeep Singh 9494bfdb53 Merge pull request #1485 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/shirou/gopsutil/v3-3.21.12
chore(deps): bump github.com/shirou/gopsutil/v3 from 3.21.9 to 3.21.12 in /v2
2022-01-14 11:42:40 +05:30
dependabot[bot] 92882bb83b 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.42.33 to 1.42.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.42.33...v1.42.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-01-14 05:35:15 +00:00
dependabot[bot] 77946771eb 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.9.0 to 10.10.0.
- [Release notes](https://github.com/go-playground/validator/releases)
- [Commits](https://github.com/go-playground/validator/compare/v10.9.0...v10.10.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-01-14 05:35:05 +00:00
dependabot[bot] df4d97dca1 chore(deps): bump github.com/shirou/gopsutil/v3 in /v2
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.21.9 to 3.21.12.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.21.9...v3.21.12)

---
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-01-14 05:34:55 +00:00
mzack 436d7b40f0 Adding support for Debug http verb 2022-01-13 20:24:31 +01:00
Sandeep Singh 7b60b31750 Merge pull request #1481 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.42.33
chore(deps): bump github.com/aws/aws-sdk-go from 1.42.3 to 1.42.33 in /v2
2022-01-14 00:12:23 +05:30
Sandeep Singh 3281b727d2 Merge pull request #1480 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/owenrumney/go-sarif-1.1.1
chore(deps): bump github.com/owenrumney/go-sarif from 1.0.11 to 1.1.1 in /v2
2022-01-14 00:11:35 +05:30
Sandeep Singh 04cd7a9699 Merge pull request #1482 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/itchyny/gojq-0.12.6
chore(deps): bump github.com/itchyny/gojq from 0.12.5 to 0.12.6 in /v2
2022-01-14 00:11:25 +05:30
Sandeep Singh 73a6701647 Merge pull request #1483 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/projectdiscovery/fastdialer-0.0.14
chore(deps): bump github.com/projectdiscovery/fastdialer from 0.0.13 to 0.0.14 in /v2
2022-01-14 00:11:09 +05:30
sandeep c3f27caa64 dev version update 2022-01-13 18:54:07 +05:30
sandeep 1956dab53b release workflow update 2022-01-13 18:47:52 +05:30
dependabot[bot] eb498577b5 chore(deps): bump github.com/projectdiscovery/fastdialer in /v2
Bumps [github.com/projectdiscovery/fastdialer](https://github.com/projectdiscovery/fastdialer) from 0.0.13 to 0.0.14.
- [Release notes](https://github.com/projectdiscovery/fastdialer/releases)
- [Commits](https://github.com/projectdiscovery/fastdialer/compare/v0.0.13...v0.0.14)

---
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-01-13 13:12:57 +00:00
dependabot[bot] 25f3a9740d chore(deps): bump github.com/itchyny/gojq from 0.12.5 to 0.12.6 in /v2
Bumps [github.com/itchyny/gojq](https://github.com/itchyny/gojq) from 0.12.5 to 0.12.6.
- [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.5...v0.12.6)

---
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-01-13 13:12:54 +00:00
dependabot[bot] 2be05110db 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.42.3 to 1.42.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.42.3...v1.42.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-01-13 13:12:49 +00:00
dependabot[bot] 3bed9b76cb chore(deps): bump github.com/owenrumney/go-sarif in /v2
Bumps [github.com/owenrumney/go-sarif](https://github.com/owenrumney/go-sarif) from 1.0.11 to 1.1.1.
- [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/v1.0.11...v1.1.1)

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

Signed-off-by: dependabot[bot] <[email protected]>
2022-01-13 13:12:35 +00:00
Sandeep Singh 57d947f08e Merge pull request #1478 from projectdiscovery/dev
v2.5.8 Release
2022-01-13 18:41:18 +05:30
sandeep 6550453ed1 readme update 2022-01-13 18:27:52 +05:30
sandeep 2221700b5b minor printing update 2022-01-13 18:17:34 +05:30
sandeep a6c4c7c9b6 version update 2022-01-13 17:53:04 +05:30
Ice3man 24326389a4 Added interactsh additional variables support (#1468)
* Added interactsh additional variables support

* Added support for interact server rotation

* Misc fixes to interact related modules

* Fixed a crash with interactsh

* Perform deduplication of output extract data before printing
2022-01-13 13:22:43 +05:30
Sajad Parra d1303797c0 * Add support to run remote template
* Add remote-template-domain config only flag to specify allowed domain list to load remote templates from
2022-01-12 18:33:17 +05:30
Mzack9999 3748eae5fb Fixing full URL output with unsafe requests (#1445)
* Fixing full URL output with unsafe requests

* using request url as matched url if empty
2022-01-10 18:54:33 +05:30
forgedhallpass b77723941d Merge pull request #1467 from projectdiscovery/dependabot/docker/dev/golang-1.17.6-alpine
chore(deps): bump golang from 1.17.5-alpine to 1.17.6-alpine
2022-01-10 11:48:15 +02:00
Mzack9999 0635b9e54f Adding support for ignore file path override if custom config file is used (#1441)
* Adding support for ignore file path override if custom config file is used
2022-01-10 14:46:48 +05:30
dependabot[bot] 7582e8fd72 chore(deps): bump golang from 1.17.5-alpine to 1.17.6-alpine
Bumps golang from 1.17.5-alpine to 1.17.6-alpine.

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

Signed-off-by: dependabot[bot] <[email protected]>
2022-01-10 05:05:18 +00:00
Mzack9999 c26a1ac21c Improving payloads support in AWS self-contained requests (#1443)
* Improving payloads support in AWS self-contained requests

* removing internal only values from output

* handling dynamic values in url
2022-01-09 18:09:50 +05:30
Sajad 1faddf4723 change spm flag to work at template level instead of global for interactsh (#1466) 2022-01-09 17:34:31 +05:30
Mzack9999 0e8270c7b5 Replacing expression regex with lexical analyzer (#1440)
* Replacing regex with lexical analyzer taken from https://github.com/projectdiscovery/nuclei/blob/610beb8534e0701592bb5dd44355a0db3337cace/v2/pkg/protocols/common/expressions/expressions.go#L66
2022-01-09 17:22:04 +05:30
Mzack9999 39519c01a6 Adding support for template id based execution (#1448) 2022-01-07 17:30:20 +05:30
Sandeep Singh ccef8afbe7 Merge pull request #1465 from projectdiscovery/issue-1312-headless-matchers
Fixing typo in request/response history
2022-01-07 16:35:35 +05:30
mzack cf8bf50c9f fixing typo 2022-01-07 07:41:32 +01:00
Sandeep Singh 6ae650f755 Merge pull request #1438 from projectdiscovery/issue-1393-socks5-proxy-bug
Fixing socks5 proxy for HTTP RFC standard requests
2022-01-05 11:56:37 +05:30
Sandeep Singh 53f3e53b16 Merge pull request #1444 from projectdiscovery/issue-1437-unsafe-pointer-crash
Replacing murmur3 with internal safe-pointer version
2022-01-05 11:51:18 +05:30
mzack 256c1f411e fixing mmh3 signed int32 calculation 2022-01-04 18:10:20 +01:00
Sandeep Singh 8414ee18c0 Merge pull request #1446 from projectdiscovery/issue-810-redirect-with-307
Fixing 307/308 follow redirects with empty body
2022-01-04 21:52:43 +05:30
Sandeep Singh 88bb6cb046 Merge pull request #1308 from projectdiscovery/issue-614-scan-resume
Adding stop-resume support
2022-01-03 15:07:30 +05:30
mzack 810f25f52e removing useless count logic 2022-01-02 10:59:54 +01:00
mzack 9154dc11bf Fixing 307/308 follow redirects with empty body 2022-01-02 10:57:35 +01:00
mzack 357916a6e2 Replacing murmur3 with internal safe-pointer version 2022-01-02 09:09:10 +01:00
Sandeep Singh faae9672ab Merge pull request #1383 from maikthulhu/feature-ldap
add debug logging for interactsh feature-ldap
2022-01-01 13:11:59 +05:30
Sandeep Singh ae2a485b1f Merge branch 'dev' into feature-ldap 2022-01-01 13:01:08 +05:30
sandeep 3d21d9e1ec go mod update 2022-01-01 12:57:51 +05:30
mzack 35532fd813 Fixing socks5 proxy for HTTP RFC standard requests 2021-12-31 12:46:26 +01:00
Sandeep Singh c8e4c829e4 Merge pull request #1434 from projectdiscovery/issue-1287-interactsh-http-fallback
Adding support for automatic http fallback retry for interactsh
2021-12-30 18:38:25 +05:30
Sandeep Singh b0f16b724c Merge pull request #1432 from projectdiscovery/issue-1312-headless-matchers
Adding support for navigation history to matchers
2021-12-30 18:18:00 +05:30
Sandeep Singh 657e1f4d71 Merge pull request #1417 from projectdiscovery/interactsh-first-match-stop
Add stop at first match for interactsh matchers
2021-12-30 17:58:04 +05:30
mzack 1670bf874b fixing lint errors 2021-12-30 13:04:08 +01:00
mzack 7251a2ef60 implementing requested changes 2021-12-30 12:59:42 +01:00
Sajad Parra 8799379e50 update hash function 2021-12-29 18:07:48 +05:30
mzack d0040e440f enabling fallback in tests 2021-12-29 11:16:54 +01:00
mzack d252c3d6ea Adding support for automatic http fallback retry for interactsh 2021-12-29 11:06:33 +01:00
mzack 0a6b84639b adding missing comments 2021-12-29 09:51:50 +01:00
mzack 5d699cdde0 Adding support for full navigation history to headless matchers 2021-12-29 09:48:46 +01:00
Sajad Parra 5115c8b58c remove redundant contains function 2021-12-29 12:33:54 +05:30
Sajad Parra e2b39e403c use ccache to store matchedTemplates with template-id+host hash as key 2021-12-29 12:28:18 +05:30
mzack 9b8344c391 updating interactsh dep to latest ldap commit 2021-12-27 08:20:27 +01:00
mzack f5817a1d9e Merge branch 'dev' into pr/1383 2021-12-27 08:16:06 +01:00
Sandeep Singh e364b3ab31 Merge pull request #1425 from dwisiswant0/update/dependabot
update(dependabot): Make gomod eco works
2021-12-27 10:05:00 +05:30
Dwi Siswanto 3414f7a31e update(dependabot): Make gomod eco works 2021-12-26 16:52:41 +07:00
Sandeep Singh 8fbe451d54 Merge branch 'dev' into feature-ldap 2021-12-25 12:49:44 +05:30
sandeep e02322a396 workflow update 2021-12-25 12:47:48 +05:30
sandeep da2f6dd6cc go mod update 2021-12-25 12:47:02 +05:30
mzack 1f878192ec Merge branch 'dev' into issue-614-scan-resume 2021-12-23 13:15:47 +01:00
Sajad Parra 0edb4274b1 add matchedTemplates to support template wise stop at first match 2021-12-22 21:42:21 +05:30
Sandeep Singh 6ce846971b Merge pull request #1416 from projectdiscovery/issue-1379-fix-templates-repetitions-with-project-file
Improving projectfile http request matching
2021-12-22 11:20:47 +05:30
Sandeep Singh c39b696559 Merge pull request #1418 from projectdiscovery/fix-whois-custom-server
Add missing custom rdap server assign if present in the template
2021-12-21 21:18:14 +05:30
Sajad Parra e6aabffc22 add missing custom rdap server assign if present in the template 2021-12-21 19:02:09 +05:30
sandeep 50bad75cb4 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into interactsh-first-match-stop 2021-12-21 15:46:37 +05:30
mzack 0682b485d0 Merge branch 'dev' into issue-1379-fix-templates-repetitions-with-project-file 2021-12-21 10:59:55 +01:00
mzack d1944c76b9 Improving projectfile http request matching 2021-12-21 10:54:25 +01:00
Sajad Parra c0f9c1da70 interactsh stopAtFirstMatch intergration test 2021-12-21 15:24:16 +05:30
Sajad Parra 911045ae9a add stop at first match for interactsh matchers 2021-12-21 14:20:03 +05:30
Sandeep Singh 200ea05927 Merge pull request #1408 from projectdiscovery/issue-1380-absolute-path-test-windows-fix
Removing invalid negative paths for windows
2021-12-21 14:15:56 +05:30
Mzack9999 75946f7c0f fixing ip/hostname for windows self-contained templates 2021-12-20 16:23:36 +01:00
Sandeep Singh c1b55d06a6 Merge pull request #1407 from projectdiscovery/issue-1405-cve-annotate-crash
Fixing CVE annotate crash
2021-12-20 19:53:37 +05:30
mzack 0a9f890fdd Removing invalid negative paths for windows 2021-12-20 14:11:55 +01:00
mzack d27239e953 Fixing CVE annotate crash 2021-12-20 12:17:04 +01:00
sandeep 8e62abe6e7 fix: example reporting config update 2021-12-20 01:14:23 +05:30
GitHub Action fdc29180a0 Auto Generate Syntax Docs + JSONSchema [Sun Dec 19 19:37:37 UTC 2021] 🤖 2021-12-19 19:37:37 +00:00
Sandeep Singh 2dc877a99f Merge pull request #1247 from projectdiscovery/research-aws-signing
Adding support for aws request signing
2021-12-20 01:06:13 +05:30
sandeep 33e98386c9 dev version update 2021-12-19 18:16:06 +05:30
sandeep 6cde5843b5 go mod updates 2021-12-19 18:05:09 +05:30
Sandeep Singh fa27e16683 Merge pull request #1400 from projectdiscovery/mod-fix
update rdap to fix go mod tidy error
2021-12-19 17:47:24 +05:30
Sajad Parra 0a82669163 update rdap to fix go mod tidy error 2021-12-19 15:46:38 +05:30
mzack e59da29371 improving error/args handling 2021-12-18 20:06:51 +01:00
sandeep 2f00e27bd1 dev version update 2021-12-18 19:58:59 +05:30
Sandeep Singh c682b48a7c Merge pull request #1396 from projectdiscovery/dev
v2.5.6 Release
2021-12-18 19:58:32 +05:30
sandeep b2f20c9879 Merge branch 'master' of https://github.com/projectdiscovery/nuclei into dev 2021-12-18 19:49:13 +05:30
sandeep 1297c883a6 version update 2021-12-18 19:43:52 +05:30
Sandeep Singh 6a408fd6a8 feature: exposed interaction ip information to matchers/extractors (#1395) 2021-12-18 19:32:11 +05:30
Mzack9999 860a40717c Removing outdated macos-11.0 from gh action (#1390) 2021-12-18 18:29:13 +05:30
Mzack9999andSajad Parra e9034a459d Fixing wrong function/variable name in whois integration test (#1389)
* Fixing wrong function/variable name

* remove explicit result length check for whois integration test

Co-authored-by: Sajad Parra <[email protected]>
2021-12-17 11:55:46 +05:30
mzack 714f0c82a9 adding missing return error 2021-12-16 23:41:18 +01:00
mzack 63b194c10a refactoring stop-resume logic with better tracking 2021-12-16 22:32:03 +01:00
GitHub Action 4c70e4976b Auto Generate Syntax Docs + JSONSchema [Thu Dec 16 11:39:23 UTC 2021] 🤖 2021-12-16 11:39:23 +00:00
Sajad 5200bcd94f Whois Protocol Support (using rdap) (#1354)
* init rdap

* add an integration test, option to supply RDAP server to execute the request on

* add rdap protocolMappings

* add debug info, add IP, ASN query type support

* rename rdap to whois, Host to Query in template

* rename pending rdap to whois

* remove port from whois varaiables

* set Host variable even if input is not a parsable url
2021-12-16 17:08:02 +05:30
LuitelSamikshyaandsandeep d152986485 Change filepath to path (#1382)
* filepath to path

* change to revert

* reverted change

* update: disabling cached nuclei temporarily

Co-authored-by: sandeep <[email protected]>
2021-12-16 16:36:20 +05:30
GitHub Action 8b20f384a7 Auto Generate Syntax Docs + JSONSchema [Thu Dec 16 10:52:36 UTC 2021] 🤖 2021-12-16 10:52:36 +00:00
Mzack9999 07e7d0795b Extending deny list to support filenames and folders (#1260)
* Extending deny list to support filenames and folders

* fixing field name

* adding missing edge case with relative path + filename

* handling root path + relative path

* Improving matchers to handle all deny cases
2021-12-16 16:21:06 +05:30
Mzack9999 1fbbce4e41 Adding support for implicit validation during marshal/unmarshal (#1329) 2021-12-16 15:39:38 +05:30
Ice3manandsandeep fea3fabdf2 Misc changes to update logic (#1212)
* Misc changes to update logic

* Misc adjustments to update logic

* update: build check

* update: revert test update

Co-authored-by: sandeep <[email protected]>
2021-12-16 13:59:19 +05:30
LuitelSamikshya 3f86bc7d62 Support major os (#1347)
* workflow check

* changes in run.sh file for windows support
2021-12-16 13:47:29 +05:30
Mike Brown 71040577ce add debug logging for interactsh feature-ldap 2021-12-15 22:52:55 -08:00
forgedhallpass 85e0b96d51 bug: fixed couple of bugs in the DSL functions (#1372)
* feat: Improve DSL function UX #1295

Sort the output signatures

* feat: Improve DSL function UX #1295

Sort the output signatures.
Lint: simplified the sorting.

* bug: fixed couple of bugs in the DSL functions

Input number parameters are stored as float64 types, hence the type conversion should happen accordingly. Affected functions:
* rand_int
* wait_for
* unix_time
* rand_text_numeric

Added tests for all functions.
Related: #1261

* bug: fixed couple of bugs in the DSL functions

Handle cases when the optional input character set is an empty string. Affected methods:
* rand_char
* rand_base

* bug: fixed couple of bugs in the DSL functions

Change rand_char to return a one character string, instead of the character code

* refactor: Minor integration test changes to show the actual and expected result numbers

* test: Added integration test for all existing DSL functions

* test: Added integration test for all existing DSL functions

Fixing linter issues.

* feat: Add "repeat" DSL function

* test: Add "repeat" DSL function
2021-12-15 19:33:57 +05:30
forgedhallpass 974cbfb35e feat: Re-run failed integration tests in debug mode (#1367)
* If the tests are executed through GitHub actions and there are failed integration tests, they will be re-executed with verbose output to help figuring out the underlying issues.
* Added some grouping to make reading the logs easier

Ticket: #1365
2021-12-14 18:13:53 +02:00
Sandeep SinghandIce3man543 fbb80610a8 Interactsh response missing in result fix (#1370)
Co-authored-by: Ice3man543 <[email protected]>
2021-12-13 23:23:22 +05:30
sandeep d6a3e30233 dev version update 2021-12-13 19:04:22 +05:30
ed309e446a Interactsh bugfix release (#1368)
* dev version update

* Adding race condition test (#1357)

* Removing linux/arm - Missing chrome package (#1355)

* Trim paths info from released binary (#1356)

* chore(deps): bump golang from 1.17.4-alpine to 1.17.5-alpine (#1363)

Bumps golang from 1.17.4-alpine to 1.17.5-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>

* fix: updating default interactsh server to use

Co-authored-by: Mzack9999 <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-13 18:46:41 +05:30
sandeep aae06e61bd fix: updating default interactsh server to use 2021-12-13 18:42:01 +05:30
dependabot[bot] 78c7dc5e4f chore(deps): bump golang from 1.17.4-alpine to 1.17.5-alpine (#1363)
Bumps golang from 1.17.4-alpine to 1.17.5-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>
2021-12-13 17:43:52 +05:30
Mzack9999 a781720060 Trim paths info from released binary (#1356) 2021-12-10 22:18:22 +05:30
sandeep db530c851a fix: docker build fix 2021-12-10 21:47:47 +05:30
Mzack9999 8334829e54 Removing linux/arm - Missing chrome package (#1355) 2021-12-10 21:45:18 +05:30
Mzack9999 4c565679b5 Adding race condition test (#1357) 2021-12-10 21:42:46 +05:30
mzack e279e0437d moving resume file to config folder 2021-12-10 12:45:29 +01:00
mzack 2f4b131f26 fixing resume skipping on-going scans 2021-12-10 12:27:34 +01:00
sandeep 28b197d79f dev version update 2021-12-09 15:23:24 +05:30
sandeep 599b7bdc71 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei 2021-12-09 14:05:13 +05:30
forgedhallpass 10cf1053f8 feat: Improve DSL function UX #1295 (#1351)
* feat: Improve DSL function UX #1295

Sort the output signatures

* feat: Improve DSL function UX #1295

Sort the output signatures.
Lint: simplified the sorting.
2021-12-09 14:02:01 +05:30
mzack abb78658c6 adding default region 2021-12-09 08:50:54 +01:00
sandeep 2a932d43d2 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei 2021-12-09 12:58:11 +05:30
Sandeep Singh 17ad60d528 Merge pull request #1296 from projectdiscovery/dsl_signatures
feat: Improve DSL function UX
2021-12-09 12:48:18 +05:30
Sandeep Singh 22ce4e65bc Merge pull request #1346 from projectdiscovery/bugfix-template-load-typo
Fixing typo in variable name while validating template payloads
2021-12-09 11:52:52 +05:30
mzack e244768f32 Fixing typo in variable name while validating template payloads 2021-12-08 19:27:47 +01:00
Sandeep Singh 6655521e91 Merge pull request #1341 from projectdiscovery/issue-1339-windows-templates-unzip
Fixing templates bundle unzip on windows
2021-12-08 17:33:22 +05:30
forgedhallpass 2d5784d992 Merge branch 'dev' into dsl_signatures 2021-12-07 18:22:10 +02:00
forgedhallpass d05c4dc122 refactor: renamed misleading receiver names 2021-12-07 18:01:34 +02:00
forgedhallpass 79aed22d46 feat: Improve DSL function UX #1295
Added support for letting people know if:
* the DSL expression does not return a boolean value
* an invalid custom function signature was provided and then display all available function signatures
* an invalid function was provided and then display the correct signature

Unified the DSL function names to use snake case. The old signatures are also kept for backward compatibility.
2021-12-07 17:34:36 +02:00
mzack aeab730dc2 fixing merge conflicts 2021-12-07 09:59:17 +01:00
mzack 197971e6fa Merge branch 'dev' into research-aws-signing 2021-12-07 09:58:55 +01:00
Mzack9999 8bb3b173f2 Merge pull request #1335 from projectdiscovery/dependabot/docker/dev/golang-1.17.4-alpine
chore(deps): bump golang from 1.17.3-alpine to 1.17.4-alpine
2021-12-06 21:12:25 +01:00
Mzack9999 72ec69e37d using payload relative path by default 2021-12-06 21:05:45 +01:00
mzack9999 edc6e5f9b3 fix cross-os chunks calculation 2021-12-06 18:56:52 +01:00
Mzack9999 f2f77b4e75 updating go.sum 2021-12-06 18:18:34 +01:00
Mzack9999 9e41064b4e Merge branch 'dev' into issue-1339-windows-templates-unzip 2021-12-06 18:16:27 +01:00
Mzack9999 b6274ddd77 updating go.sum 2021-12-06 18:15:49 +01:00
Mzack9999 40d01412cb Fixing templates bundle unzip on windows 2021-12-06 18:12:39 +01:00
Sandeep Singh da205efdff Merge pull request #1340 from projectdiscovery/bugfix-windows-template-path
Improving path handling on windows
2021-12-06 21:36:08 +05:30
mzack 9ab674adbc improving cross-os filepath handling 2021-12-06 16:04:39 +01:00
Mzack9999 a72425289b Improving path handling on windows 2021-12-06 11:38:22 +01:00
mzack c47196bcc8 Merge branch 'dev' into research-aws-signing 2021-12-06 08:17:03 +01:00
dependabot[bot] eebc1b90df chore(deps): bump golang from 1.17.3-alpine to 1.17.4-alpine
Bumps golang from 1.17.3-alpine to 1.17.4-alpine.

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

Signed-off-by: dependabot[bot] <[email protected]>
2021-12-06 05:05:22 +00:00
Sandeep Singh e0e48837c6 Merge pull request #1271 from projectdiscovery/dev
v2.5.4 Release preparation
2021-12-05 20:24:15 +05:30
Sandeep Singhandmzack df55f7a2eb Disabling no-sandbox in headless engine (#1135)
* Disabling no-sandbox in headless engine

* limiting disabling sandbox to bare minimum

* adding warnings related to linux os and root user requirement

Co-authored-by: mzack <[email protected]>
2021-12-05 20:14:16 +05:30
sandeep fb3b4fc510 version update 2021-12-05 19:45:44 +05:30
Mzack9999andsandeep 3c88afac0c Fixing payloads path during validation (#1320)
* Fixing payloads path during validation

* Added GH Action for public template parsing / validation

* tracking payload errors as syntax warnings

* improving path parsing + introducing hard failure for runtime errors on validation

Co-authored-by: sandeep <[email protected]>
2021-12-05 19:41:14 +05:30
Mzack9999 8336421179 Improving headless test cases (#1313)
* Adding headless test cases
2021-12-04 23:10:11 +05:30
GitHub Action 0ca39bb6d2 Auto Generate Syntax Docs + JSONSchema [Fri Dec 3 03:46:08 UTC 2021] 🤖 2021-12-03 03:46:08 +00:00
Sandeep Singh eac6ea1bfe Merge pull request #1284 from projectdiscovery/dns-optional
Added default fields for DNS requests
2021-12-03 09:14:49 +05:30
GitHub Action 5eb17833e4 Auto Generate Syntax Docs + JSONSchema [Thu Dec 2 19:06:54 UTC 2021] 🤖 2021-12-02 19:06:54 +00:00
sandeep 982d3c3e61 Merge branch 'master' of https://github.com/projectdiscovery/nuclei into dev 2021-12-03 00:35:02 +05:30
Sandeep Singh 9a6d3d87f0 Merge pull request #1317 from Xc1Ym/master
Update README_CN
2021-12-03 00:33:21 +05:30
mzack c9b9725474 moving sign routine to helper function 2021-12-02 15:57:52 +01:00
GitHub Action 46a2a4440d Auto Generate Syntax Docs + JSONSchema [Thu Dec 2 12:32:20 UTC 2021] 🤖 2021-12-02 12:32:20 +00:00
Sandeep Singh 1959aa5013 Merge pull request #1307 from projectdiscovery/stop-at-first-match
Stop at first match
2021-12-02 18:00:52 +05:30
Mzack9999 40baa302b2 Merge branch 'dev' into research-aws-signing 2021-12-02 12:56:37 +01:00
Sajad Parra d0deef72f5 Merge branch 'dev' into stop-at-first-match 2021-12-02 17:26:23 +05:30
Sandeep Singh a0da7452e3 Merge pull request #1315 from projectdiscovery/validate-flag
validate flag updates
2021-12-02 17:23:34 +05:30
Sandeep Singh 0de5688618 Merge pull request #1290 from projectdiscovery/dsl-variable-support
Dsl variable support for matchers
2021-12-02 17:16:57 +05:30
Sajad Parra 18f57130ca Merge branch 'dev' into stop-at-first-match 2021-12-02 17:03:02 +05:30
Sajad Parra 7a96a7c931 Merge branch 'dev' into dsl-variable-support 2021-12-02 16:50:50 +05:30
GitHub Action 9a0ce60a4f Auto Generate Syntax Docs + JSONSchema [Thu Dec 2 10:59:29 UTC 2021] 🤖 2021-12-02 10:59:29 +00:00
Sandeep Singh 3b68c29f48 Merge pull request #1288 from projectdiscovery/dynamic-value-reuse-http
Reusing dynamically extracted values as iterators in http request
2021-12-02 16:27:59 +05:30
mzack c807438ecd fixing memory allocation for boolean pointer 2021-12-02 11:19:37 +01:00
Xc1Ym 0a8122571b Update README.md
Add Chinese Jump
2021-12-02 15:19:50 +08:00
Xc1Ym 62679f37e2 Update README_CN.md and translated new README
Last year I translated README. Now I find README is updated. I translated it again
2021-12-02 15:18:52 +08:00
LuitelSamikshya 6d5146e540 validate flag updates 2021-12-01 10:35:18 -06:00
sandeep 1150d832b1 readme update 2021-11-30 23:23:14 +05:30
GitHub Action a9f6f04394 Auto Generate Syntax Docs + JSONSchema [Tue Nov 30 17:17:46 UTC 2021] 🤖 2021-11-30 17:17:46 +00:00
Sandeep Singh 0df717ca48 Merge pull request #1291 from projectdiscovery/global-vars
Automatically generate docs for enum values + global part vars declaration
2021-11-30 22:46:13 +05:30
Ice3man543 c17aba8646 Misc fixes to part definitions 2021-11-30 22:41:02 +05:30
Sajad Parra 5b99921d75 add unit and integration tests for dsl variable #555 2021-11-30 20:20:43 +05:30
Sajad Parra 10e5595980 Merge branch 'dev' into dsl-variable-support 2021-11-30 18:41:18 +05:30
Sajad Parra de236379a1 remove stop-at-first-match info log #1188 2021-11-30 17:22:39 +05:30
Ice3man543 72a387c40a Merge from dev 2021-11-30 16:55:09 +05:30
Ice3man543 847e9d7c44 Misc changes to fix testa and lint 2021-11-30 16:26:29 +05:30
Ice3man543 eb7c704d36 Merging from dev 2021-11-30 16:23:39 +05:30
Sandeep Singh be66166b9d Merge pull request #1282 from projectdiscovery/network-vars
Added additional variables for network + simplified logic
2021-11-30 12:10:26 +05:30
sandeep 684f332599 fix: {{Hostname}} to {{Host}} in test 2021-11-30 12:04:47 +05:30
Sandeep Singh edad82ad98 Merge pull request #1310 from projectdiscovery/speed-regression-bugfix
fix #1303: speed regression due to missing goroutine in executer
2021-11-30 11:19:31 +05:30
Ice3man d6cfa556b8 Merge pull request #1306 from projectdiscovery/fix-stdin-reading
fix: #1274 spawned nuclei child process hangs reading stdin
2021-11-30 00:28:00 +05:30
Ice3man543 65a1858f94 fix #1303: speed regression due to missing goroutine in executer
Fixed speed regression introduced in dev due to missing go() statement when executing template input
2021-11-30 00:17:52 +05:30
mzack 2140ffa382 Adding stop-resume support 2021-11-29 14:38:45 +01:00
Sajad Parra a7ecadf189 add template level stop-at-first-match to workflows 2021-11-29 18:06:25 +05:30
Sajad Parra f60e93aae1 add template level stop at first match option 2021-11-29 16:01:06 +05:30
Ice3man543 c9943c0b2a fix: #1274 spawned nuclei child process hangs reading stdin
Next and final attempt at fixing the stdin parsing issue when spawing as child from nodejs
2021-11-29 14:38:55 +05:30
mzack a631262d91 Merge branch 'dev' into research-aws-signing 2021-11-29 09:36:12 +01:00
Sajad Parra d97aee01c3 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into dsl-variable-support 2021-11-29 13:36:09 +05:30
Sajad Parra 5deb454a81 merge Hostname variable to payloads in network request 2021-11-29 13:26:03 +05:30
GitHub Action 345a5a3de5 Auto Generate Syntax Docs + JSONSchema [Mon Nov 29 06:49:56 UTC 2021] 🤖 2021-11-29 06:49:56 +00:00
Sandeep Singh 95f31090dc Merge pull request #1292 from projectdiscovery/improvements
Small refactorings and linter driven improvements
2021-11-29 12:18:28 +05:30
dependabot[bot] b1a0da290a chore(deps): bump alpine from 3.14 to 3.15.0 (#1305)
Bumps alpine from 3.14 to 3.15.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>
2021-11-29 10:52:29 +05:30
sandeep 75333dae3b Revert "Fixed stdin input parsing bug (#1286)"
This reverts commit b59582bde7.
2021-11-28 05:29:01 +05:30
sandeep 5a1c7a62b2 missing goimports 2021-11-28 04:55:18 +05:30
Sandeep Singh 670f0d6775 Merge branch 'dev' into network-vars 2021-11-28 04:42:08 +05:30
LuitelSamikshya b3805999f3 Unsafe flag with base template (#1279)
* unsafe flag with base template
2021-11-28 04:40:27 +05:30
Ice3man b59582bde7 Fixed stdin input parsing bug (#1286) 2021-11-28 04:31:39 +05:30
forgedhallpass c61ec5f673 feat: Improve DSL function UX #1295 2021-11-26 17:14:25 +02:00
forgedhallpass cd651ddf6f fix: Escaped the dot in a regex matching a domain 2021-11-26 17:12:27 +02:00
Ice3man dfe284664c Fixed a crash with http module (#1285) 2021-11-26 18:51:02 +05:30
mzack a3319930c0 code refactor + request dump fix
Fixes indirectly #844
2021-11-26 13:49:12 +01:00
Ice3man543 c720354be2 Added part definition information to docs + misc 2021-11-26 16:23:54 +05:30
forgedhallpass 5eca474c5e refactor(CR): better way of writing switch statement 2021-11-26 11:38:09 +02:00
forgedhallpass 7e22d70ded refactor/documentation: typos and grammatical errors 2021-11-25 18:54:16 +02:00
forgedhallpass ec6889931d refactor: linter driven fixes
* x = x + ""  => x += ""
* pre-allocating slice with known size
* added t.Helper() methods in test helpers
* complex if-else conditions replaced by switches
* errors should be checked using error.Is() instead of ==
* function parameter should start with lower case letter
* removed unnecessary type definition
* variable/label naming convention: camelCase instead of snake_case
2021-11-25 17:57:22 +02:00
forgedhallpass fdaa8e4539 refactor: removed redundant type conversion 2021-11-25 17:18:54 +02:00
forgedhallpass 47340f06b0 refactor: uniformly sorted imports 2021-11-25 17:09:20 +02:00
forgedhallpass 3fd1f57b96 refactor: godoc and comment uniformization
Adding space after // and before the godoc/comment
2021-11-25 17:03:56 +02:00
forgedhallpass c8d009654c fix: Receiver mismatch warnings 2021-11-25 16:57:43 +02:00
forgedhallpass db0d2b0039 fix: markdown anchor corrections 2021-11-25 16:33:16 +02:00
forgedhallpass bebe5cbcfd refactor: Remove redundant character escapes from regexes 2021-11-25 16:24:37 +02:00
forgedhallpass fdd22ab668 refactor: Wrap errors using %w in fmt.Errorf
see:
 * https://github.com/xxpxxxxp/intellij-plugin-golangci-lint/blob/master/explanation/goerr113.md
 * https://go.dev/blog/go1.13-errors#wrapping-errors-with-w
2021-11-25 16:24:37 +02:00
forgedhallpass f9c214a66f refactor: update logic refactor to make it more testable
Introduced logic to test for zip slip (path traversal)
2021-11-25 16:24:28 +02:00
Ice3man543 caaa5c6594 Automatically generate docs for enum values 2021-11-25 19:34:01 +05:30
forgedhallpass 4bccb6cf8a fix: File and directory creation permission changes
Directories: 0755 (5 - group and other can read cd into the directory and read it's content)
Files: 0644 (4 - group and other can only read the created files)
Tests files: 0777
2021-11-25 14:37:57 +02:00
Sajad Parra 7e9272776d add variable support to dsl, remove dynamicValues from request struct 2021-11-25 16:19:42 +05:30
Ice3man543 f6072e9a95 Updating name of variable 2021-11-24 22:44:43 +05:30
Ice3man543 393babe3c3 Made iterate of values controllable with iterate-all-values flag in http 2021-11-24 22:40:17 +05:30
Ice3man543 273233bb81 Fixed a bug with mergemanymaps + misc lint fixes 2021-11-24 21:56:55 +05:30
Ice3man543 ef5b476c6d Reusing dynamically extracted values as iterators in http request
This PR adds the support in http module to iterate over the dynamically extracted data from extractors
and use it in other requests. This allows nuclei to follow links on pages, do operations with
multiple versions of the same extracted value, etc.
2021-11-24 21:08:08 +05:30
Ice3man543 a908a1515a Fixed example docs 2021-11-23 13:17:19 +05:30
Ice3man543 44e304179a Fixed a linter error 2021-11-23 13:15:24 +05:30
Ice3man543 831114bdbd Added default fields for DNS requests 2021-11-23 13:09:22 +05:30
Ice3man 1851e37aef Merge pull request #1273 from projectdiscovery/fixed-missing-ip
fix #1220: no ip returned for dialers
2021-11-23 10:49:51 +05:30
Ice3man543 6c819d7917 Added additional variables for network + simplified logic 2021-11-23 10:44:31 +05:30
Ice3man 1581c96e4e Added matched-status flag + template-path and url to output (#1272)
* Added matched-status flag + template-path and url to output
2021-11-22 17:53:25 +05:30
Ice3man543 ba67f8c8fe fix #1220: no ip returned for dialers 2021-11-22 09:51:13 +05:30
Mzack9999 ca9676f52e Adding support for clustering within workflow (#1255)
* Adding support for clustering within workflow
2021-11-22 04:49:53 +05:30
Ice3man543 3d0b67e9f7 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into dev 2021-11-20 19:50:34 +05:30
Ice3man543 bdf1c2010b Fixed jsonschema for matchertype missing String() 2021-11-20 19:50:18 +05:30
GitHub Action 925fb18855 Auto Generate Syntax Docs + JSONSchema [Sat Nov 20 14:18:20 UTC 2021] 🤖 2021-11-20 14:18:20 +00:00
Ice3man543 66dacccfb4 Fixed matcher type integer issue 2021-11-20 19:47:05 +05:30
Sajad f74ff3fc49 Tag based struct validation (#1256)
* Added tag based struct validation
2021-11-20 13:25:27 +05:30
mzack ed55de71d9 fixing internal normalized value 2021-11-20 02:26:16 +01:00
GitHub Action b8246ab8e5 Auto Generate Syntax Docs + JSONSchema [Fri Nov 19 10:55:27 UTC 2021] 🤖 2021-11-19 10:55:27 +00:00
LuitelSamikshya 4b8ec29d8d struct to enums changes for Matchers (#1246)
* struct to enums changes for Matchers
2021-11-19 16:24:09 +05:30
forgedhallpass 09eba6c0cf feat: In case of binary data, show a hexadecimal view as well #1080 (#1266)
Highlight the longest occurrences when there are matches that are substrings of each other
2021-11-19 15:45:43 +05:30
sandeep 883cb22c39 Adding more resources 2021-11-19 14:46:10 +05:30
mzack 71d4e5318a . 2021-11-18 22:28:10 +01:00
mzack 359eb7c3d2 making iota zero based 2021-11-18 21:58:32 +01:00
mzack bdffa373cf solving linting issues 2021-11-18 21:54:24 +01:00
mzack b42f0d32ea Merge branch 'dev' into research-aws-signing 2021-11-18 21:50:49 +01:00
mzack ddb07ebb75 adding support for aws file credential 2021-11-18 21:44:58 +01:00
GitHub Action 5a0f483cd3 Auto Generate Syntax Docs + JSONSchema [Thu Nov 18 20:12:46 UTC 2021] 🤖 2021-11-18 20:12:46 +00:00
LuitelSamikshya 2856e7e247 Extractor + Headless Actions structures to enums (#1217)
* enum support for extractor
2021-11-19 01:41:10 +05:30
GitHub Action ccb588f383 Auto Generate Syntax Docs + JSONSchema [Thu Nov 18 13:53:42 UTC 2021] 🤖 2021-11-18 13:53:42 +00:00
Mzack9999 7f5f791e23 Adding dns trace support in dns templates (#1236)
* Adding dns trace support in dns templates + minor refactoring
2021-11-18 19:22:11 +05:30
GitHub Action bef7bfc393 Auto Generate Syntax Docs + JSONSchema [Thu Nov 18 13:51:52 UTC 2021] 🤖 2021-11-18 13:51:52 +00:00
LuitelSamikshya d078b72381 enum changes for http method (#1234)
* enum changes for http method
2021-11-18 19:20:21 +05:30
GitHub Action 25189c3ae7 Auto Generate Syntax Docs + JSONSchema [Thu Nov 18 13:50:07 UTC 2021] 🤖 2021-11-18 13:50:07 +00:00
LuitelSamikshya 64a93a4570 enum changes for network type (#1233)
* enum changes for network type
2021-11-18 19:18:47 +05:30
LuitelSamikshya 4ff90c1373 struct to enum changes for Dns Type (#1245)
* struct to enum changes for Dns Type
2021-11-18 19:17:34 +05:30
mzack 38ff8f75b1 adding signature syntax validation 2021-11-17 01:28:35 +01:00
mzack 0379afc748 Merge branch 'dev' into research-aws-signing 2021-11-17 00:03:00 +01:00
Ice3manandsandeep eaa0d37065 feat #1092: Validate binary values + precompile them as well (#1213)
* Added validation for binary values + precompile them

* Changed name of the binary matcher field

Co-authored-by: sandeep <[email protected]>
2021-11-17 02:04:27 +05:30
sandeep f73b20e415 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into research-aws-signing 2021-11-17 02:02:07 +05:30
Ice3man 50a816fce9 Fixed a crash with uninitialized interactsh client (#1251)
* Fixed a crash with uninitialized interactsh client
2021-11-16 20:02:39 +05:30
Ice3man543 cc33366acb fixed a conditon with workflow type switch 2021-11-14 15:30:28 +05:30
mzack eb61c519c3 converting to post-processor prototype 2021-11-13 03:17:05 +01:00
mzack e517797cfa moving aws signing logic to helper library 2021-11-13 02:13:48 +01:00
mzack 34889d50f8 correcting variable name 2021-11-12 19:58:12 +01:00
mzack 882a156b63 Merge branch 'dev' into research-aws-signing 2021-11-12 19:55:35 +01:00
mzack 041361c45e Adding aws sign prototype 2021-11-12 19:29:45 +01:00
Ice3man 7af5121de8 Added high level nuclei architecture overview (#1177)
* Added high level nuclei architecture overview
2021-11-12 19:06:59 +05:30
GitHub Action dc0c568cb8 Auto Generate Syntax Docs + JSONSchema [Thu Nov 11 23:16:47 UTC 2021] 🤖 2021-11-11 23:16:47 +00:00
Ice3man 304b63907e Merge pull request #1066 from projectdiscovery/more-protocols
Added websocket and SSL protocol support + engine refactor
2021-11-12 04:45:08 +05:30
Ice3man543 cdb08e0879 misc fixes to websocket 2021-11-12 04:44:02 +05:30
Ice3man543 90a0502b60 Misc fixes to default part 2021-11-11 17:30:25 +05:30
Ice3man543 c1a35b3ff9 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into more-protocols 2021-11-11 17:21:25 +05:30
sullo 1d74f6ada2 Typo (#1242) 2021-11-10 23:25:22 +05:30
Mzack9999 ac75d9aa9b Improving error handling in client certificate library (#1237) 2021-11-10 22:42:49 +05:30
Mzack9999 09b5fb11e8 Better error handling for return value of helper http library (#1239) 2021-11-10 22:41:42 +05:30
Ice3man e09265a3d0 Merge pull request #1241 from projectdiscovery/issue-1240-test-failing
Fixing http test using local http mock server
2021-11-10 22:39:35 +05:30
mzack 56b7d78fed Fixing http test using local http mock server 2021-11-10 18:04:53 +01:00
0e46d3e041 feat: Checking socks5 proxy before launching a scan #1001 (#1225)
* Proxy validation and list input support

Co-authored-by: Sajad Parra <[email protected]>
Co-authored-by: sandeep <[email protected]>
2021-11-10 21:30:03 +05:30
Sandeep Singh 66074a1842 Merge pull request #1232 from projectdiscovery/fix-redirect-response-bug
fix #1173: perform matching on all redirect responses instead of final
2021-11-10 17:38:35 +05:30
sandeep 4b169fcae1 mod update 2021-11-10 15:09:40 +05:30
Sandeep Singh f78ff42dbe Merge branch 'dev' into more-protocols 2021-11-09 18:27:13 +05:30
Sandeep Singh be3e8eecfb Merge pull request #1229 from projectdiscovery/dependabot/docker/dev/golang-1.17.3-alpine
chore(deps): bump golang from 1.17.2-alpine to 1.17.3-alpine
2021-11-09 18:23:42 +05:30
Sandeep Singh 2c486acb32 Merge pull request #1230 from projectdiscovery/issue-825-raw-http-with-custom-headers
Adding support for custom headers via CLI in raw http requests
2021-11-09 18:13:26 +05:30
Ice3man543 9b364080ea Fixed some edge cases with status codes in redirect chains 2021-11-09 17:55:42 +05:30
sandeep f2c81ee9a2 fixed unsafe test 2021-11-09 16:11:11 +05:30
mzack 93060ec0e3 adding tests 2021-11-09 08:50:18 +01:00
Ice3man543 a9f586369a Misc fixes to request normalization 2021-11-09 06:20:10 +05:30
Ice3man543 3e2875267c linter fixes 2021-11-09 06:12:36 +05:30
Ice3man543 8396413f9d Added integration test for the redirect chain http functionality 2021-11-09 06:10:07 +05:30
Ice3man543 155b8cfed9 fix #1173: perform matching on all redirect responses instead of final 2021-11-09 06:00:30 +05:30
mzack 10e1b09bf3 tidying go modules 2021-11-08 19:45:01 +01:00
mzack 9675efa680 Adding support for custom headers via CLI in raw http requests 2021-11-08 19:33:54 +01:00
Sandeep Singh 952a821c6c Merge pull request #1208 from projectdiscovery/colored_hexdump
Enhance hexdump content highlighting
2021-11-08 18:30:00 +05:30
Ice3man543 5e6b6c6b14 Show errors on invalid URL typo 2021-11-08 17:56:14 +05:30
Ice3man543 7d0529aaf7 Fixed gzip encoding bug + added test case 2021-11-08 17:39:08 +05:30
Ice3man543 88a296c9a7 Adding gzip encoding helpers 2021-11-08 16:24:47 +05:30
Ice3man543 d442c51c1a Changed input to target in core 2021-11-08 16:14:47 +05:30
Ice3man543 ce7534112a Fixed linter issues 2021-11-08 16:10:04 +05:30
Ice3man543 d772dedef1 Make default part for new protocols to response 2021-11-08 16:01:45 +05:30
Ice3man543 213853c45d Merge from dev 2021-11-08 15:40:18 +05:30
dependabot[bot] af68a30c5c chore(deps): bump golang from 1.17.2-alpine to 1.17.3-alpine
Bumps golang from 1.17.2-alpine to 1.17.3-alpine.

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

Signed-off-by: dependabot[bot] <[email protected]>
2021-11-08 05:04:43 +00:00
Sandeep Singh 3c53e262e3 Merge pull request #1219 from projectdiscovery/uniq-interact
Unique Interactsh URL
2021-11-06 03:33:09 +05:30
sandeep 37865e493a Merge branch 'master' of https://github.com/projectdiscovery/nuclei 2021-11-06 03:07:49 +05:30
Sandeep Singh 9a55fcd0ae Merge pull request #1224 from projectdiscovery/revert-1169-#issue1001
Revert "feat: Checking socks5 proxy before launching a scan #1001"
2021-11-05 20:11:30 +05:30
Sandeep Singh 348d86d330 Revert "feat: Checking socks5 proxy before launching a scan #1001 (#1169)"
This reverts commit c125df4ef6.
2021-11-05 20:10:21 +05:30
sandeep 89c6e76772 Revert "feat: Checking socks5 proxy before launching a scan #1001 (#1169)"
This reverts commit c125df4ef6.
2021-11-05 20:09:00 +05:30
Sajad Parra 6d0d3e1c35 add unique check to test case 2021-11-05 20:00:46 +05:30
LuitelSamikshya c125df4ef6 feat: Checking socks5 proxy before launching a scan #1001 (#1169)
* "#issue1001"

* changes for #issue1001

* minor changes

* minor

* flag consolidation and proxy file #issue1001

* readme changes

* review changes

* enviroment variable changes

* review comment changes

* review changes

* removed commented out code
2021-11-05 09:21:52 -05:00
Ice3man543 e8197f127f Fixed rmeote url loader test cases 2021-11-05 17:24:23 +05:30
Ice3man543 1c360e0344 Fixed DSL test 2021-11-05 17:04:42 +05:30
Ice3man543 0a09b9e451 Added test + misc 2021-11-05 16:59:24 +05:30
Sajad Parra 4d8eaad0a3 add unit test for unique interactsh url #1068 2021-11-05 15:27:49 +05:30
Ice3man543 8ad3ebcd05 Made code changes as per review comments 2021-11-05 03:01:41 +05:30
Sajad Parra 41393fc09d unique payload per interactsh placeholder #1068 2021-11-04 17:13:47 +05:30
Ice3man543 f3675d547a URL parsing addition for websocket URLs 2021-11-04 03:02:29 +05:30
Ice3man543 12321c23af Splitting big function into small 2021-11-04 02:56:59 +05:30
Ice3man543 53164c3f3e Misc linter related changes 2021-11-04 02:44:47 +05:30
Ice3man543 a60b10afca Added an enum for attackType 2021-11-04 02:41:56 +05:30
Ice3man543 a7c8d0473c Removed duplicate attackType logic + move attackType to generators 2021-11-04 02:28:48 +05:30
Ice3man543 91a7b4df6a Validate opcode before proceeding with websocket 2021-11-03 20:08:11 +05:30
Ice3man543 645ae30a47 Moved to an enum for TemplateType in protocols 2021-11-03 19:53:45 +05:30
Ice3man543 390ca8b3c6 Merge from dev 2021-11-03 18:58:00 +05:30
Sandeep Singh 0f897a3977 Merge pull request #1186 from projectdiscovery/protocol-types
Added new type and exclude-type flag
2021-11-03 18:47:26 +05:30
Ice3man543 4a0229c13d Websocket protocol rename 2021-11-03 18:36:54 +05:30
Ice3man543 956fb9296c fix merge conflict 2021-11-03 17:20:03 +05:30
Ice3man543 47949c0b52 Use separate type enum for protocol types 2021-11-03 17:18:35 +05:30
Ice3man543 cf7628c450 Misc changes according to review 2021-11-03 02:34:48 +05:30
Ice3man543 b3162decff Merge branch 'engine-execution' of https://github.com/projectdiscovery/nuclei into more-protocols 2021-11-03 02:24:00 +05:30
Ice3man543 bdb415b0c7 Misc changes as per review 2021-11-03 02:23:48 +05:30
sandeep 2224880d89 misc flag update 2021-11-02 22:57:00 +05:30
Ice3man c2df13ea22 Merge pull request #1185 from projectdiscovery/dns-variables
Added more variables for DNS requests
2021-11-02 17:54:45 +05:30
Ice3man 09cad2557c Merge pull request #1123 from EndPositive/remote-template-workflow-lists
Remote template workflow lists
2021-11-02 16:12:29 +05:30
Ice3man543 87c3071ba7 Misc 2021-11-02 14:59:05 +05:30
Ice3man 191797380e bug: Bug in URL parsing for unsafe templates #830
Fixed raw request path not correct with unsafe
2021-11-02 10:42:59 +02:00
forgedhallpass 8f6280dc9d refactor: In case of binary data, show a hexadecimal view as well #1080
* small enhancements with regards to dumping responses
2021-11-01 20:45:54 +02:00
forgedhallpass b477508521 feat: In case of binary data, show a hexadecimal view as well #1080
* the ASCII column in the hex dump represents non-printable ASCII characters with a "." character, so in order to enable proper highlighting, those characters has to be replaced in the generated regex as well
2021-11-01 20:44:55 +02:00
Sandeep Singh 23d670181c Merge pull request #1203 from projectdiscovery/colored_hexdump
feat: In case of binary data, show a hexadecimal view as well #1080
2021-11-01 19:40:03 +05:30
Ice3man543 f8c6f0ba64 Added debug for SSL 2021-11-01 18:02:45 +05:30
Ice3man543 a274cc5722 Misc integration test 2021-11-01 15:51:56 +05:30
Ice3man543 bb05be7b95 Added integration tests for websocket + misc fixes 2021-11-01 15:47:20 +05:30
forgedhallpass b91166a034 Merge remote-tracking branch 'origin/dev' into colored_hexdump 2021-11-01 11:57:45 +02:00
GitHub Action e1c39f255c Auto Generate Syntax Docs + JSONSchema [Mon Nov 1 09:46:34 UTC 2021] 🤖 2021-11-01 09:46:34 +00:00
Sandeep Singh 1863e8f76a Merge pull request #1130 from zerodivisi0n/feature/case-insensitive-match
Add case-insensitive option to template
2021-11-01 15:15:22 +05:30
Ice3man 331ae0f03b Merge pull request #1171 from kchason/client-cert-auth
Add Support for Client Certificate Authentication
2021-10-31 02:08:18 +05:30
Sandeep Singh c1cd04f1e6 Merge pull request #1204 from zerodivisi0n/feature/elog
Add error log option
2021-10-30 21:23:03 +05:30
forgedhallpass 38f2cf245e feat: In case of binary data, show a hexadecimal view as well #1080
* added Compact hex view to the output if the -vv flag is provided
2021-10-30 16:41:10 +03:00
Alexey Zhuchkov bccc8e921b Add test for output 2021-10-30 15:04:16 +03:00
Alexey Zhuchkov b8ebbc27f5 Use io.WriteCloser in output writer 2021-10-30 14:28:30 +03:00
Alexey Zhuchkov cd2db280bf Move output mutex to fileWriter 2021-10-30 14:28:30 +03:00
Alexey Zhuchkov 1eb0378952 Unwrap errors in json log output 2021-10-30 14:28:30 +03:00
Alexey Zhuchkov 463c1c0142 Use template path in output request 2021-10-30 14:28:30 +03:00
Alexey Zhuchkov 933ed2429d Update json log request format 2021-10-30 14:28:30 +03:00
Alexey Zhuchkov 3f1186da2b Add error log support 2021-10-30 14:12:21 +03:00
forgedhallpass 04e3c0165a feat: In case of binary data, show a hexadecimal view as well #1080 2021-10-30 13:17:47 +03:00
Alexey Zhuchkov 392ea23f1d Add integration tests for case-insensitive flag 2021-10-29 19:11:57 +03:00
Alexey Zhuchkov 897f11213c Add unit tests for case-insensitive flag in protocols 2021-10-29 19:11:09 +03:00
Alexey Zhuchkov bfb69b2ff2 Extract getMatchPart method in protocols 2021-10-29 19:10:17 +03:00
Alexey Zhuchkov 3a47413cd4 Add case-insensitive flag to matchers and extractors 2021-10-29 19:08:23 +03:00
Ice3man543 75f18f169c Adding response highlighting to websocket 2021-10-29 18:30:24 +05:30
Ice3man543 a10b79d7a8 merge from engine-refactor and dev 2021-10-29 18:26:06 +05:30
Ice3man543 15d467f9ff Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into more-protocols 2021-10-29 17:54:02 +05:30
Ice3man543 5393cc4cd5 Adjusting packages for more API-type design 2021-10-29 03:19:43 +05:30
sandeep 8ce192c62a Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into protocol-types 2021-10-29 00:58:21 +05:30
Ice3man543 1ca2cf3bea Misc 2021-10-28 23:17:05 +05:30
sandeep 533fb3f108 misc flag update 2021-10-28 22:02:22 +05:30
Ice3man543 0abc7202b1 Misc fixes with goflags 2021-10-28 17:45:38 +05:30
Ice3man543 d124dbacc7 Moved all important execution stuff to engine 2021-10-28 17:20:07 +05:30
kchason c3503922c9 Merge remote-tracking branch 'origin/client-cert-auth' into client-cert-auth
# Conflicts:
#	v2/pkg/protocols/headless/engine/http_client.go
2021-10-27 12:15:12 -04:00
kchason 4a1440a17b Merge dev branch 2021-10-27 12:13:23 -04:00
kchason a539184ffd Switch logic to a shared package 2021-10-27 12:11:42 -04:00
Ice3man543 df78ea72c5 misc 2021-10-27 18:41:39 +05:30
Ice3man543 c16c93fe7c refactor the modules to core 2021-10-27 16:50:36 +05:30
Ice3man543 97645dde52 Added new workpool package + Misc refactor 2021-10-27 15:53:04 +05:30
Ice3man543 2a84b9eb44 misc 2021-10-26 20:40:02 +05:30
Ice3man543 a0318ffc8f Started refactor of template compilation + protocol building 2021-10-26 20:36:44 +05:30
Jop Zitman 1dce8af045 Linting issues 2021-10-26 15:34:33 +02:00
Jop Zitman 86cf09fa3f Merge branch 'dev' into remote-template-workflow-lists
# Conflicts:
#	v2/cmd/nuclei/main.go
2021-10-26 15:33:39 +02:00
Ice3man 808ed4edd2 Merge branch 'dev' into client-cert-auth 2021-10-26 16:42:02 +05:30
Ice3man e0afa2cee4 Merge pull request #1157 from projectdiscovery/issue-1095-realistic-http-client
Making headless httpclient more similar to real browsers
2021-10-26 16:39:21 +05:30
Ice3man e6aa73aa9d Merge pull request #1033 from projectdiscovery/interactsh-integration-test
Added interactsh based template to integration test
2021-10-26 16:31:54 +05:30
Ice3man543 f058029841 Misc 2021-10-26 16:29:00 +05:30
Ice3man543 2777211351 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into interactsh-integration-test 2021-10-26 15:31:06 +05:30
Ice3man543 6541b04f4c Added new type and exclude-type flag 2021-10-25 23:24:42 +05:30
Ice3man a4bea4f954 Merge pull request #1184 from projectdiscovery/fix-curl-panic
fix panic: Only generate curl command if request is not nil
2021-10-25 20:01:21 +05:30
Ice3man cf2348fb13 Merge pull request #1183 from projectdiscovery/fix-reporting-bug
Fixed bug with github client and paths with no slash
2021-10-25 20:00:31 +05:30
Ice3man543 ba108580c6 Fixed fqdn issue with tld parser 2021-10-25 19:36:37 +05:30
Ice3man543 09a2d88364 Misc 2021-10-25 19:33:37 +05:30
Ice3man543 bfaea5b89d Added more variables for DNS requests 2021-10-25 18:35:45 +05:30
Ice3man543 4a29443752 fix panic: Only generate curl command if request is not nil 2021-10-25 18:22:33 +05:30
Ice3man543 c6445519ec Fixed bug with github client and paths with no slash 2021-10-25 18:19:27 +05:30
Ice3man543 ca6cc51302 Color change for warning disclaimer 2021-10-25 17:47:39 +05:30
Ice3man543 ef3397b84d Mark error for template syntax warning 2021-10-25 17:42:01 +05:30
GitHub Action 4a59c3dd84 Auto Generate Syntax Docs + JSONSchema [Mon Oct 25 12:09:59 UTC 2021] 🤖 2021-10-25 12:09:59 +00:00
Ice3man 1deedf5463 Merge pull request #1151 from zerodivisi0n/feature/template-id
Add regexp pattern for template-id
2021-10-25 17:38:00 +05:30
GitHub Action 1f8a9474cf Auto Generate Syntax Docs + JSONSchema [Mon Oct 25 12:00:09 UTC 2021] 🤖 2021-10-25 12:00:09 +00:00
Ice3man 29e764961e Merge branch 'dev' into interactsh-integration-test 2021-10-25 17:29:33 +05:30
Ice3man aa8b15c1f4 Merge pull request #1111 from projectdiscovery/issue-829-network-read-all
Adding support to read tcp data stream till the end
2021-10-25 17:28:56 +05:30
Ice3man 542aba861f Merge pull request #1155 from projectdiscovery/issue-1129-headless-proxy
Adding proxy socks support to headless browser
2021-10-25 17:27:52 +05:30
kchason a911245d26 Re-add short command for env-vars lost during merge conflict resolution 2021-10-24 22:53:28 -04:00
kchason 99492911a3 Revert "Missing error package"
This reverts commit 18deddb07a.
2021-10-21 14:21:52 -04:00
kchason 18deddb07a Missing error package 2021-10-21 14:10:47 -04:00
kchason 4b70560cc9 Merge branch 'master' into client-cert-auth 2021-10-21 13:59:39 -04:00
kchason f5b9eb32a1 Client certificate authentication for pooled connections 2021-10-21 13:54:56 -04:00
kchason 0a57a1aa4d Client certificate authentication for headless connections 2021-10-21 13:48:13 -04:00
kchason 450af73eee Fix README spacing with commas 2021-10-21 13:44:51 -04:00
sandeep fdb7c0d6cd dev update 2021-10-21 06:20:40 +05:30
Sandeep Singh efbef301bf Merge pull request #1140 from projectdiscovery/dev
v2.5.3 Release preparation
2021-10-21 06:20:06 +05:30
sandeep f260ed6da7 readme + version update 2021-10-21 06:17:18 +05:30
sandeep dd311897fc misc flag update 2021-10-21 06:05:09 +05:30
sandeep fa79a16a9d reverting #1017 2021-10-21 05:56:15 +05:30
Alexey Zhuchkov ff7a5997a2 Return multiple errors in template validation 2021-10-20 23:24:11 +03:00
Alexey Zhuchkov 5d0f6b2622 Improve invalid template id tests 2021-10-20 23:14:04 +03:00
Alexey Zhuchkov f1cd0a5d28 Update template id regexp 2021-10-20 23:07:24 +03:00
Ice3man f25c7c3a1d Merge branch 'dev' into more-protocols 2021-10-20 21:29:28 +05:30
kchason 9c77f15012 Argument checks for presence and validity 2021-10-20 11:32:26 -04:00
GitHub Action 379233c632 Auto Generate Syntax Docs + JSONSchema [Wed Oct 20 15:25:55 UTC 2021] 🤖 2021-10-20 15:25:55 +00:00
Sandeep Singh 52382df350 Merge pull request #1121 from projectdiscovery/self-contained-templates
Added self-contained http/network requests implementation
2021-10-20 20:54:38 +05:30
Ice3man543 a6c5dbf7fb added todo 2021-10-20 20:29:28 +05:30
Ice3man543 bb6486910f typo 2021-10-20 20:27:36 +05:30
Ice3man543 36edde2241 Added comment for old logic 2021-10-20 20:26:40 +05:30
Ice3man543 b8628a6e5b fixed comment 2021-10-20 20:17:00 +05:30
Ice3man543 51f3ea5c88 Added constant for static ports in integration tests 2021-10-20 20:13:40 +05:30
kchason e2052dedc1 Add options to readme 2021-10-20 09:44:14 -04:00
mzack e6728e8ff9 Making headless httpclient more similar to real browsers 2021-10-20 13:26:47 +02:00
sandeep 8e8249e6a5 Added multiple short flags 2021-10-20 16:39:11 +05:30
kchason df12b0d2e6 Add CLI options for passing client cert auth 2021-10-19 23:06:02 -04:00
Alexey Zhuchkov 9e0144b6ae Add template-id validation 2021-10-20 01:31:38 +03:00
mzack cbc5192e9a Adding proxy socks support to headless browser 2021-10-20 00:02:06 +02:00
Alexey Zhuchkov a1e099493d Use simpler regexp for template id validation 2021-10-20 00:43:33 +03:00
sandeep 53e2c1fd7c Merge branch 'master' of https://github.com/projectdiscovery/nuclei into dev 2021-10-20 03:06:12 +05:30
sandeep bdcdd37ad8 misc template update 2021-10-20 03:05:53 +05:30
mzack ae99a88f52 timer.after => timer 2021-10-19 19:39:33 +02:00
Ice3man 002f3de5c4 Merge pull request #1127 from pmareke/fix/add-validation-for-github-and-gitlab-config
fix: add validation for github and gitblab options
2021-10-19 22:35:48 +05:30
Ice3man543 5383040a83 Misc 2021-10-19 22:28:48 +05:30
Ice3man543 ec424e01e4 MIsc 2021-10-19 22:20:29 +05:30
Ice3man543 c4e5fa49dd Added integration tests for http and network 2021-10-19 22:17:44 +05:30
sandeep ba6e9a064d Merge branch 'master' of https://github.com/projectdiscovery/nuclei into dev 2021-10-19 22:00:13 +05:30
Sandeep Singh bf659701b6 Merge pull request #1153 from projectdiscovery/template-update
Github Issue template updates + PR template addition
2021-10-19 21:59:27 +05:30
Ice3man543 de01158556 Removed non-used code 2021-10-19 21:52:40 +05:30
Ice3man543 55eab08faa Slight change to formatting 2021-10-19 21:33:17 +05:30
Ice3man543 612ab61df4 Reworked self-contained requests to template 2021-10-19 21:29:18 +05:30
Pedro López Mareque 2aade725b7 chore: fix pr comment 2021-10-19 17:17:45 +02:00
Pedro López Mareque 8df46e1774 chore: fix pr comment 2021-10-19 17:15:58 +02:00
sandeep 488c6901b5 More changes as per GitHub suggestion - https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-issue-forms#markdown-issue-template 2021-10-19 20:11:33 +05:30
sandeep f498f165c2 misc changes 2021-10-19 19:45:10 +05:30
sandeep 28f068f505 misc update 2021-10-19 19:23:05 +05:30
sandeep 1a7b6aa139 Github Issue template updates + PR template addition 2021-10-19 17:23:52 +05:30
mzack 0ba3b19f1f fixing merge issues 2021-10-19 11:31:36 +02:00
Mzack9999 cdfafa3013 Merge branch 'dev' into issue-829-network-read-all 2021-10-19 11:28:33 +02:00
Alexey Zhuchkov 5584fc285d Add regexp pattern for template-id 2021-10-19 00:58:49 +03:00
Sandeep Singh 194d90e2c2 Merge pull request #1149 from projectdiscovery/release-workflow-fix
release workflow fix
2021-10-19 02:39:40 +05:30
sandeep d022804d61 release workflow fix 2021-10-19 02:31:25 +05:30
Sandeep Singh dbbaf8da1a Merge pull request #1148 from projectdiscovery/uniform-json
Uniform JSON output
2021-10-19 01:36:16 +05:30
sandeep 2b9bd7e9c3 Uniform JSON output 2021-10-19 01:26:21 +05:30
Pedro López Mareque 17ce2848e6 chore: fix pr comment 2021-10-18 20:57:21 +02:00
Pedro López Mareque 5a03acb2ef chore: fix pr comment 2021-10-18 20:54:30 +02:00
Pedro López Mareque 12cf051271 chore: fix pr comment 2021-10-18 20:52:35 +02:00
Pedro López Mareque befb79decb chore: fix pr comment 2021-10-18 20:49:12 +02:00
Pedro López Mareque 9734297d2d chore: fix pr comment 2021-10-18 20:48:23 +02:00
Pedro López Mareque 2e26b0fa49 chore: fix pr comments 2021-10-18 20:45:51 +02:00
Ice3man543 6e7318bcba Misc output fix 2021-10-18 20:34:26 +05:30
Ice3man 6741cfb4f4 Merge pull request #1144 from projectdiscovery/issue-1129-headless-proxy
Fixing http proxy not working in headless browser
2021-10-18 19:54:23 +05:30
Ice3man543 b01dd81d84 Misc 2021-10-18 19:50:28 +05:30
Ice3man543 0385241732 Misc 2021-10-18 19:48:47 +05:30
Ice3man543 75609a9323 Merge branch 'self-contained-templates' of https://github.com/projectdiscovery/nuclei into self-contained-templates 2021-10-18 19:15:44 +05:30
Ice3man 4c996a68ea Merge pull request #1146 from projectdiscovery/issue-1115-interactsh-in-payloads
Adding support for interactsh in http payloads
2021-10-18 18:44:47 +05:30
Ice3man543 eac57fb229 Fixed host header not working in raw request 2021-10-18 18:39:32 +05:30
mzack a48e5f52e2 Adding support for interactsh in http payloads 2021-10-18 14:25:25 +02:00
mzack fbea7535ca removing unrecognized routine 2021-10-18 09:38:43 +02:00
mzack 83924e203d fixing object assignment 2021-10-18 09:36:22 +02:00
mzack c8edd4ce4a Fixing http proxy not working in headless browser 2021-10-18 09:32:38 +02:00
sandeep 9073075451 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into self-contained-templates 2021-10-17 19:50:42 +05:30
Ice3man543 e3644cf0d8 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into self-contained-templates 2021-10-17 18:50:16 +05:30
Ice3man543 8c9d9a77bf Added self-contained to network protocol 2021-10-17 18:50:07 +05:30
Ice3man 9300c73252 Merge pull request #1138 from projectdiscovery/issue-1110-cli-direct-value-payload
Adding support for CLI/Env variables in network requests
2021-10-17 18:48:38 +05:30
mzack 5f9b2b3df3 Adding support for CLi/Env variables in network requests 2021-10-17 11:52:48 +02:00
sandeep ba6170e925 Merge branch 'master' of https://github.com/projectdiscovery/nuclei into dev 2021-10-17 13:15:09 +05:30
Sandeep Singh e1457a18cb install update 2021-10-17 13:08:28 +05:30
Sandeep Singh 904a833feb Merge pull request #1132 from voidz0r/dev 2021-10-17 10:40:35 +05:30
Ice3man543 a820594506 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into self-contained-templates 2021-10-17 10:25:25 +05:30
voidz0r fc905ccccc Adding unixtime functionality with seconds offset 2021-10-17 01:02:37 +02:00
Sandeep Singh ae55147cfa Merge pull request #1062 from projectdiscovery/feature-preserve-input-order
Adding support to preserve input order
2021-10-16 19:17:08 +05:30
Sandeep Singh 680a2ad76b Merge branch 'dev' into feature-preserve-input-order 2021-10-16 18:47:26 +05:30
Sandeep Singh 0d8b74932e Merge pull request #1128 from projectdiscovery/issue-667-internal-keyword-priority-over-response-headers
Ensuring internal keyword has priority over response headers in internal map
2021-10-16 11:14:57 +05:30
Sandeep Singh f7759766f7 Merge pull request #1117 from projectdiscovery/issue-1018-gbk
Improving gbk detection coverage
2021-10-16 11:10:03 +05:30
mzack b6104527e1 replacing go get with go install 2021-10-16 01:05:13 +02:00
mzack 662fb63156 adding missing decoding on response body 2021-10-16 00:17:33 +02:00
mzack dcc5a2840b ensures internal keyword has priority over response headers in internal map - fixes #667 2021-10-15 18:45:40 +02:00
mzack e7d632a726 moving gbk detection code into helper function 2021-10-15 18:17:00 +02:00
Pedro Lopez Mareque 61ca557faf chore: improve doc 2021-10-15 14:59:16 +02:00
Pedro Lopez Mareque 5baecfcec2 chore: fix conflicts 2021-10-15 14:55:51 +02:00
Pedro Lopez Mareque 54b3140194 fix: add validation for github and gitblab options 2021-10-15 14:51:55 +02:00
Ice3man 0e3c656103 Added curl command to http request report (#1107)
* Added curl command to http request report
2021-10-15 11:25:50 +03:00
Jop Zitman 81102750a1 Implement integration tests for remote template and workflow urls. 2021-10-14 23:33:08 +02:00
Jop Zitman 14bb1b7b21 Implement -template-url and -workflow-url for retrieving lists of templates/workflows to run. 2021-10-14 23:33:08 +02:00
Ice3man543 736a530bde Added self-contained http requests implementation 2021-10-14 22:26:01 +05:30
forgedhallpass 9b7a105766 Headless tests refactor - test fix (#1120)
* Add missing headless actions tests #1102
* test refactor (removed parallel test execution)
2021-10-14 19:11:07 +03:00
forgedhallpass 7d6386449d Revert "Add missing headless actions tests #1102"
This reverts commit 4d14063cbe.
2021-10-14 17:38:56 +03:00
forgedhallpass 4d14063cbe Add missing headless actions tests #1102
* test refactor
2021-10-14 17:35:32 +03:00
forgedhallpass 84fb341c7d Merge pull request #1108 from pmareke/feat/add-missing-examples-in-headless-engine-protocol-actions
Add missing tests in headless engine protocol actions
2021-10-14 17:33:04 +03:00
Ice3man c4cc0ad0bf Merge pull request #1114 from projectdiscovery/misc-cleanups
Misc sniper payload cleanups
2021-10-14 16:13:44 +05:30
mzack 88dc16c910 Improving gbk detection coverage 2021-10-14 00:17:24 +02:00
Pedro Lopez Mareque 53281660be chore: refactor tests 2021-10-13 20:45:04 +02:00
Pedro Lopez Mareque 8ee4ed2c17 chore: fix build 2021-10-13 20:29:28 +02:00
Pedro Lopez Mareque 101a1973a4 chore: fix pr comments 2021-10-13 19:52:43 +02:00
forgedhallpass 46d0058470 Merge pull request #1064 from projectdiscovery/colorize_responses
Implementation for: Add coloring to debug information #999
2021-10-13 20:51:19 +03:00
forgedhallpass c0ef419048 Add/Expose Headless action that waits until an element appears #1096
* add timeout and pollTime options
2021-10-13 20:08:10 +03:00
forgedhallpass 88ee74d68a Merge pull request #1101 from pmareke/feat/expose-rod-wait-visible
Expose WaitVisible method from the rod library
2021-10-13 20:00:13 +03:00
GitHub Action fe03cd8e59 Auto Generate Syntax Docs + JSONSchema [Wed Oct 13 07:59:09 UTC 2021] 🤖 2021-10-13 07:59:09 +00:00
sandeep a9cb83ff27 misc sniper cleanups 2021-10-13 13:19:00 +05:30
mzack f8d5d02570 Adding support to read tcp data stream till the end 2021-10-12 23:28:24 +02:00
forgedhallpass d88ed67d2c Do not show AND matcher information in the command line output if debug is not enabled #1081
* integration test fix
2021-10-12 20:18:53 +03:00
forgedhallpass 435ec5cd5d Do not show AND matcher information in the command line output if debug is not enabled #1081 2021-10-12 20:06:55 +03:00
mzack 30558eabf4 Merge branch 'dev' into feature-preserve-input-order 2021-10-12 09:42:23 +02:00
Sandeep Singh cefb4094d3 Merge pull request #1109 from projectdiscovery/dependabot/docker/dev/golang-1.17.2-alpine
chore(deps): bump golang from 1.17.1-alpine to 1.17.2-alpine
2021-10-11 17:30:04 +05:30
forgedhallpass 8392143944 Merge remote-tracking branch 'origin/dev' into colorize_responses 2021-10-11 14:00:53 +03:00
dependabot[bot] 8014066154 chore(deps): bump golang from 1.17.1-alpine to 1.17.2-alpine
Bumps golang from 1.17.1-alpine to 1.17.2-alpine.

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

Signed-off-by: dependabot[bot] <[email protected]>
2021-10-11 05:03:56 +00:00
Pedro Lopez Mareque 322a6213c6 chore: refactor tests 2021-10-10 17:33:18 +02:00
Pedro Lopez Mareque 8502785a92 chore: add more tests 2021-10-10 17:18:53 +02:00
Pedro Lopez Mareque 62bfdf30b4 chore: add more tests 2021-10-10 13:17:35 +02:00
Pedro Lopez Mareque 3cd1b70bc0 chore: fix screenshot path 2021-10-10 08:36:44 +02:00
Pedro Lopez Mareque e53f54b53f chore: remove files 2021-10-10 08:30:32 +02:00
Pedro Lopez Mareque 2b1ab54a6d chore: add tests 2021-10-10 08:29:58 +02:00
Pedro Lopez Mareque 6d88f26b1f chore: add tests 2021-10-09 23:19:07 +02:00
Pedro Lopez Mareque 05c8f2580e chore: add tests 2021-10-09 19:37:12 +02:00
Pedro Lopez Mareque 4383d8557f chore: add timeout test 2021-10-09 17:30:45 +02:00
Pedro Lopez Mareque 7e12774543 chore: add helper method 2021-10-09 17:08:00 +02:00
Ice3man d7eec37052 Merge pull request #1091 from projectdiscovery/cli-variables-as-payload
Cli variables as payload
2021-10-09 20:02:39 +05:30
sandeep cb32a7b5e2 misc update 2021-10-09 20:00:33 +05:30
GitHub Action 1b8ad856d6 Auto Generate Syntax Docs + JSONSchema [Sat Oct 9 14:28:15 UTC 2021] 🤖 2021-10-09 14:28:15 +00:00
Ice3man e79c6262b9 Merge branch 'dev' into cli-variables-as-payload 2021-10-09 19:57:48 +05:30
Ice3man 7de4cc902e Merge pull request #1089 from projectdiscovery/variables-check
Added check for unresolved variables
2021-10-09 19:57:02 +05:30
Ice3man 9c422ecdca Merge pull request #1105 from projectdiscovery/payloads-additions
Removed sniper + made batteringram default + misc
2021-10-09 19:56:47 +05:30
Ice3man543 df1c133f68 Misc 2021-10-09 19:53:37 +05:30
Ice3man543 3584a4b12a Added validation for invalid payload attack type 2021-10-09 19:53:12 +05:30
Ice3man543 aacbb28052 Removed sniper + made batteringram default + misc 2021-10-09 19:46:23 +05:30
Ice3man e5d021c766 Merge pull request #1104 from projectdiscovery/read-response-http2-3
Misc changes to offlinehttp
2021-10-09 18:56:05 +05:30
Ice3man aa873be8f4 Merge pull request #1099 from zerodivisi0n/feature/exclude-severity
Add exclude severity filter
2021-10-09 18:55:51 +05:30
Ice3man d78841631e Merge pull request #1074 from nothinux/read-response-http2-3
Read response from http2 or http3
2021-10-09 18:53:58 +05:30
Ice3man543 2c88370b35 Made the version validation a bit better 2021-10-09 18:53:17 +05:30
Pedro Lopez Mareque 6ebeaf84a3 feat: add missin actions tests 2021-10-09 13:18:43 +02:00
Pedro Lopez Mareque bd14b0f2ac chore: remove block 2021-10-09 13:00:22 +02:00
Pedro Lopez Mareque d06cd671e2 chore: remove .MustWaitVisible to .MustVisible 2021-10-09 12:29:08 +02:00
Pedro Lopez Mareque 3386c1c5bd chore: add new test 2021-10-09 12:26:18 +02:00
Pedro Lopez Mareque 4e54a61b65 feat: expose WaitVisible method from the rod library 2021-10-09 08:39:29 +02:00
forgedhallpass a86c843be5 [issue] Do not show all matcher names for OR conditions #1082
* removing the short circuit in case of matchers with OR operator, because it is intended in cases like technology detection templates etc.
2021-10-08 22:46:53 +03:00
forgedhallpass 61a8ba80b4 If debug is enabled, show matchers that are not named also #1084
* start the indexing of the matcher names from 1 instead of 0
2021-10-08 22:44:40 +03:00
Alexey Zhuchkov 3e8a0af36f Add exclude severity filter 2021-10-08 22:27:27 +03:00
forgedhallpass fc66195b28 [feature] Add coloring to debug information #999
* Code review changes
2021-10-08 20:18:00 +03:00
forgedhallpass f96168fc2c [feature] Add coloring to debug information #999
* Reverted the bug introduced by mistake (checking file exists using os.IsExist vs !os.IsNotExist)
2021-10-08 20:17:37 +03:00
forgedhallpass 52b599ab5d [feature] Add coloring to debug information #999
* fixed typo in the name of the file
2021-10-07 22:09:08 +03:00
forgedhallpass 0a9704ebd8 [feature] Add coloring to debug information #999
* code-review fixes
2021-10-07 20:54:12 +03:00
sandeep bdc38a49a6 misc update 2021-10-07 21:28:54 +05:30
sandeep 100cd41548 mod update 2021-10-07 21:11:02 +05:30
sandeep 7e81989901 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into cli-variables-as-payload 2021-10-07 21:06:38 +05:30
sandeep 30ac8e814a Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into variables-check 2021-10-07 21:06:17 +05:30
sandeep c4b69f5991 interactsh update 2021-10-07 21:03:00 +05:30
Ice3man 40390550da Merge branch 'dev' into variables-check 2021-10-07 19:45:16 +05:30
Ice3man543 5b3b5b8280 misc 2021-10-07 19:44:22 +05:30
Ice3man543 63ac86e60b Updated go.mod/sum 2021-10-07 19:43:38 +05:30
Ice3man543 8d6193ef1f Misc 2021-10-07 19:40:16 +05:30
Ice3man543 92e410fdb5 Added variable check to dns protocol 2021-10-07 19:38:31 +05:30
mzack 7651edfa62 misc 2021-10-07 13:02:15 +02:00
mzack fc31688f69 fixing lint errors 2021-10-07 12:40:18 +02:00
mzack 571f6b8c4c misc 2021-10-07 12:39:22 +02:00
Mzack9999 e89e233543 Merge branch 'dev' into cli-variables-as-payload 2021-10-07 12:38:36 +02:00
mzack 12b6b2ca89 Add support for CLI payload variables 2021-10-07 12:36:27 +02:00
sandeep 2ef034721f interactsh client update 2021-10-07 14:23:38 +05:30
Ice3man543 514d6f94ec Added support for urlencoded variable variation 2021-10-07 05:35:32 +05:30
Ice3man543 4669ee22ce Misc changes to http request execution with variables 2021-10-07 04:50:34 +05:30
Ice3man543 0541040e6b Added templateID to error message 2021-10-07 04:41:31 +05:30
Ice3man543 247ede7170 Misc 2021-10-07 01:48:48 +05:30
Ice3man543 92857497f3 Fixed variable check regex 2021-10-07 01:48:10 +05:30
Ice3man543 ce13bf34d0 Added check for unresolved variables 2021-10-07 01:40:49 +05:30
forgedhallpass b5c161d267 [feature] Add coloring to debug information #999
* extracted common MakeResultEvent logic and added the MakeResultEventItem method to the Request interface
2021-10-06 21:54:52 +03:00
forgedhallpass 76e952ebd2 Removing duplicate request dumping from integration tests, since nuclei already does it if they are started in debug mode 2021-10-06 21:21:40 +03:00
forgedhallpass 49291cc937 If debug is enabled, show matchers that are not named also #1084
* integration test fix
2021-10-05 22:14:18 +03:00
forgedhallpass 85447ca49d Fixes: Do not show all matcher names for OR conditions #1082 2021-10-05 22:04:09 +03:00
forgedhallpass ed3b80b5d7 If debug is enabled, show matchers that are not named also #1084 2021-10-05 22:02:09 +03:00
forgedhallpass 404f8ebb27 Fixes:Binary matcher always returns true if the input cannot be decoded as hex #1085
* changed the Log to Warn instead of Error, so it wouldn't show up in the output without the verbose flag
2021-10-05 16:49:55 +03:00
forgedhallpass 4d34513881 Fix for Binary matcher always returns true if the input cannot be decoded as hex #1085 2021-10-05 16:44:18 +03:00
forgedhallpass 79de2d82cb [feature] Add coloring to debug information #999
* adding status color support for all existing HTTP versions
2021-10-05 15:10:03 +03:00
forgedhallpass 742a5c44fc Merge remote-tracking branch 'origin/dev' into colorize_responses 2021-10-05 13:20:21 +03:00
GitHub Action eb2dee22f1 Auto Generate Syntax Docs + JSONSchema [Mon Oct 4 20:40:57 UTC 2021] 🤖 2021-10-04 20:40:57 +00:00
Sandeep Singh d0476e8e9e Merge pull request #1079 from projectdiscovery/issue-963-dns-resolver-in-dns-template
Adding support for custom resolvers in DNS templates
2021-10-05 02:09:36 +05:30
mzack 407e5cbfeb Adding support for custom resolvers in DNS templates 2021-10-04 15:31:14 +02:00
Sandeep Singh 7d05446f29 Merge pull request #1069 from sullo/dev
Don't add Host header if unsafe is true
2021-10-04 16:30:29 +05:30
Sandeep Singh 5feed3fdca Merge pull request #1059 from projectdiscovery/bugfix-1015-alpine-chrome
Adding headless support on alpine + Use of installed browser
2021-10-04 04:23:36 +05:30
Sandeep Singh 7fce0bce51 Merge branch 'dev' into bugfix-1015-alpine-chrome 2021-10-04 04:22:57 +05:30
sandeep 27cc0d61bc misc update 2021-10-04 04:14:15 +05:30
sandeep 71153c3c39 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into interactsh-integration-test 2021-10-04 03:56:32 +05:30
Sandeep Singh f346fb6f7c Merge pull request #1071 from projectdiscovery/it_debug
Show the command line arguments of integration tests if debug is enabled
2021-10-04 03:56:08 +05:30
nothinux e2349b1d2d add test live response 2021-10-02 22:10:05 +07:00
nothinux 0c2b79bbf5 using table driven tests 2021-10-02 15:05:03 +07:00
nothinux d08d9d2dc0 add test for response without http minor version 2021-10-02 14:31:18 +07:00
nothinux 68f3fb51e5 add minor version to HTTP/2 & HTTP/3 2021-10-02 14:30:40 +07:00
forgedhallpass b55f59ec26 Show the command line for the integration/regression tests when the debug option is enabled.
* minor code cleanup and code duplication removal
2021-10-01 18:23:06 +03:00
Sandeep Singh a7367d256d Merge pull request #1070 from projectdiscovery/interactsh-update
Interactsh server update
2021-10-01 20:11:08 +05:30
forgedhallpass 08cd7a4ba7 [feature] Add coloring to debug information #999
* extracted common logic and made sure that all requests implement the same interface
2021-10-01 16:52:38 +03:00
forgedhallpass b8a2b2a1c4 [feature] Add coloring to debug information #999
* fix nil pointer dereference
2021-10-01 15:10:17 +03:00
forgedhallpass 898c9431b5 [feature] Add coloring to debug information #999
* corrected/renamed receivers from one character names to human-readable format
2021-10-01 14:30:04 +03:00
forgedhallpass a00083e221 [feature] Add coloring to debug information #999
* remove some of the code duplication with a different approach
2021-10-01 14:24:45 +03:00
sandeep 4f8fb0e516 Interactsh server update 2021-10-01 00:40:13 +05:30
Sandeep Singh 291660dda5 Merge pull request #1061 from projectdiscovery/docker-fix
docker workflow improvements
2021-10-01 00:32:14 +05:30
forgedhallpass aa78b58866 [feature] Add coloring to debug information #999 [WIP]
* if there are multiple matchers, the response is only displayed once, with all the matching values colored
2021-09-30 21:12:44 +03:00
forgedhallpass dccd47ed19 [feature] Add coloring to debug information #999 [WIP]
Return the matched content in case of multiple regex/binary matchers (+test)
2021-09-30 20:36:39 +03:00
Sullo 73cd806dbf Merge branch 'dev' of https://github.com/sullo/nuclei into dev 2021-09-30 13:25:22 -04:00
Sullo 3abffe1f5d Only add a Host header automatically if the raw request is *not* marked unsafe.
This will prevent nuclei from adding it when the template author doesn’t want it and uses unsafe: true
Templates using raw requests without Host header were modified in https://github.com/projectdiscovery/nuclei-templates/pull/2784
2021-09-30 13:22:53 -04:00
forgedhallpass d10dfb550e Implicitly set the headless flag if template validation was requested, in order to correctly validate headless templates instead of complaining about "cannot create template executer" 2021-09-30 19:07:59 +03:00
forgedhallpass 8fdc9a7164 Minor optimization: short-circuit the updateTemplates logic if template update was not requested 2021-09-29 19:44:37 +03:00
forgedhallpass 4be6b3cc96 [feature] Add coloring to debug information #999 [WIP]
TODO:
* if there are multiple matchers, make sure the response is only displayed once, with all the matching values colored
* remove code duplication from the request.go files
2021-09-29 19:43:46 +03:00
Ice3man543 7405254c72 Misc work on ws protocol 2021-09-29 04:53:42 +05:30
Ice3man 8a8d61996f Merge pull request #1046 from projectdiscovery/matchers-enhancement#555
Add payload, global variable, helper support to matchers
2021-09-27 20:58:50 +05:30
Ice3man543 b76c1f99cc Misc changes to ws protocol 2021-09-27 20:58:05 +05:30
Ice3man543 396f17484e Added websocket protocol support to nuclei 2021-09-27 18:02:49 +05:30
mzack fc868aba4a misc 2021-09-26 22:36:44 +02:00
mzack 71e4396bd4 Adding support to preserve input order 2021-09-26 22:33:12 +02:00
Sandeep Singh b984f7d63c Merge pull request #1036 from revblock/master
resolves project-discovery/nuclei#822 - Add severity label to GitHub reporter
2021-09-26 18:35:34 +05:30
Sandeep Singh 1853d9ad48 Merge pull request #1040 from projectdiscovery/disk-cleanup
disk cleanups
2021-09-26 18:22:47 +05:30
sandeep 74253459a8 misc update 2021-09-26 18:20:05 +05:30
sandeep 9490146db9 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into disk-cleanup 2021-09-26 18:08:15 +05:30
sandeep 5cd9ce03df version update 2021-09-26 18:03:18 +05:30
Sandeep Singh 91fa16c067 Merge pull request #1060 from projectdiscovery/bugfix-1053-unsafe-unwanted-ops
Removing unwanted bytes operation for unsafe requests
2021-09-26 17:53:00 +05:30
Sandeep Singh c77805aef3 Merge pull request #1058 from projectdiscovery/bugfix-1043-dns-txt-record
Fixing extended dns edge cases
2021-09-26 17:44:41 +05:30
sandeep 30fb8aacaa docker workflow improvements 2021-09-26 17:32:19 +05:30
mzack 50fa95747a Removing unwanted bytes operation for unsafe requests 2021-09-26 08:31:24 +02:00
mzack df0c4e2361 updating dockerfile to support headless with alpine 2021-09-26 07:56:54 +02:00
mzack ce205ae8a0 Adding support for installed chrome browser 2021-09-26 07:56:35 +02:00
mzack 0397068dd0 Fixing extended dns edge cases 2021-09-26 07:22:00 +02:00
Ice3man543 1bf023abc2 Disk report should include matcher or extractor name 2021-09-25 21:40:38 +05:30
Sandeep Singh 818d55e4b4 Merge pull request #1054 from projectdiscovery/docker-tagging
Added semantic versioning in docker tags
2021-09-25 16:39:27 +05:30
sandeep cedc391485 Replacing go get with go install 2021-09-25 16:13:07 +05:30
sandeep 1a3e071fc2 Update dockerhub-push.yml 2021-09-25 05:07:58 +05:30
sandeep b34d9507e3 Added version tagging to docker release 2021-09-25 04:38:57 +05:30
Ice3man543 0b11b80d8a Fixed some bugs with ssl protocols + misc enhancements 2021-09-24 19:35:00 +05:30
Ice3man543 f6e9acf06f More work on other protocol additions 2021-09-23 18:30:44 +05:30
Ice3man543 5c31b75ac7 Added ssl protocol to nuclei 2021-09-22 22:41:07 +05:30
sandeep aff4197ea9 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into matchers-enhancement#555 2021-09-21 16:36:58 +05:30
sandeep 76b86ba2a0 disk cleanups 2021-09-19 16:26:47 +05:30
Sandeep Singh f5fb8aa305 Merge pull request #1038 from projectdiscovery/dev
v2.5.2 Bugfix release
2021-09-18 16:16:22 +05:30
sandeep 8b96c14ffe misc update 2021-09-18 16:14:59 +05:30
Ice3man 712e3aeb72 Update elasticsearch.go 2021-09-18 15:59:01 +05:30
sandeep 54214eb400 version update 2021-09-18 15:53:44 +05:30
Ice3man543 ea8a709bea Upgraded go-rod to latest version 2021-09-18 15:38:15 +05:30
Scott Bamforth 4e7f1eef37 Fix formatting 2021-09-17 21:20:23 +01:00
Revblock 8db02e8191 Merge branch 'dev' into master 2021-09-17 21:19:31 +01:00
Scott Bamforth a4be346e4d Add severity label to Gitlab/JIRA reporter 2021-09-17 21:08:48 +01:00
Revblock 10cc08c758 Add severity label to GitHub reporter 2021-09-17 13:36:28 +01:00
Sandeep Singh 383c61c930 Merge pull request #1031 from projectdiscovery/fastdialer-fix
Crash fixes
2021-09-17 15:21:13 +05:30
mzack 301c263dc8 dropping glog based dbs 2021-09-17 10:11:27 +02:00
mzack dd3f84c60d updating fastdialer 2021-09-17 09:40:55 +02:00
mzack e314a062df Merge branch 'dev' into fastdialer-fix 2021-09-17 09:09:12 +02:00
mzack a08d90e9df misc 2021-09-17 09:08:01 +02:00
GitHub Action 13ade32f0f Auto Generate Syntax Docs + JSONSchema [Thu Sep 16 19:14:52 UTC 2021] 🤖 2021-09-16 19:14:52 +00:00
forgedhallpass ef39802555 Merge pull request #1034 from geeknik/patch-4
Update templates_doc.go
2021-09-16 22:13:35 +03:00
forgedhallpass c5a1753548 Merge branch 'dev' into patch-4 2021-09-16 20:35:43 +03:00
GitHub Action 818838ade6 Auto Generate Syntax Docs + JSONSchema [Thu Sep 16 17:30:33 UTC 2021] 🤖 2021-09-16 17:30:33 +00:00
forgedhallpass 261279d4c2 Merge pull request #1032 from projectdiscovery/metadata-update
Replaced the "additional-fields" attribute with "metadata" for convenience
2021-09-16 20:29:17 +03:00
GitHub Action ba587b14bd Auto Generate Syntax Docs + JSONSchema [Thu Sep 16 17:12:26 UTC 2021] 🤖 2021-09-16 17:12:26 +00:00
forgedhallpass 2af11f489d Merge pull request #966 from projectdiscovery/code_smells
Code smells and various minor corrections
2021-09-16 20:11:12 +03:00
forgedhallpass 2baf695709 Merge remote-tracking branch 'origin/dev' into code_smells 2021-09-16 20:00:21 +03:00
Geeknik Labs 0d31e965ef Update nuclei-jsonschema.json
minor nit
2021-09-16 11:46:36 -05:00
Geeknik Labs 4fdda86a0b Update SYNTAX-REFERENCE.md
typo fix
2021-09-16 11:45:57 -05:00
Geeknik Labs 67d3bd6052 Update README.md
typo fix
2021-09-16 11:44:09 -05:00
Geeknik Labs c8307b2c83 Update dsl.go
typo fix
2021-09-16 11:40:10 -05:00
Geeknik Labs 3b8ec873eb Update operators.go
minor nit
2021-09-16 11:39:45 -05:00
Geeknik Labs 20a1a5c9da Update elasticsearch.go
typo fix
2021-09-16 11:38:15 -05:00
Geeknik Labs eb566416fc Update instance.go
typo fix
2021-09-16 11:37:36 -05:00
Geeknik Labs 05d1f8aac8 Update build_request.go
typo fix
2021-09-16 11:36:08 -05:00
Geeknik Labs e79fcb0db3 Update request.go
typo fix
2021-09-16 11:35:20 -05:00
Geeknik Labs 115f6d1b52 Update http.go
typo fix
2021-09-16 11:34:23 -05:00
Geeknik Labs 2aee208050 Update network.go
minor nit
2021-09-16 11:33:20 -05:00
Geeknik Labs d95f723639 Update model.go
small updates
2021-09-16 11:30:49 -05:00
Geeknik Labs 78cfb07214 Update templates_doc.go
small fixes
2021-09-16 11:29:22 -05:00
Geeknik Labs fc950a02e6 Update templates_doc.go
Typo fix
2021-09-16 11:27:17 -05:00
Ice3man543 deaa86f5cc Added interactsh based template to integration test 2021-09-16 21:29:58 +05:30
Sandeep Singh 4845b85328 Merge pull request #1026 from projectdiscovery/github-rate-limit-fix
GitHub rate limit bug fix
2021-09-16 21:27:46 +05:30
sandeep bfb0a994d8 additional-fields to metadata 2021-09-16 21:16:47 +05:30
mzack d40755ef65 tidying go modules 2021-09-16 17:46:02 +02:00
sandeep 38268d485b misc update 2021-09-16 20:49:50 +05:30
forgedhallpass 9b45c31db8 Merge remote-tracking branch 'origin/dev' into code_smells 2021-09-16 15:49:51 +03:00
sandeep cefbd376ef misc update 2021-09-16 17:27:06 +05:30
Ice3man543 9bbcb57be0 Added disclaimer for auto update to comments 2021-09-16 16:49:09 +05:30
Ice3man543 7aa8cc54f1 Added updated fastdialer for panic fix 2021-09-16 16:44:03 +05:30
Sandeep Singh 19e0f39f2b Merge pull request #1027 from projectdiscovery/fix/make-indentation
fix Makefile indentation for commands to work
2021-09-16 14:39:05 +05:30
Ice3man543 259ccb118f fix: interactsh crash when not initialized 2021-09-15 18:15:22 +05:30
Sajad Parra f1ad6f6bc5 add payload, variable, helper support to matchers 2021-09-15 18:02:22 +05:30
Sajad Parra 14ecfedf24 fix Makefile indentation for commands to work 2021-09-15 17:48:33 +05:30
sandeep 2b99561b5d misc update 2021-09-15 14:23:02 +05:30
Ice3man543 2521d5333e fix: gbk when uppercase isn't decoded properly 2021-09-15 04:18:52 +05:30
Ice3man543 4d52fb45e4 Misc changes to update and ignore handling 2021-09-15 04:01:40 +05:30
Sandeep Singh 744c739aa1 Merge pull request #1017 from projectdiscovery/1016_vv_fix 2021-09-15 03:55:31 +05:30
Ice3man543 6667f285d3 fix: consider missing templates directory in update check 2021-09-15 03:48:40 +05:30
GitHub Action c73c6a9f62 Auto Generate Syntax Docs + JSONSchema [Tue Sep 14 13:33:29 UTC 2021] 🤖 2021-09-14 13:33:29 +00:00
Ice3man 518ba1ab39 Merge pull request #1021 from projectdiscovery/misc-jsonschema
Misc work on jsonschema validations
2021-09-14 19:01:55 +05:30
Ice3man543 ad9755dd83 Misc work on jsonschema validations 2021-09-14 17:34:10 +05:30
forgedhallpass 01d0fb485c Fixes 1016 # Implicitly enable the Verbose option if VerboseVerbose is set. 2021-09-13 22:18:43 +03:00
Sandeep Singh 474987ee4a Merge pull request #1014 from projectdiscovery/dependabot/docker/dev/golang-1.17.1-alpine
chore(deps): bump golang from 1.17.0-alpine to 1.17.1-alpine
2021-09-13 16:22:00 +05:30
Ice3man543 0f232bce25 Don't show message without -ut 2021-09-13 15:47:29 +05:30
Ice3man543 04a4159fa5 Misc changes to update mechanism 2021-09-13 15:45:24 +05:30
Ice3man543 be46cb2b32 Show not found new templates message 2021-09-13 15:32:40 +05:30
Ice3man543 d7c6d1d0f5 misc 2021-09-13 15:20:46 +05:30
Ice3man543 c1e4a613c8 Misc 2021-09-13 15:10:36 +05:30
Ice3man543 638c7633cb Misc updates 2021-09-13 15:03:04 +05:30
Ice3man543 8a1a739355 Misc 2021-09-13 14:57:30 +05:30
Ice3man543 5cda839152 Fixed an issue with nuclei version for templates 2021-09-13 14:38:22 +05:30
forgedhallpass 5bd1d6b201 Merge remote-tracking branch 'origin/dev' into code_smells 2021-09-13 11:27:23 +03:00
dependabot[bot] b69d98be3e chore(deps): bump golang from 1.17.0-alpine to 1.17.1-alpine
Bumps golang from 1.17.0-alpine to 1.17.1-alpine.

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

Signed-off-by: dependabot[bot] <[email protected]>
2021-09-13 05:02:56 +00:00
Ice3man543 cb39fd9d13 Use separate nuclei version check infra 2021-09-11 18:40:07 +05:30
sandeep dfff092caf dev update 2021-09-10 23:39:12 +05:30
Ice3man543 7f058dbad0 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into dev 2021-09-10 23:21:46 +05:30
Ice3man543 e07123e6ca misc 2021-09-10 23:21:25 +05:30
sandeep d9cb531e45 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei 2021-09-10 22:35:49 +05:30
sandeep 9a5392e091 functional-test fix 2021-09-10 22:33:08 +05:30
Sandeep Singh 29b4faec4d Merge pull request #1009 from projectdiscovery/dev
2.5.1 Release
2021-09-10 22:00:48 +05:30
sandeep 81b3d225df version update 2021-09-10 21:47:14 +05:30
Ice3man543 ca85186d9a Edge cases with gbk decode 2021-09-10 21:19:05 +05:30
Ice3man543 9643a7a462 Misc 2021-09-10 21:17:31 +05:30
Ice3man543 5b0b59e04c Misc 2021-09-10 21:16:03 +05:30
Ice3man543 e8cadd86f1 Misc 2021-09-10 21:13:52 +05:30
Ice3man543 1976651890 Added gbk decoder 2021-09-10 21:11:13 +05:30
Ice3man543 ec814ca0e2 Misc 2021-09-10 20:36:22 +05:30
Ice3man543 f3c285b66d Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into dev 2021-09-10 20:24:15 +05:30
Ice3man543 5661a21148 go.mod update 2021-09-10 20:22:39 +05:30
Ice3man543 404021811b Fixed a panic with cve-annotate 2021-09-10 20:20:10 +05:30
sandeep f44d122db0 Update go.sum 2021-09-10 19:57:53 +05:30
Sandeep Singh 2ac8df6ccf Merge pull request #1007 from chenrui333/go-1.17
build: update dockerfile and go.mod
2021-09-10 19:53:56 +05:30
sandeep e64d31deb1 misc update 2021-09-10 19:50:57 +05:30
sandeep eae6df9360 misc update 2021-09-10 19:48:21 +05:30
forgedhallpass c762cc88aa Merge remote-tracking branch 'origin/dev' into code_smells 2021-09-10 15:33:09 +03:00
Ice3man543 3b7f7aaca2 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into dev 2021-09-10 17:02:38 +05:30
Ice3man543 b25188ab4f Misc 2021-09-10 17:01:59 +05:30
Sandeep Singh 39eb141f10 Merge branch 'master' into go-1.17 2021-09-10 15:52:34 +05:30
GitHub Action d3e2d32c54 Auto Generate Syntax Docs + JSONSchema [Fri Sep 10 09:34:25 UTC 2021] 🤖 2021-09-10 09:34:25 +00:00
Ice3man 8f62da84c0 Merge pull request #1004 from projectdiscovery/new-info-fields
Added new info block fields classification and remediation
2021-09-10 15:03:14 +05:30
Ice3man a9cf7e5a09 Delete syntax-reference.md 2021-09-10 14:41:24 +05:30
Ice3man 1637d0d13e Delete nuclei-jsonschema.json 2021-09-10 14:41:10 +05:30
Ice3man c5f478962b Merge pull request #1008 from projectdiscovery/clusterer-fixes
Clusterer fix + interactsh improvements
2021-09-10 14:27:22 +05:30
Ice3man543 c2c77de6f3 Use sync.Once for on-use initialization of interactsh 2021-09-10 00:32:05 +05:30
Ice3man543 e10c4d68ff Fixed issue with duplicate ids in clusterer 2021-09-10 00:21:36 +05:30
Ice3man543 ae511cb82f Misc 2021-09-09 20:08:05 +05:30
Ice3man543 11636f5bfc Support multiple cve-ids 2021-09-09 20:05:43 +05:30
Ice3man543 ab34aa991e Formatting changes 2021-09-09 19:59:42 +05:30
Ice3man543 6012994405 Misc changes to reporting 2021-09-09 19:56:39 +05:30
Ice3man543 ee74561bbf Misc 2021-09-09 19:54:10 +05:30
Ice3man543 d75a85a68f Uppercase 2021-09-09 19:49:01 +05:30
Ice3man543 2e923f683a go.mod tidy 2021-09-09 19:23:28 +05:30
Ice3man543 7f2b0da53c Added cve-annotate helper 2021-09-09 18:55:25 +05:30
Ice3man543 e683212bb8 Made irr default for reporting + misc on new fields 2021-09-09 18:53:55 +05:30
Rui Chen c45dfb1e7c build: update go.mod and pull in all indirect dependencies 2021-09-09 00:50:09 -04:00
Rui Chen dd422e18d3 build(docker): use tagged image rather than latest 2021-09-09 00:49:33 -04:00
Ice3man543 6192c97d40 Added new fields to reporting 2021-09-09 03:30:17 +05:30
Ice3man543 ca066367f4 Added new info block fields 2021-09-08 20:42:37 +05:30
Ice3man543 7d42967139 Merge branch 'master' of https://github.com/projectdiscovery/nuclei into dev 2021-09-08 20:24:00 +05:30
Ice3man543 99fe86da8f Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into dev 2021-09-08 20:23:55 +05:30
forgedhallpass 4c4d8ef28f Merge pull request #1002 from geeknik/patch-4
Update banner.go
2021-09-08 17:13:03 +03:00
Geeknik Labs c891d113db Update banner.go
Missing punctuation.
2021-09-08 09:10:22 -05:00
forgedhallpass 555e609173 Merge remote-tracking branch 'origin/dev' into code_smells 2021-09-07 17:36:34 +03:00
forgedhallpass 0ce33927c7 Typo fixes. 2021-09-07 17:31:46 +03:00
sandeep 802b6b4f65 misc update 2021-09-06 19:10:32 +05:30
Ice3man 1ea89d7560 Merge pull request #993 from wdahlenburg/interactsh-auth
Support Authorization Header for Self-Hosted Interactsh Servers
2021-09-06 16:01:13 +05:30
forgedhallpass cfd3079739 Merge pull request #997 from projectdiscovery/unmarshal_severities
YAML Unmarshal error in reporting template #996
2021-09-06 13:14:19 +03:00
forgedhallpass d45fbdbad5 Merge remote-tracking branch 'origin/dev' into unmarshal_severities 2021-09-06 13:13:45 +03:00
Ice3man543 f089c44111 Merge branch 'master' of https://github.com/projectdiscovery/nuclei into dev 2021-09-06 15:06:14 +05:30
Ice3man 79421aa088 Update publish-docs.yaml 2021-09-06 15:04:09 +05:30
forgedhallpass 297a73c145 Fix regex that checks for loaded templates within the regression tests 2021-09-03 17:44:00 +03:00
forgedhallpass 0acec5e039 Adding correct godoc prefixes 2021-09-03 17:25:50 +03:00
forgedhallpass d96c911a4b Minor changes in the issue-tracker-config.yaml and their test counterparts 2021-09-03 17:17:51 +03:00
GitHub Action c256bef362 Auto Generate Syntax Docs + JSONSchema [Fri Sep 3 13:50:44 UTC 2021] 🤖 2021-09-03 13:50:44 +00:00
forgedhallpass 16a54e3b98 YAML Unmarshal error in reporting template #995 2021-09-03 16:48:39 +03:00
forgedhallpass 5e50d469e7 Merge pull request #996 from gano3s/dev
[issue] 995 - YAML Unmarshal error in reporting template
2021-09-03 16:23:39 +03:00
Sandeep Singh d261061fda Merge pull request #991 from projectdiscovery/fix/pitchfork
remove pitchfork validation
2021-09-03 14:29:09 +05:30
sandeep a648838f29 removing duplicate comments 2021-09-03 12:46:00 +05:30
Sandeep Singh 8011b9f721 Merge pull request #994 from wdahlenburg/base64-helper
Support Raw Base64 Encoding for Deserialization Helpers
2021-09-03 12:14:13 +05:30
ganoes e8411bc99f Fix in YAML template via UnmarshalYAML 2021-09-02 17:10:54 +02:00
ganoes 2af996de68 comment all examples 2021-09-02 16:39:21 +02:00
ganoes 5e78dedce6 Hot fix - severities in yaml template for reporting 2021-09-02 16:37:49 +02:00
Wyatt Dahlenburg 1ccc4b2823 Switching to base64-raw 2021-09-02 08:05:47 -05:00
forgedhallpass 2988e9554b Merge remote-tracking branch 'origin/dev' into code_smells 2021-09-02 12:31:28 +03:00
forgedhallpass 0cabce518f Merge branch 'dev' into code_smells 2021-09-02 12:30:43 +03:00
Wyatt Dahlenburg 693aec37d8 Support raw base64 encoding 2021-09-01 11:59:51 -05:00
Wyatt Dahlenburg f9afd27605 Allow authorization header value to be specified for self-hosted interact.sh servers 2021-09-01 11:42:15 -05:00
sandeep 7e80dec5e7 dev update 2021-09-01 21:07:37 +05:30
sandeep b623ca8ace Merge branch 'master' of https://github.com/projectdiscovery/nuclei into dev 2021-09-01 21:06:46 +05:30
Sandeep Singh 3fb9972114 misc update 2021-09-01 20:56:30 +05:30
forgedhallpass 8b8c16dd8e Improve readability of some methods 2021-09-01 17:36:07 +03:00
forgedhallpass f9eb8ba8ac Changed/removed some documentation/comments 2021-09-01 17:34:51 +03:00
Sajad Parra 761d62f3de remove pitchfork validation 2021-09-01 20:03:53 +05:30
sandeep c6f9aa69f8 Merge branch 'master' of https://github.com/projectdiscovery/nuclei into dev 2021-09-01 18:19:01 +05:30
GitHub Action 04e636075e Auto Generate Syntax Docs + JSONSchema [Wed Sep 1 10:24:55 UTC 2021] 🤖 2021-09-01 10:24:55 +00:00
sandeep 698390f7d0 Merge branch 'master' of https://github.com/projectdiscovery/nuclei 2021-09-01 15:53:37 +05:30
sandeep d7f8ad8a62 final changes 2021-09-01 15:53:30 +05:30
GitHub Action 7d630aac98 Auto Generate Syntax Docs + JSONSchema [Wed Sep 1 10:19:45 UTC 2021] 🤖 2021-09-01 10:19:45 +00:00
GitHub Action 9d0856e3c8 Auto Generate Syntax Docs + JSONSchema [Wed Sep 1 10:19:34 UTC 2021] 🤖 2021-09-01 10:19:34 +00:00
sandeep f3ed61b4c7 misc update 2021-09-01 15:48:01 +05:30
Sandeep Singh 3fce3ae632 Merge pull request #988 from projectdiscovery/dev
Nuclei v2.5.0 Release preparation
2021-09-01 15:43:23 +05:30
GitHub Action 87b0796501 Auto Generate Syntax Docs + JSONSchema [Wed Sep 1 10:12:40 UTC 2021] 🤖 2021-09-01 10:12:40 +00:00
sandeep 16d7dbeb66 Misc changes 2021-09-01 15:40:53 +05:30
Sandeep Singh 8300486bec Merge pull request #753 from gano3s/dev
Do not create a new issue in Jira if it is already opened
2021-09-01 15:33:32 +05:30
GitHub Action 791c6eaf36 Auto Generate Syntax Docs + JSONSchema [Wed Sep 1 10:02:54 UTC 2021] 🤖 2021-09-01 10:02:54 +00:00
Sandeep Singh ec10852a68 Merge pull request #986 from projectdiscovery/validate-fixes
Added new stats counters + validation fixes
2021-09-01 15:31:18 +05:30
sandeep 8fcfa28fbb Revert "Auto Generate Syntax Docs + JSONSchema [Wed Sep 1 07:30:30 UTC 2021] 🤖"
This reverts commit 443775fc5b.
2021-09-01 15:17:47 +05:30
sandeep a8c474dbe9 Revert "updated docs workflow"
This reverts commit 2e33d47e86.
2021-09-01 15:17:45 +05:30
Sandeep Singh 1691e02d80 Merge pull request #990 from projectdiscovery/yaml_docs_update
Minor updates to YAML document
2021-09-01 15:14:48 +05:30
ganoes 426b95bdf4 Added logger 2021-09-01 11:43:02 +02:00
GitHub Action 99c772a340 Auto Generate Syntax Docs + JSONSchema [Wed Sep 1 09:40:13 UTC 2021] 🤖 2021-09-01 09:40:13 +00:00
sandeep cb5c0cde1d misc docs update 2021-09-01 15:08:46 +05:30
sandeep 37bf6b8d7e updated docs workflow 2021-09-01 15:07:53 +05:30
Ganoes 5c81e5a640 Merge branch 'dev' into dev 2021-09-01 11:37:28 +02:00
ganoes 88ed8a64cd Updated names of variables to follow guidelines 2021-09-01 11:30:22 +02:00
ganoes cdca47fbe5 Merge branch 'dev' of github.com:gano3s/nuclei into dev 2021-09-01 11:24:23 +02:00
GitHub Action 443775fc5b Auto Generate Syntax Docs + JSONSchema [Wed Sep 1 07:30:30 UTC 2021] 🤖 2021-09-01 07:30:30 +00:00
sandeep 2e33d47e86 updated docs workflow 2021-09-01 12:59:00 +05:30
sandeep 605393d1a8 misc CLI UI update 2021-09-01 02:01:55 +05:30
sandeep e0a2e5d292 misc flag update 2021-09-01 01:09:16 +05:30
Ice3man543 f0dcfa78fa Updated doc example 2021-09-01 00:05:20 +05:30
Ice3man543 7bdb826c43 Misc fix 2021-08-31 23:58:43 +05:30
Ice3man543 60904cadd4 Fixed workflow running without being specified during balidation 2021-08-31 23:30:07 +05:30
sandeep 7b4803132d readme update 2021-08-31 22:59:11 +05:30
Sandeep Singh 5525b0f404 Merge pull request #928 from yabeow/master
Add helper function `print_debug` for debug purposes
2021-08-31 22:50:48 +05:30
Ice3man543 19770d186f Changed code as per review comments 2021-08-31 21:39:20 +05:30
Ice3man543 2c8f5bc2e5 Fixed some banners 2021-08-31 19:58:11 +05:30
Ice3man543 44700e6c60 Show errors when validate flag is passed for syntax 2021-08-31 19:53:53 +05:30
Ice3man543 96adaf5257 Misc 2021-08-31 19:28:20 +05:30
Ice3man543 c3e32f5e15 Added new stats counters + validation fixes 2021-08-31 19:27:26 +05:30
forgedhallpass f36ed8df64 Removed unused parameter 2021-08-31 13:21:15 +03:00
forgedhallpass 40d88d2304 In-lined error checks, reduced scope of error variables, introduced new error variables instead of re-using them 2021-08-31 12:55:52 +03:00
forgedhallpass cfbd628b55 Merge branch 'dev' into code_smells 2021-08-31 12:48:01 +03:00
Ice3man543 d33f6eb502 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into dev 2021-08-30 16:58:22 +05:30
Ice3man543 1946d2ec52 Fixed a crash in workflow loader 2021-08-30 16:58:11 +05:30
Ice3man 085fa7b726 Merge pull request #985 from projectdiscovery/hang-fix
Potential hang fix due to websocket protocol switching
2021-08-30 14:01:01 +05:30
Ice3man543 482fea58a8 Added separate Path and File variables for HTTP requests 2021-08-30 13:35:11 +05:30
Ice3man543 996a1aa973 Show headers when debugging with no body 2021-08-30 13:28:34 +05:30
Ice3man543 10afcff6c1 Fixed another hang within http request 2021-08-30 12:40:38 +05:30
Ice3man543 484df4b9ce Don't skip the request if status code is 101 2021-08-30 12:37:36 +05:30
Ice3man543 dd46d97920 Pontential fix for nuclei stuck issue 2021-08-30 12:28:41 +05:30
Ice3man543 3430ca2567 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into dev 2021-08-30 12:28:14 +05:30
Sandeep Singh a0872989ab Merge pull request #983 from projectdiscovery/fix-crashes-config
Fixed internal config reading crashes
2021-08-30 02:44:17 +05:30
sandeep de9d8fff50 misc update 2021-08-30 00:28:06 +05:30
sandeep f3de44c9b8 misc update 2021-08-29 22:03:58 +05:30
Ice3man a4264f9b82 Merge pull request #982 from projectdiscovery/workflow_filtering
Workflow filtering and validation optimization
2021-08-28 21:22:34 +05:30
Ice3man543 9c5ef85909 Added cache test 2021-08-28 20:52:13 +05:30
Ice3man543 78554252ed Misc changes to workflow parts 2021-08-28 00:27:37 +05:30
Ice3man543 30f6498fe2 Replace error constant with an error type 2021-08-28 00:21:07 +05:30
Ice3man543 f5ea35d45c Don't match for metadata on workflow 2021-08-28 00:19:05 +05:30
Ice3man543 08fdc3bdcc Added cache package + misc changes to loaders 2021-08-28 00:15:28 +05:30
Ice3man543 ec9c16d5c7 Merge branch 'workflow_filtering' of https://github.com/projectdiscovery/nuclei into dev 2021-08-27 23:38:10 +05:30
Ice3man543 b83de5fb88 Fixed internal config reading crashes 2021-08-27 23:23:01 +05:30
forgedhallpass 52b26fd601 Minor refactor to remove duplicate logic when validating templates. 2021-08-27 17:21:02 +03:00
forgedhallpass 9375094a48 Minor typo fixes 2021-08-27 17:06:33 +03:00
forgedhallpass 36b1c08edc Optimize template validation 2021-08-27 17:06:06 +03:00
forgedhallpass 095e78e431 Fix filtering by severity in case of workflows. 2021-08-27 17:05:12 +03:00
Ice3man543 b7e3eec8db Don't show timestamp with no-timestamp flag 2021-08-27 19:12:06 +05:30
Ice3man543 18d0aa74c2 go.mod update 2021-08-27 17:19:11 +05:30
Ice3man543 b38d8cdc5a Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into dev 2021-08-27 16:11:05 +05:30
Ice3man543 4b4f7005fd Bump retryablehttp-go 2021-08-27 16:11:00 +05:30
Ice3man 1b2c1b8732 Merge pull request #980 from projectdiscovery/dsl-urlencode-decode-fix
Dsl urlencode decode fix
2021-08-27 02:41:14 +05:30
Ice3man543 004ed31fdc Fixed urlencode/decode with queryescape 2021-08-27 02:38:15 +05:30
Ice3man543 a5d818a2e6 Fixed a schema issue with dns types 2021-08-26 23:27:42 +05:30
Sandeep Singh 7060e6125e Merge pull request #976 from projectdiscovery/interactsh-changes
Fixed interactsh edge case + debug mode logging for interact
2021-08-26 16:39:31 +05:30
Sandeep Singh 30f9764511 Merge pull request #977 from projectdiscovery/bugfix-pogreb-version-bump
Bumping pogreb version
2021-08-26 03:35:34 +05:30
mzack 72ad860f6d Bumping pogreb version 2021-08-25 23:59:33 +02:00
Ice3man543 e7a0417bc2 Fixed interactsh edge case + debug mode logging for interact 2021-08-26 02:43:58 +05:30
Ice3man bd722c2474 Merge pull request #975 from projectdiscovery/stop-at-first-match
Stop at first match support for HTTP requests
2021-08-26 02:19:57 +05:30
Ice3man543 18d0858f31 Added stop-at-first-match to http requests 2021-08-26 02:09:14 +05:30
Ice3man543 fb2ec8f5d2 Fixed problems with nuclei templates update logic 2021-08-25 18:52:51 +05:30
Ice3man543 0088893310 Fix for template directory location override 2021-08-25 18:24:10 +05:30
Ice3man543 63bc417398 Use older ioutil package for compatibility 2021-08-25 14:19:46 +05:30
Ice3man d8b9172559 Merge pull request #973 from projectdiscovery/elasticsearch-export
Elasticsearch export
2021-08-25 13:56:12 +05:30
Ice3man d4e6aac3be Merge pull request #962 from Nishan8583/elasticsearch-export
Elasticsearch export
2021-08-25 13:55:47 +05:30
Ice3man543 071ff1ded9 Removed es exporter cli args + misc changes 2021-08-25 13:53:44 +05:30
Ice3man b65c5f589e Update publish-docs.yaml 2021-08-25 13:14:28 +05:30
GitHub Action f712c7442d Auto Generate Syntax Docs [Wed Aug 25 07:41:40 UTC 2021] 🤖 2021-08-25 07:41:40 +00:00
Ice3man 535001f937 Merge pull request #968 from projectdiscovery/jsonschema-addition
Added jsonschema generation for yaml syntax
2021-08-25 13:09:07 +05:30
forgedhallpass 9408515927 Merge pull request #967 from projectdiscovery/os_agnostic_filepaths
Efforts to make working with files OS independent
2021-08-24 21:47:17 +03:00
Ice3man543 20aa291709 Fixed typo in template 2021-08-24 20:02:55 +05:30
Ice3man543 5e21cd6566 Removed stale schema file 2021-08-24 19:50:50 +05:30
Ice3man543 3476e5b7c1 Auto-generate fields of enum 2021-08-24 14:37:34 +05:30
Ice3man543 e48c8bef23 Fixed lint errors 2021-08-24 13:35:01 +05:30
Ice3man543 6a673053c2 Added jsonschema generation for yaml syntax 2021-08-23 23:50:45 +05:30
forgedhallpass 07ca97fdaf Efforts to make working with files OS-agnostic.
Replacing "path." methods to "filepath." in order to make the code OS independent.
2021-08-23 16:42:29 +03:00
forgedhallpass 448388a825 Added TODOs next to un-used parameters 2021-08-23 16:21:18 +03:00
Bùi Đại Gia 350d347388 fix mistake 2021-08-23 19:25:11 +07:00
Bùi Đại Gia 986a4981fb rename print_stdout to print_debug 2021-08-23 19:18:07 +07:00
forgedhallpass 71c0d217e2 Replacing "path." methods to "filepath." in order to make the code OS independent 2021-08-23 14:54:28 +03:00
forgedhallpass 7f46ad0a35 Merge pull request #961 from forgedhallpass/master
Intellij Idea/GoLang run configurations
2021-08-23 13:52:40 +03:00
Sandeep Singh b8b5cb8b1c Merge pull request #965 from projectdiscovery/dependabot/docker/dev/golang-1.17.0-alpine
chore(deps): bump golang from 1.16.7-alpine to 1.17.0-alpine
2021-08-23 15:02:09 +05:30
dependabot[bot] 1d8176ccfc chore(deps): bump golang from 1.16.7-alpine to 1.17.0-alpine
Bumps golang from 1.16.7-alpine to 1.17.0-alpine.

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

Signed-off-by: dependabot[bot] <[email protected]>
2021-08-23 05:03:34 +00:00
nishan8583 646c07ea2d chaning description field 2021-08-22 07:52:29 +05:45
nishan8583 f2812804cb Merge branch 'elasticsearch-export' of https://github.com/Nishan8583/nuclei into elasticsearch-export 2021-08-22 07:51:31 +05:45
nishan8583 33bb3d5c64 assigment duplication removed, defaults from description removed 2021-08-22 07:50:33 +05:45
sandeep ac904174a1 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into pr/962 2021-08-21 23:38:08 +05:30
sandeep f3fced5bad Update build-test.yml 2021-08-21 23:37:04 +05:30
nishan8583 354c82defe testing done and also checked 2021-08-21 08:33:27 +05:45
forgedhallpass 2e0552411f Extending test cases for template filtering to make sure that the filter criteria is used with OR operand in case of multiple values + positive and negative scenario for the "extraTags" parameter 2021-08-20 16:21:44 +03:00
nishan8583 39fff4102f timestmap issue and last log not being pushed 2021-08-20 07:27:19 -05:00
forgedhallpass 34e873c655 Adding Intellij Idea/GoLang run configurations that enable running the unit, integration, functional/regression tests at a click of a button or using keyboard shortcuts. 2021-08-20 15:03:20 +03:00
nishan8583 9f5f32d477 elasticsearch package added, other changes needs to be shifted 2021-08-20 06:58:58 -05:00
Ice3man d0c5e9baf7 Merge pull request #958 from projectdiscovery/bugfix-http-to-dsl-priority
Fixing priority in response to DSL mapping
2021-08-20 16:28:34 +05:30
Ice3man 049670fe66 Merge pull request #869 from projectdiscovery/yamldoc
Added new YAML based doc to structures
2021-08-20 16:20:21 +05:30
Ice3man543 ba4d5a8d21 Removed temporary fix 2021-08-20 16:19:33 +05:30
Ice3man543 b8b45a323c Merge branch 'yamldoc' of https://github.com/projectdiscovery/nuclei into yamldoc 2021-08-20 16:17:51 +05:30
Ice3man543 12446c8bca Merge branch 'master' of https://github.com/projectdiscovery/nuclei into yamldoc 2021-08-20 16:11:24 +05:30
GitHub Action adc37acfca Auto Generate Syntax Docs [Fri Aug 20 10:37:41 UTC 2021] 🤖 2021-08-20 10:37:41 +00:00
Ice3man543 e92c9bc7bc Fixed an issue with doc publish 2021-08-20 16:06:18 +05:30
Ice3man543 3f5db14a75 Push changes if doc changed 2021-08-20 16:04:05 +05:30
Ice3man543 07d0b1997c Misc 2021-08-20 15:59:32 +05:30
Ice3man 7377dd6c54 Create publish-docs.yaml 2021-08-20 15:57:28 +05:30
Ice3man543 3c0936fc86 Updated README with syntax reference 2021-08-20 15:32:29 +05:30
Ice3man543 919d726762 Added docs generate github action 2021-08-20 15:24:33 +05:30
Ice3man543 2bf3652593 Merge branch 'yamldoc' of https://github.com/projectdiscovery/nuclei into yamldoc 2021-08-20 15:15:09 +05:30
Ice3man543 e34e784756 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into yamldoc 2021-08-20 15:13:22 +05:30
Ice3man543 232c0d9e0e Fixed some merge problems + misc docgen 2021-08-20 15:11:19 +05:30
mzack bc66ef34df Fixing priority in response to DSL mapping 2021-08-19 15:31:26 +02:00
forgedhallpass d7fc8cd99c Merge pull request #957 from forgedhallpass/master
Changed the "custom-fields" attribute to "additional-fields"
2021-08-19 16:13:51 +03:00
forgedhallpass 795b77851e * Changed the "custom-fields" attribute to "additional-fields"
* #259 - dynamic key-value field support for template information
* #940 - new infos in template
* #834
* RES-84
2021-08-19 15:57:37 +03:00
Ice3man 6bea033d53 Merge pull request #955 from projectdiscovery/structure-overhaul
Nuclei Structure + Template Loading Overhaul
2021-08-19 17:53:07 +05:30
Ice3man b9d4f3021c Merge pull request #956 from forgedhallpass/master
Re-introducing custom template info attribute support within the new struct
2021-08-19 17:52:45 +05:30
forgedhallpass 6bfd6bd28f Adjusting the template/workflow loading/filtering logic. 2021-08-19 15:17:25 +03:00
Ice3man543 4cc770f102 Merged dev 2021-08-19 16:51:02 +05:30
Ice3man543 66af0297c0 Exported ParseTemplate + use it everywhere for parsing 2021-08-19 02:10:36 +05:30
Ice3man543 01b902f119 Cleanup some loader parts + moved workflow loading separate 2021-08-19 01:58:54 +05:30
forgedhallpass df8d3bec47 Re-introducing custom template info attribute support within the new struct
* Changed the "customAttributes" to "custom-fields"

* #259 - dynamic key-value field support for template information
* #940 - new infos in template
* #834
* RES-84
2021-08-18 20:10:53 +03:00
forgedhallpass 836740a81f Re-introducing custom template info attribute support within the new struct
* Satisfying the linter

* #259 - dynamic key-value field support for template information
* #940 - new infos in template
* #834
* RES-84
2021-08-18 19:54:02 +03:00
forgedhallpass 7b807cbe88 Merge remote-tracking branch 'upstream/dev' 2021-08-18 19:51:17 +03:00
forgedhallpass e7c74f0c65 Re-introducing custom template info attribute support within the new struct
* #259 - dynamic key-value field support for template information
* #940 - new infos in template
* #834
* RES-84
2021-08-18 19:50:48 +03:00
Ice3man543 297ce0fc83 Changed error message + return template and don't skip 2021-08-18 21:58:20 +05:30
Ice3man543 46347c599d Added error logging on unknown fields in verbose mode 2021-08-18 21:50:42 +05:30
Ice3man 37eaadefea Merge pull request #951 from projectdiscovery/host-max-errors
Added HostErrorsCache to track errors per-host for skipping failures
2021-08-17 20:43:15 +05:30
Sandeep Singh 3f73e1561d Merge pull request #953 from projectdiscovery/bugfix-dsl-helper-trim
Fixing some DSL helpers logic
2021-08-17 18:13:41 +05:30
sandeep 03d2405c3d misc update 2021-08-17 17:56:35 +05:30
sandeep a41d52c35d Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into host-max-errors 2021-08-17 17:54:38 +05:30
mzack ea9b700bf0 more fixes 2021-08-17 14:14:47 +02:00
mzack 2e816bf514 Fixing some DSL helpers logic 2021-08-17 14:06:49 +02:00
Ice3man dcf780f7c8 Merge pull request #834 from forgedhallpass/master
RES-84 # Improve Nuclei CLI interface
2021-08-17 16:46:06 +05:30
forgedhallpass 456544d5be RES-84 # Improve Nuclei CLI interface
* Fixed Template Author mapping
2021-08-17 14:05:52 +03:00
Sandeep Singh 0ab66782e0 Merge pull request #950 from projectdiscovery/933-bugfix-dsl-number-conversion
Fixing wrong type conversion in DSL helper
2021-08-17 16:33:58 +05:30
forgedhallpass e9f77d7046 RES-84 # Improve Nuclei CLI interface
* fix the run.sh in case of integration tests not to fail if there are no built artifacts before execution
2021-08-17 14:00:12 +03:00
sandeep 213b8be0f7 misc update 2021-08-17 16:25:59 +05:30
forgedhallpass df3090c0b4 RES-84 # Improve Nuclei CLI interface
* Removing fields with empty value
2021-08-17 13:50:33 +03:00
forgedhallpass f56ff199d6 RES-84 # Improve Nuclei CLI interface
* fixing JSON output for Template Info + test
2021-08-17 13:46:53 +03:00
Ice3man543 a9b4cb076b Add support to clusterer for host errors 2021-08-17 16:05:29 +05:30
Ice3man543 586b4c0f8e Show skipped hosts 2021-08-17 14:50:54 +05:30
forgedhallpass 1106262a4b Merge remote-tracking branch 'upstream/dev' 2021-08-17 12:08:56 +03:00
Ice3man543 3177aea6f9 Misc 2021-08-17 14:33:50 +05:30
Ice3man543 b800e2cce2 Cancel http requests if the host keeps erroring 2021-08-17 14:23:42 +05:30
Ice3man543 dd6f9bbc61 Merge branch 'host-max-errors' of https://github.com/projectdiscovery/nuclei into host-max-errors 2021-08-16 21:29:34 +05:30
Ice3man543 8452adfa73 Fixing the linter 2021-08-16 21:28:58 +05:30
Ice3man 737bf28b8b Merge branch 'dev' into host-max-errors 2021-08-16 21:26:32 +05:30
Ice3man543 f216c6f6b3 Added HostErrorsCache for tracking failed hosts 2021-08-16 21:24:37 +05:30
Ice3man af3fd12128 Merge pull request #949 from projectdiscovery/946-bugfix-runtime-error
Fixing slice runtime error due to unset byte slice capacity
2021-08-16 20:51:49 +05:30
Ice3man 6e45e29995 Merge pull request #924 from savushkin-yauheni/pitchfork-validation-fix
fixed pitchfork validation
2021-08-16 20:49:56 +05:30
Sandeep Singh 34ea557b97 Merge pull request #938 from projectdiscovery/feature/global-payload#554
Add payload, helper function support to all http requests
2021-08-16 20:47:26 +05:30
mzack dd6874edde Fixing wrong type conversion in DSL helper 2021-08-16 17:16:42 +02:00
mzack d3c1f4ba49 Fixing slice runtime error due to unset byte slice capacity 2021-08-16 17:10:42 +02:00
Sajad Parra 1dec3727bc Merge branch 'dev' into feature/global-payload#554 2021-08-16 00:23:52 +05:30
Sajad Parra cef6459b7e add payload/heelper support for http headers, body, method 2021-08-16 00:14:47 +05:30
Ice3man 09d56f4b67 Merge pull request #937 from projectdiscovery/fix/values-precedence
change values precedence to prioritise default nuclei values
2021-08-13 20:13:52 +05:30
Ice3man 3c9c43ee24 Merge pull request #935 from wdahlenburg/domain_support
Add Additional Generic Url Variables
2021-08-13 20:10:15 +05:30
Ice3man543 2ffffbcc04 Added more variables + misc 2021-08-13 20:08:18 +05:30
Sajad Parra b4ba7ca144 add payload, helper function support to all http requests 2021-08-13 19:40:10 +05:30
Sajad Parra 46e1528cf6 change values precedence to prioritise default nuclei values 2021-08-13 10:05:28 +05:30
Wyatt Dahlenburg da1630fc21 Add additional generic url variables 2021-08-12 12:21:46 -05:00
Bùi Đại Gia 5aad51045c Add helper function print_stdout for debug purposes 2021-08-12 13:54:50 +07:00
sandeep 335b38028c help menu update 2021-08-10 23:51:23 +05:30
sandeep 9588d47986 dev update 2021-08-10 15:23:47 +05:30
Sandeep Singh f00be3cd26 Merge pull request #925 from projectdiscovery/bugfix-read-body-error
Adding support to ignore random internal errors
2021-08-10 15:22:31 +05:30
mzack fd948b6f96 Adding support to ignore random internal errors 2021-08-10 11:49:01 +02:00
savik fb18feea76 fixed pitchfork validation 2021-08-10 12:34:37 +03:00
mzack a038889c21 Merge branch 'dev' into yamldoc 2021-08-10 08:04:50 +02:00
Sandeep Singh 701c999f8a Merge pull request #922 from projectdiscovery/dev
Hotfix release
2021-08-10 02:19:40 +05:30
sandeep 3d49094d07 version update 2021-08-10 02:18:03 +05:30
Sandeep Singh af6a720e21 Merge pull request #900 from projectdiscovery/xpath-extractors
Added xpath extractors for http requests
2021-08-10 02:16:56 +05:30
Sandeep Singh 004472a180 Merge pull request #915 from projectdiscovery/feature-cli-variables
Adding support for user defined variables via CLI
2021-08-10 02:15:03 +05:30
mzack 08b467e3ca Merge branch 'dev' into feature-cli-variables 2021-08-09 20:11:11 +02:00
Sandeep Singh 3ed04dd9ad Merge pull request #916 from projectdiscovery/643-feature-env-variables-support
Adding support for global env variables
2021-08-09 23:37:42 +05:30
mzack b7ceb7887c bumping goflags version 2021-08-09 19:19:54 +02:00
mzack 9b7c13fe28 merging dev 2021-08-09 13:05:59 +02:00
mzack fbe9d3d0a4 Merge branch 'dev' into xpath-extractors 2021-08-09 13:04:57 +02:00
mzack 4d81aead0f Merge branch 'dev' into feature-cli-variables 2021-08-09 12:49:29 +02:00
mzack f016a9c4ce merging dev 2021-08-09 12:47:47 +02:00
Mzack9999 a8509b873f Merge pull request #918 from projectdiscovery/maintenance-bump-interactsh-version
Bumping interactsh version to 0.0.4
2021-08-09 12:42:43 +02:00
mzack 22f912e20e misc 2021-08-09 12:38:31 +02:00
mzack 2a12b2917f misc 2021-08-09 12:02:16 +02:00
mzack a1f78eaa68 removing deprecated .golangci.yaml 2021-08-09 11:57:36 +02:00
mzack b4c602c4c7 Bumping interactsh version to 0.0.4 2021-08-09 11:55:23 +02:00
mzack b5338a5281 Using goflags runtime map for runtime variables 2021-08-09 10:51:52 +02:00
mzack 5be59c8bea Making map of env vars singleton 2021-08-09 09:49:07 +02:00
Mzack9999 12d004233a Merge pull request #917 from projectdiscovery/dependabot/docker/dev/golang-1.16.7-alpine
chore(deps): bump golang from 1.16.6-alpine to 1.16.7-alpine
2021-08-09 09:03:41 +02:00
Mzack9999 403e335005 Merge pull request #913 from projectdiscovery/890-bugfix-connection-header
Fixing automatic keep alive handling with manual connection header
2021-08-09 09:02:54 +02:00
dependabot[bot] 7a8244e9e5 chore(deps): bump golang from 1.16.6-alpine to 1.16.7-alpine
Bumps golang from 1.16.6-alpine to 1.16.7-alpine.

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

Signed-off-by: dependabot[bot] <[email protected]>
2021-08-09 05:03:21 +00:00
mzack e17117c281 Adding support for global env variables 2021-08-09 00:22:09 +02:00
mzack fbd362c34c Adding support for user defined variables via CLI 2021-08-08 23:42:10 +02:00
mzack aa0ea8123a thread safe + client reuse refactoring 2021-08-08 21:52:01 +02:00
mzack 24a171ecad fixing linter warnings 2021-08-08 10:28:01 +02:00
mzack 4904bbf494 Fixing automatic keep alive handling with manual connection header 2021-08-08 10:25:17 +02:00
forgedhallpass e999229952 RES-84 # Improve Nuclei CLI interface
* reused some common logic
2021-08-05 18:19:59 +03:00
forgedhallpass ccf65ab1d3 RES-84 # Improve Nuclei CLI interface
* changed the template info content retrieval logic not to use reflection
2021-08-05 16:36:50 +03:00
forgedhallpass 75b21282ab Merge remote-tracking branch 'upstream/dev' 2021-08-05 14:36:28 +03:00
Ice3man543 8449a5e73f Misc changes to docs 2021-08-05 00:54:34 +05:30
forgedhallpass ef7591d3c8 Merge pull request #884 from TheSecEng/impl/targets/targets_to_targetfile
implement `TargetsFile` and change logic of `Targets`
2021-08-04 20:39:08 +03:00
TheSecEng 68ab370c32 fix typos 2021-08-04 10:28:56 -07:00
forgedhallpass cc55e26446 RES-84 # Improve Nuclei CLI interface (WIP)
* Pleasing the linter
2021-08-04 17:51:34 +03:00
Ice3man543 01dcb01867 Added more docs examples + Misc 2021-08-04 14:20:48 +05:30
TheSecEng 70c0c57507 Merge remote-tracking branch 'origin/impl/targets/targets_to_targetfile' into impl/targets/targets_to_targetfile 2021-08-03 22:47:53 -07:00
TheSecEng 825f417b53 fixes
- Rename Targets -> TargetsFilePath
- Rename Target -> Targets
- Implement target checks (empty, dupe)
- Update documentation
2021-08-03 22:47:09 -07:00
Ice3man543 334243d160 Adding documentation generation to nuclei 2021-08-03 22:33:50 +05:30
Ice3man543 c9ad9cdff4 Updated examples 2021-08-03 20:40:00 +05:30
Ice3man543 8130a76ff1 Misc 2021-08-03 20:36:56 +05:30
Ice3man543 2d0c711638 Fixed lint errors 2021-08-03 20:36:26 +05:30
Ice3man543 2ea47fe386 Fixed integration test 2021-08-03 20:33:12 +05:30
Ice3man543 c743d5d299 Merged from dev 2021-08-03 20:22:16 +05:30
forgedhallpass 138745a6b1 RES-84 # Improve Nuclei CLI interface (WIP)
* Pleasing the linter
2021-08-03 15:39:15 +03:00
forgedhallpass d3154648d2 Merge remote-tracking branch 'upstream/dev' 2021-08-03 15:26:45 +03:00
forgedhallpass fd95b282a1 RES-84 # Improve Nuclei CLI interface (WIP)
* possible replacement of some logic
2021-08-03 15:05:13 +03:00
forgedhallpass a0f7e622b1 RES-84 # Improve Nuclei CLI interface (WIP)
* fix/improve matching logic
2021-08-03 14:59:38 +03:00
forgedhallpass 2f162e859e RES-84 # Improve Nuclei CLI interface (WIP)
* removed the generic isEmpty implementation
2021-08-03 14:51:34 +03:00
Ice3man f516136bd7 Merge pull request #898 from KaulSe/try-add-json-support
Adding JSON extractor support
2021-08-02 22:04:51 +05:30
Ice3man543 688d9e466b Fixed lint error 2021-08-02 21:46:29 +05:30
Ice3man543 11e5520166 Added xpath based extractor support 2021-08-02 21:43:50 +05:30
seb aae26f37a6 add JSONScalarToString and more tests for JSON extractor 2021-08-02 13:19:39 +02:00
Ice3man543 e59fd80b02 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into dev 2021-08-02 15:20:17 +05:30
sandeep 2e95ba3fb7 Readme update
As we are still allowing single input per flag
2021-08-02 13:04:13 +05:30
Ice3man e8d30486e4 Merge pull request #896 from souvikhazra1/master
Added support for rate limit per minute
2021-08-02 12:34:23 +05:30
Sandeep Singh 2c69426f8d Merge pull request #891 from projectdiscovery/functional-tests
RES-120 Functional Testing Implementation for release regression
2021-08-02 12:24:56 +05:30
sandeep d0251192be minor update 2021-08-02 12:12:22 +05:30
sandeep 637713cb68 few updates 2021-08-02 12:02:40 +05:30
sandeep ebd165dd22 Adding test workflow 2021-08-02 11:45:15 +05:30
sandeep 2c8730690b WIP updates 2021-08-02 11:40:44 +05:30
Souvik Hazra 250b87aa01 Revert "Support for environment variables with .env file"
This reverts commit 25235523da.
2021-08-02 11:37:37 +05:30
seb d2e7cca17b fix golint 2021-08-01 14:42:04 +02:00
seb cc12babf58 Update extractors.go 2021-08-01 12:38:35 +02:00
seb c76504f0d6 use import () in extractors.go 2021-08-01 12:38:13 +02:00
Souvik Hazra 25235523da Support for environment variables with .env file 2021-08-01 11:00:38 +05:30
seb 3df9be0fa7 Update extractors.go 2021-08-01 00:02:43 +02:00
seb d61c7578c1 make tidy 2021-07-31 23:59:32 +02:00
seb da71945f97 Update operators_test.go 2021-07-31 23:51:23 +02:00
seb 166344d793 add and fix tests for json 2021-07-31 23:48:14 +02:00
seb 3529cfa1d6 json extractor support 2021-07-31 22:49:23 +02:00
Souvik Hazra eb080223d8 Added support for rate limit per minute 2021-07-31 15:46:21 +05:30
sandeep 0eea45fb60 Add building step 2021-07-30 20:01:27 +05:30
Ice3man543 a9ecc1fbca Statisfying the linter 2021-07-30 15:30:44 +05:30
Ice3man543 8d0b5d6203 RES-120 Added functional testing implementation 2021-07-30 15:29:12 +05:30
Ice3man543 640a9f4a17 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei 2021-07-30 15:20:27 +05:30
Ice3man543 2fb9c19871 Merge branch 'master' of https://github.com/projectdiscovery/nuclei into dev 2021-07-30 15:19:53 +05:30
forgedhallpass 68a6d394e7 RES-84 # Improve Nuclei CLI interface (WIP)
* resolving some TODOs
2021-07-30 12:07:58 +03:00
TheSecEng 61428b0c9b fix string comparison 2021-07-29 08:24:40 -07:00
TheSecEng 0295555c70 switch back to file based input for Targets and switch Target to
receive a goflags.StringSlice (`[]string`) as an argument
2021-07-29 08:14:44 -07:00
sandeep 571a4c3c33 dev update 2021-07-29 20:04:21 +05:30
Sandeep Singh 985a7c0f66 Merge pull request #886 from projectdiscovery/dev
2.4.2 Bugfix Release
2021-07-29 19:28:23 +05:30
Ice3man543 5b03d25743 Do no check for template updates with flag 2021-07-29 19:24:39 +05:30
sandeep 774bb0145f version update 2021-07-29 19:18:47 +05:30
Sandeep Singh fba3d1e6a6 Merge pull request #883 from projectdiscovery/bugfix-stringslice
Removing normalization of case-sensitive parameters
2021-07-29 16:26:48 +05:30
forgedhallpass 3c475e2d21 Merge remote-tracking branch 'origin/bugfix-stringslice' into bugfix-stringslice 2021-07-29 13:36:58 +03:00
forgedhallpass 53de8d77f2 Removing normalization of case-sensitive parameters
Integrated new goflags version (v0.0.6)
2021-07-29 13:36:44 +03:00
sandeep 80d0def963 go mod update 2021-07-29 16:06:32 +05:30
sandeep 2594b282fe go mod update 2021-07-29 16:05:34 +05:30
TheSecEng 34fb629138 implement TargetsFile and change logic of Targets 2021-07-28 17:48:26 -07:00
forgedhallpass 119f7380fb Removing normalization of case-sensitive parameters
Requires integration of a new goflags
2021-07-28 23:01:05 +03:00
sandeep 808efc3dac dev update 2021-07-27 20:46:14 +05:30
Sandeep Singh d7d2258827 Merge pull request #871 from geeknik/patch-3
Update README.md
2021-07-27 19:43:11 +05:30
Sandeep Singh fec36dcc02 Merge pull request #870 from geeknik/patch-2
Update main.go
2021-07-27 19:42:57 +05:30
Geeknik Labs 870f9be64b Update README.md
typo fix
2021-07-27 08:37:04 -05:00
Geeknik Labs 7448869f29 Update main.go
typo fix
2021-07-27 08:35:37 -05:00
Ice3man543 d04511494d Added new YAML based doc to structures 2021-07-27 16:03:56 +05:30
sandeep 543cfdd309 Adding resources 2021-07-27 15:36:13 +05:30
Sandeep Singh d181179597 more visiblity to help options 2021-07-27 15:24:39 +05:30
Sandeep Singh 8cf388b5a9 Merge pull request #863 from projectdiscovery/dev
v2.4.1 Release preparation
2021-07-27 15:22:03 +05:30
Sandeep Singh c227e6ca8e Merge pull request #862 from projectdiscovery/goflags-grouping
Refreshed CLI Help menu with Grouping options
2021-07-27 00:29:22 +05:30
sandeep ca70aef78c readme update 2021-07-27 00:27:17 +05:30
forgedhallpass cc2e141a5e RES-87 # Improve Nuclei CLI interface
* small code review fix
2021-07-26 21:53:53 +03:00
forgedhallpass 1c0b60417e RES-87 # Improve Nuclei CLI interface
* ordered the CLI arguments based on their importance
2021-07-26 17:45:08 +03:00
forgedhallpass acf6a9d5b6 RES-87 # Improve Nuclei CLI interface
* updated the CLI argument descriptions
2021-07-26 17:06:17 +03:00
Sandeep Singh 25be233e34 Merge pull request #867 from projectdiscovery/fix-filter-exclude-issue
Fixed filter exclude issue
2021-07-26 17:04:21 +05:30
Ice3man543 ae25d1d108 Fixed filter exclude issue 2021-07-26 16:57:45 +05:30
forgedhallpass 54efe77225 RES-87 # Improve Nuclei CLI interface 2021-07-26 13:39:14 +03:00
sandeep 68cd86838d readme update 2021-07-25 20:03:27 +05:30
sandeep be5c78c34e minor update 2021-07-25 19:44:46 +05:30
sandeep b6fe520694 misc updates 2021-07-25 19:40:39 +05:30
sandeep b9e7772af6 version update 2021-07-25 17:12:14 +05:30
sandeep b5a1935b64 Refreshed CLI Help menu with Grouping options 2021-07-25 17:07:50 +05:30
Ice3man543 3e16929f68 WIP nuclei flags grouping + reordering 2021-07-25 16:13:59 +05:30
Ice3man543 20e519ec04 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into dev 2021-07-25 16:06:35 +05:30
Ice3man543 8650fdbe5a Show message on no new update 2021-07-25 16:06:12 +05:30
Ice3man 2dc3b0aecf Merge pull request #861 from TheSecEng/impl/custom_tracker_exporter
[FEATURE] Implementation of custom Exporter/Tracker
2021-07-25 16:00:51 +05:30
TheSecEng e9fa301e4f implementation of custom Exporter/Tracker
- RegisterTracker to allow for custom trackers to be implemented beyond Jira/Github/Gitlab
- RegisterExporter to allow for custom exporters to be implemented beyond Sarif/Disk
2021-07-24 22:39:59 -07:00
sandeep 62a957d812 misc updates 2021-07-25 04:31:22 +05:30
Ice3man543 97460f37f9 Stats bugs fixes + no error for no updates 2021-07-25 04:27:25 +05:30
Ice3man543 274dc490a4 Misc update 2021-07-25 04:25:31 +05:30
sandeep 1b00efc8e3 misc update 2021-07-25 03:45:10 +05:30
Sandeep Singh 76de3a1378 Merge pull request #860 from projectdiscovery/auto-update
Nuclei Engine Self Update Support with flag
2021-07-25 03:43:19 +05:30
Ice3man d5b19c6723 Fixed bug with updates on windows test repo name 2021-07-25 03:37:05 +05:30
Ice3man543 d53c903517 Misc changes to auto-update mechanism 2021-07-25 03:13:46 +05:30
Ice3man543 ecf122c465 Added nuclei-engine auto-update mechanism 2021-07-25 03:07:19 +05:30
Ice3man 04667f6069 Merge pull request #841 from projectdiscovery/deserialization-helpers
Adding deserialization helpers to nuclei
2021-07-24 19:30:50 +05:30
Ice3man543 4eecec4c94 Changed file names 2021-07-24 19:28:09 +05:30
Ice3man543 2f05a8c42d gofmt file 2021-07-24 19:27:09 +05:30
Ice3man b78780cd96 Merge branch 'dev' into deserialization-helpers 2021-07-24 19:20:36 +05:30
Ice3man 2b735c2e1e Merge pull request #851 from TheSecEng/impl/custom/preprocessors
Allow for User supplied Preprocessor Logic
2021-07-24 18:43:08 +05:30
forgedhallpass 3143d5aea9 Merge pull request #853 from TheSecEng/impl/custom/helpers
implement custom helper logic
2021-07-23 22:05:00 +03:00
Zachary Schulze 37626627ef remove unused preprocessor from template 2021-07-23 11:43:50 -07:00
Zachary Schulze 7ebab7875b update
- Added AddHelperFunction comment/usage
- AddHelperFunction returns err on duplicate key definitions
2021-07-23 11:39:30 -07:00
Sandeep Singh a7f3da3983 Merge pull request #855 from ChriZzn/master
Adding DS (DNSSec) Tag to available DNS-Record type
2021-07-22 14:17:23 +05:30
TheSecEng 013311b6b2 Merge remote-tracking branch 'origin/dev' into impl/custom/helpers 2021-07-21 22:05:46 -07:00
cw 9aa783459d Adding DS (DNSSec) Tag to available DNS-Record type 2021-07-21 16:48:01 +02:00
TheSecEng 40f2c562dc implemente custom helper logic 2021-07-20 23:27:12 -07:00
TheSecEng 2bea3f4b14 all for custom preprocessor 2021-07-20 22:32:44 -07:00
forgedhallpass a431d6d6a8 RES-84 # Improve Nuclei CLI interface
* linter related
* removed some un-used code
2021-07-20 13:06:18 +03:00
Sandeep Singh 48307e3286 Merge pull request #848 from projectdiscovery/844-bugfix-missing-headers
[Bugfix] Missing headers in request dump
2021-07-20 14:17:02 +05:30
mzack d29d7f8b56 Fixing missing headers in request dump 2021-07-19 23:34:22 +02:00
forgedhallpass 5d89bb8056 RES-84 # Improve Nuclei CLI interface
* fixed issues reported by the linter
2021-07-19 21:04:08 +03:00
forgedhallpass 795978c78f RES-84 # Improve Nuclei CLI interface
* goflags update to v0.0.5
2021-07-19 17:51:37 +03:00
forgedhallpass c9217d2775 RES-84 # Improve Nuclei CLI interface (WIP) 2021-07-19 17:29:28 +03:00
Sandeep Singh e1104d838b Merge pull request #845 from projectdiscovery/dependabot/docker/dev/golang-1.16.6-alpine
chore(deps): bump golang from 1.15-alpine to 1.16.6-alpine
2021-07-19 16:38:17 +05:30
dependabot[bot] 64cb4bd1f3 chore(deps): bump golang from 1.15-alpine to 1.16.6-alpine
Bumps golang from 1.15-alpine to 1.16.6-alpine.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
2021-07-19 05:03:46 +00:00
Ice3man543 0fd65e2bf2 Integrated deserialization helpers to nuclei + Misc bug fixes 2021-07-18 05:35:06 +05:30
Ice3man543 5af0f55ef8 Added more encoding + misc 2021-07-18 04:52:51 +05:30
Ice3man543 f903187df3 Started work on java deserialization helpers 2021-07-18 04:34:39 +05:30
forgedhallpass 4b850662d3 RES-84 # Improve Nuclei CLI interface (WIP)
* unit test fix
2021-07-16 17:36:30 +03:00
forgedhallpass 2635c65ce2 RES-84 # Improve Nuclei CLI interface (WIP)
* moved the Severity "enum" back to Nuclei (1 unit test failing)
2021-07-16 17:28:13 +03:00
forgedhallpass 6588e8b7ac RES-84 # Improve Nuclei CLI interface (WIP)
* Removed built binary added by mistake
2021-07-15 13:55:19 +03:00
forgedhallpass b1424313e9 Merge remote-tracking branch 'upstream/master' 2021-07-15 13:43:47 +03:00
forgedhallpass 5a495e1e99 RES-84 # Improve Nuclei CLI interface (WIP)
* Integration of the previous logic to 2.4.0
* Unit and ITs passing
* refactored the template matching logic
2021-07-15 13:41:41 +03:00
forgedhallpass 2c7d8befcb RES-84 # Improve Nuclei CLI interface (WIP)
* Rename of Info.Severity -> Info.SeverityHolder, Info.Author -> Info.Authors to reflect the underlying data
* extended the IsEmpty(interface{}) to handle maps
2021-07-13 11:12:03 +03:00
Sandeep Singh 84244b5e79 Merge pull request #827 from projectdiscovery/dev
example update
2021-07-12 21:12:59 +05:30
sandeep d3f1d1d111 example update 2021-07-12 21:12:43 +05:30
sandeep 1215832549 Minor release fix 2021-07-12 17:35:15 +03:00
forgedhallpass ed1dc103fe RES-84 # Improve Nuclei CLI interface (WIP)
* Merge from parent

# Conflicts:
#	v2/cmd/nuclei/main.go
#	v2/internal/runner/config.go
#	v2/internal/runner/templates.go
#	v2/internal/runner/update.go
#	v2/pkg/templates/compile.go
#	v2/pkg/templates/compile_test.go
#	v2/pkg/types/types.go
2021-07-12 17:20:01 +03:00
Sandeep Singh b2cec62b87 Merge pull request #826 from projectdiscovery/dev
Minor release fix
2021-07-12 19:24:24 +05:30
sandeep 71634aa039 Minor release fix 2021-07-12 19:24:04 +05:30
forgedhallpass 0c2964da0a RES-113 # Improve code quality
* created IsEmpty utility method
2021-07-12 16:28:43 +03:00
forgedhallpass 784dd1090b RES-84 # Improve Nuclei CLI interface
* "enum" for safely working with severities
2021-07-12 16:28:43 +03:00
sandeep 39b6888b6c crash fix 2021-07-12 03:13:39 +05:30
sandeep 03046a83b9 Update README.md 2021-07-12 03:11:47 +05:30
Sandeep Singh 2790f2c3b5 Merge pull request #823 from projectdiscovery/crash-fix
Nuclei Parallel HTTP Map crash fix
2021-07-10 16:21:12 +05:30
Ice3man543 c2fde993ff Nuclei Parallel HTTP Map crash fix 2021-07-10 14:54:49 +05:30
Ice3man 76fe4c67a3 Merge pull request #818 from projectdiscovery/dev
Nuclei v2.4.0 Release
2021-07-09 15:25:57 +05:30
sandeep 58fc6b8180 flag tweaks 2021-07-09 00:46:12 +05:30
sandeep 86707c3094 Example updates 2021-07-08 21:31:07 +05:30
sandeep 732cd46d4b Update README.md 2021-07-08 21:03:02 +05:30
sandeepandIce3man 4988ef76b5 minor improvements
Co-Authored-By: Ice3man <[email protected]>
2021-07-08 18:50:03 +05:30
Sandeep Singh 1b8f4b3f25 Merge pull request #820 from projectdiscovery/add-stats-json
Lint fixes and settings stats json to true upon JSON flag
2021-07-08 15:31:29 +05:30
Sandeep Singh e015ab6bf4 Merge pull request #816 from xstevens/add-stats-json
Added flag to ouptut stats in JSON format
2021-07-08 15:30:27 +05:30
Sandeep Singh f7750f7d80 Merge pull request #819 from projectdiscovery/ui-changes
UI changes + Filters case handling
2021-07-08 15:28:25 +05:30
Ice3man543 6a4b541de1 Automatically set statsjson to true when passed json 2021-07-08 15:26:58 +05:30
Ice3man543 99b28fe872 Fixed small lint issue 2021-07-08 15:24:04 +05:30
Ice3man543 e6aad9a9a7 Fixed lowercase uppercase tag/author/severity 2021-07-08 15:22:48 +05:30
Ice3man543 017b171169 Some UI changes to nuclei 2021-07-08 15:15:26 +05:30
Xavier Stevens b51294df15 Fixed linter issues 2021-07-07 13:31:03 -07:00
Xavier Stevens 41cf65978c Fixed args to NewStatsTicker method call 2021-07-07 13:30:41 -07:00
Xavier Stevens 2c331b2a87 Added flag to ouptut stats in JSON format 2021-07-07 13:30:29 -07:00
sandeep c41672802b temporary lint fix 2021-07-08 00:47:21 +05:30
sandeep 262cb74b45 Update runner.go 2021-07-08 00:41:22 +05:30
sandeep 18abd4866e minor updates 2021-07-08 00:37:58 +05:30
Sandeep Singh b2b6e4243b Merge pull request #813 from projectdiscovery/validate-templates
Added validate flag to validate templates
2021-07-07 20:34:14 +05:30
Ice3man543 8f74415cc5 Fix double errors + silent stats show 2021-07-07 19:56:20 +05:30
Ice3man543 53cfeb1d58 Pleasing linter part - 2 2021-07-07 19:23:25 +05:30
Ice3man543 8de221f137 Pleasing the linter 2021-07-07 19:16:48 +05:30
Ice3man543 8a80d11467 Support workflows + general code refactor 2021-07-07 19:15:09 +05:30
Ice3man543 da37020939 Fixed occured spelling 2021-07-07 19:05:26 +05:30
Ice3man543 94365a58dc Added validate flag to validate templates 2021-07-07 19:03:14 +05:30
Sandeep Singh 063fede82c Merge pull request #811 from projectdiscovery/network-features
Network features addition
2021-07-06 22:44:17 +05:30
Ice3man543 3a1c7eb317 Fixed output praser 2021-07-06 21:15:40 +05:30
Ice3man543 2153459a51 Crash fix 2021-07-06 21:13:26 +05:30
Ice3man543 cdb7faaa0b Misc output change 2021-07-06 21:11:30 +05:30
Ice3man543 900c2da89c Fixed lint error 2021-07-06 20:31:32 +05:30
Ice3man543 d9d4f8eb53 Fixed network payloads not appearing in json 2021-07-06 20:30:15 +05:30
Ice3man543 0910d526af Added internal extractor support to network templates 2021-07-06 18:34:25 +05:30
Ice3man543 93ab540b54 Added payload support for network requests 2021-07-06 18:27:30 +05:30
Sandeep Singh cfb912b099 Merge pull request #809 from projectdiscovery/workflows-loader-fix
Workflows restructured to work with filters + tag support
2021-07-06 18:04:51 +05:30
Ice3man543 b7d1d5e69e Fixed tag inclusion logic 2021-07-06 17:37:18 +05:30
Ice3man543 4db5e92cee Fixed lint errors 2021-07-06 13:59:38 +05:30
Ice3man543 142e3709c7 Fixed bug with workflow 2021-07-06 13:18:18 +05:30
Ice3man543 b7a5287370 Fixed workflow tag based execution logic 2021-07-05 21:56:40 +05:30
Ice3man543 c90d2eb4c8 Tags field type change for workflow 2021-07-05 21:02:38 +05:30
Ice3man543 1037dace47 Misc bug fixes with workflow execution and tags 2021-07-05 21:01:51 +05:30
Ice3man543 d05453effe Fixed workflow conditions 2021-07-05 17:41:39 +05:30
Ice3man543 aaf38a531e Fixed lint errors + misc 2021-07-05 17:29:45 +05:30
Ice3man543 39af527234 Fixed some bugs with workflow loader 2021-07-05 14:25:42 +05:30
Ice3man543 0726acc3d1 Workflows restructured to work with filters + tag support 2021-07-05 04:35:53 +05:30
sandeep 53a84f7e93 Update runner.go 2021-07-03 17:43:02 +05:30
Ice3man d45d1c9b64 Merge pull request #806 from projectdiscovery/auto-template-download-update
Auto template download/update
2021-07-03 16:39:18 +05:30
Ice3man543 56ff3a0554 Fixed update printing logic 2021-07-03 16:37:21 +05:30
Ice3man543 6c4753afb5 Fixed integration tests 2021-07-03 16:28:47 +05:30
Ice3man543 cc7e55b8dd Fixed update tests 2021-07-03 16:20:19 +05:30
Ice3man543 57f29c8136 Auto template download/update 2021-07-03 16:13:32 +05:30
Ice3man c731e7f927 Merge pull request #799 from projectdiscovery/loader-fix
[wip] Nuclei Templates Loader Rewrite
2021-07-02 15:56:13 +05:30
Ice3man543 3dbf51f1a3 Merge branch 'loader-fix' of https://github.com/projectdiscovery/nuclei into loader-fix 2021-07-02 15:48:55 +05:30
Ice3man543 714aec1219 Fixed lint tests 2021-07-02 15:46:42 +05:30
Ice3man ffa733b8ff Merge branch 'dev' into loader-fix 2021-07-02 15:44:18 +05:30
Ice3man543 cddb0cb8af Fixed exclude filter for tags 2021-07-01 21:09:33 +05:30
Ice3man543 6c77d891cd Merge branch 'loader-fix' of https://github.com/projectdiscovery/nuclei into loader-fix 2021-07-01 21:03:56 +05:30
Ice3man543 d57d1ecae2 Fixed filter allow condition with tag and etags 2021-07-01 21:02:57 +05:30
Ice3man543 12deece54b Fixed bug with .nuclei-config check 2021-07-01 20:57:22 +05:30
sandeep 98e82c5f11 Update config.go 2021-07-01 20:35:40 +05:30
Ice3man543 d58180d588 Added vv flag to display more extra verbose information 2021-07-01 18:22:08 +05:30
Ice3man543 e440ab5cba Fixed nuclei/templates version check 2021-07-01 16:39:00 +05:30
Ice3man543 6bc0b34354 Fixed include condition logic 2021-07-01 16:29:26 +05:30
Ice3man543 ba3804107e Fix some exclude conditions for tags 2021-07-01 16:16:23 +05:30
Ice3man543 dff76e9cd2 Loader rewriter working poc 2021-07-01 14:36:40 +05:30
sandeep f61d420093 Merge branch 'master' of https://github.com/projectdiscovery/nuclei into dev 2021-07-01 13:48:42 +05:30
Sandeep Singh 84ff74cb5d Merge pull request #795 from tonghuaroot/patch-1
Fix wrong document link.
2021-07-01 11:36:01 +05:30
Ice3man543 7669e9781a Rework template loading into individual module + better tags and filters 2021-06-30 18:39:01 +05:30
TonghuaRoot(童话) 48aa2f2b95 Fix wrong document link. 2021-06-30 17:09:00 +08:00
Ice3man 19bb65a73e Merge pull request #790 from moonD4rk/dev
Refactor: err is always nil
2021-06-28 15:36:51 +05:30
ᴍᴏᴏɴD4ʀᴋ 1fc4fcb7c9 refactor: err is always nil 2021-06-26 23:49:56 +08:00
ᴍᴏᴏɴD4ʀᴋ dc177a45db style: fix typo 2021-06-26 23:49:31 +08:00
Ice3man 9a777dd1b5 Merge pull request #779 from projectdiscovery/bugfix-741
Adding support for misconfigured gzip header from server
2021-06-26 18:32:53 +05:30
Ice3man 7da6034f01 Merge branch 'dev' into bugfix-741 2021-06-26 18:30:56 +05:30
Ice3man 930fa094d5 Merge pull request #782 from projectdiscovery/bugfix-699-zombie-chome-processes
Fixing chrome zombie processes termination
2021-06-26 18:29:34 +05:30
Ice3man 6defa450b8 Merge pull request #787 from projectdiscovery/feature-785-rawhttp-timeout
[Feature] Adding rawhttp timeout
2021-06-26 18:28:38 +05:30
Ice3man 829a25d988 Merge pull request #788 from projectdiscovery/bugfix-783
[Bug] Fixing matchers when internal extractors are active
2021-06-26 18:28:07 +05:30
mzack f8ae8aa86f reverting change and adding check on matched flag 2021-06-26 02:03:20 +02:00
mzack 1687bdd7c3 Removing check on internal dymanic values 2021-06-25 18:37:02 +02:00
Ganoes c1aca6b231 Merge branch 'projectdiscovery:dev' into dev 2021-06-25 10:13:11 +02:00
ganoes 428bb9b0b6 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into dev 2021-06-25 10:12:10 +02:00
mzack 713433026d Adding support for timeout in rawhttp 2021-06-25 08:16:54 +02:00
Sandeep Singh 1ef8f82488 Merge pull request #767 from KeisukeYamashita/fix-typo-moreover
Fixed typo "Moroover" in readme
2021-06-23 20:49:17 +05:30
Ice3man 4764a34224 Merge pull request #781 from projectdiscovery/feature-710-hex-output-network-debug
Adding hex output for network request/response
2021-06-22 00:20:51 +05:30
Sandeep Singh a6b15f948d Merge pull request #784 from iamRjarpan/patch-1
Update Documentation link
2021-06-21 21:48:59 +05:30
Life Learner a2127e0062 Update Documentation link
I change from https://nuclei.projectdiscovery.io/nuclei/get-started to https://nuclei.projectdiscovery.io/nuclei/get-started.html
2021-06-21 20:43:55 +05:30
Mzack9999 118ddcdd79 removing unused code 2021-06-21 11:08:40 +02:00
Mzack9999 4c2e1ef5e4 Fixing chrome zombie processes termination 2021-06-21 10:51:52 +02:00
Mzack9999 b9bcebdcee Adding hex output for network request/response 2021-06-21 08:52:14 +02:00
Sandeep Singh 3a2d73018a Merge pull request #780 from projectdiscovery/readme-update
readme fix
2021-06-20 17:55:52 +05:30
sandeep 25b671c6fb readme fix 2021-06-20 17:53:42 +05:30
Mzack9999 5acde94015 ignore misconfigured gzip server errors 2021-06-17 16:26:23 +02:00
sandeep 6a84656e72 Update README.md 2021-06-17 19:10:25 +05:30
sandeep 3359a3cc8c link update 2021-06-17 19:08:57 +05:30
Mzack9999 ba01a1c4ed Adding support for misconfigured gzip header from server 2021-06-17 14:36:25 +02:00
Sandeep Singh cd712c4589 Merge pull request #778 from projectdiscovery/dev
Dev
2021-06-17 17:39:43 +05:30
Sandeep Singh fbe75de23f Merge branch 'master' into dev 2021-06-17 17:37:34 +05:30
sandeep 4e857cb951 Separating build and lint tests 2021-06-16 16:07:19 +05:30
sandeep 1e3c5ba90d Added branch to trigger workflow 2021-06-16 15:55:52 +05:30
Sandeep Singh 6623351578 Merge pull request #772 from projectdiscovery/workflows_improvement
Workflows improvement
2021-06-15 21:40:01 +05:30
sandeep ff4a855bc8 Workflow improvements 2021-06-15 21:31:56 +05:30
sandeep ed4e935951 Updated Dependabot for dev branch 2021-06-15 21:16:51 +05:30
Sandeep Singh b06be45894 Merge pull request #771 from projectdiscovery/dev
Lint + build + unsafe fix
2021-06-15 11:55:05 +05:30
Ice3man 7798fbc21d Merge pull request #769 from projectdiscovery/fix-lint-tests
Lint issues fixes + fixed broken tests
2021-06-15 11:51:14 +05:30
Ice3man543 8ea3f5d0c8 Fixed lint errors for struct size 2021-06-15 11:49:32 +05:30
Ice3man543 dbb70c5acc Fixed http body decoding with unsafe 2021-06-15 11:46:02 +05:30
Ice3man543 f5b9bed40a Removed leftover collaborator integration 2021-06-14 19:48:27 +05:30
Ice3man543 fa9195eacb Lint issues fixes 2021-06-14 17:14:16 +05:30
sandeep ae4cfd094e final changes 2021-06-14 02:04:02 +05:30
sandeep 32800f54a0 misc update 2021-06-14 01:47:53 +05:30
sandeep 75b3520879 Multi platfrom docker image 2021-06-14 01:41:41 +05:30
sandeep 79c2843d76 workflow update 2021-06-14 00:40:43 +05:30
sandeep 3a1f73c7d0 Added missing tag 2021-06-13 23:55:51 +05:30
sandeep 1d74ef74ca Added missing tag 2021-06-13 23:54:53 +05:30
KeisukeYamashita b756bcf65a Fixed typo "Moroover" in readme
Signed-off-by: KeisukeYamashita <[email protected]>
2021-06-12 22:19:10 +09:00
Sandeep Singh 10bf14a88a Merge pull request #766 from projectdiscovery/dev
v2.3.8 Bug fixes
2021-06-12 17:45:01 +05:30
sandeep 08bfdaface version update 2021-06-12 17:17:22 +05:30
Sandeep Singh d3b0a15284 Merge pull request #763 from projectdiscovery/fix-eof
Fix for panic: runtime error
2021-06-12 15:24:15 +05:30
Ice3man543 d22d823e9c Fixed #762 by not deleting file with no results 2021-06-12 03:48:10 +05:30
Sandeep Singh f6a680897c Merge pull request #731 from projectdiscovery/bugfix-709-http2
Updating retryablehttp with http2 support
2021-06-11 22:14:34 +05:30
Mzack9999 29e2ee7a0e Merge branch 'dev' into bugfix-709-http2 2021-06-11 17:20:40 +02:00
Ice3man543 b2e416b0dd Fixed nuclei panic for issue #760 2021-06-11 14:44:37 +05:30
Ice3man543 2ec27d4466 Fixed EOF read error 2021-06-09 11:15:21 +05:30
Sandeep Singh 673c98c3f4 Merge pull request #757 from projectdiscovery/sarif-integration
Added sarif output export format to nuclei
2021-06-08 16:47:46 +05:30
sandeep bd38c16e0a Update banner.go 2021-06-08 16:46:34 +05:30
sandeep 63b274ecb0 flag updates / improvements 2021-06-08 16:38:13 +05:30
Ice3man543 3ce48f3799 Misc 2021-06-06 17:38:39 +05:30
Ice3man543 8b52645905 Add name as rule help 2021-06-06 16:12:54 +05:30
Ice3man543 c913612fd3 Misc 2021-06-06 16:04:06 +05:30
Ice3man543 31a74a3390 Fix nil pointer panic 2021-06-06 15:57:22 +05:30
Ice3man543 7a962c8436 Correct offsets 2021-06-06 15:54:49 +05:30
Ice3man543 b99f028a66 Enrich file output sarif with correct file metadata 2021-06-06 15:52:13 +05:30
Ice3man543 2c0cea1a3f Changed name of flag 2021-06-06 02:56:36 +05:30
Ice3man543 5d744c7c20 Fixed reference printing bug 2021-06-06 01:04:20 +05:30
Ice3man543 eb96e701b5 Fixed reference formatting in reports 2021-06-05 23:43:37 +05:30
Ice3man543 e6db12848f Temporary fix for sarif github location issue 2021-06-05 23:42:37 +05:30
Ice3man543 1dc1b9ee73 Print first line of running action if any 2021-06-05 23:09:08 +05:30
Ice3man543 d9bb1393d3 Improvements to sarif report 2021-06-05 23:00:59 +05:30
Ice3man543 1977d41a1e Misc 2021-06-05 21:42:04 +05:30
Ice3man543 e09f16b68c Misc 2021-06-05 20:08:52 +05:30
Ice3man543 d3b2c8fee0 Improved output format 2021-06-05 20:06:23 +05:30
Ice3man543 abc7063339 Work on sarif integration start 2021-06-05 18:01:08 +05:30
ganoes 3700cd8c0b UpdateExisting flag for Jira reporting was added 2021-06-04 18:19:23 +02:00
ganoes 6882993358 The first version of Jira issue merger 2021-06-04 17:14:26 +02:00
Ice3man 84ebee3d4b Merge pull request #751 from gano3s/jira-on-prem
Integration with Jira Standalone server
2021-06-04 18:32:22 +05:30
ganoes 19157597a0 Added support of Jira on-prem server 2021-06-04 13:11:09 +02:00
Sandeep Singh 471f5c6b6b Merge pull request #747 from projectdiscovery/fix-master-crashes 2021-06-04 11:04:08 +05:30
Ice3man543 38abe40db8 Fixed #739 by adding normal request support to pipelining 2021-06-03 10:49:13 +05:30
Ice3man543 5a6303265d Fixed #745 crash with http clustering module
The crash is mitigated in two ways.
- An additional check in http clustering module for req condition (no clustering with conditions)
- Clustered Executer also now passes a non-nil map to mitigate the crash if for some reason we reach there.
2021-06-03 10:26:41 +05:30
Ice3man543 be776fb5dd Merge branch 'master' of https://github.com/projectdiscovery/nuclei into dev 2021-06-03 10:21:46 +05:30
Sandeep Singh 849c7a45fc Merge pull request #744 from projectdiscovery/docker_multi_platfrom
Testing docker multi platform images
2021-06-02 14:28:58 +05:30
sandeep 791b025309 Update dockerhub-push.yml 2021-06-02 14:16:58 +05:30
sandeep cb5688ba51 Testing docker multi platform images 2021-06-02 14:07:49 +05:30
Sandeep Singh 6f51e2a4d1 Merge pull request #733 from projectdiscovery/bugfix-732
Deprecating golint
2021-05-27 15:39:05 +05:30
Sandeep Singh ec939fdaaf Merge pull request #738 from projectdiscovery/security-information
Adding security information
2021-05-27 10:39:03 +05:30
Sandeep Singh 72ddf04321 Adding security information 2021-05-27 10:38:30 +05:30
Mzack9999 68dd65fd38 Deprecating golint 2021-05-26 00:07:59 +02:00
Mzack9999 871dbe7352 Updating retryablehttp with http2 support 2021-05-25 17:44:04 +02:00
sandeep cf41a3cfac Removing txt ext from default ignore list 2021-05-25 06:41:13 +05:30
Sandeep Singh 41f52492f9 Merge pull request #703 from projectdiscovery/dev
Improvements to interactsh integration
2021-05-09 15:23:33 +05:30
Sandeep Singh 137dc19735 Merge pull request #702 from projectdiscovery/nuclei-interact-improve
Improvements to interactsh integration + no fatal for interact
2021-05-09 15:18:03 +05:30
sandeep a3ad9999b0 Merge branch 'dev' into nuclei-interact-improve 2021-05-09 15:07:39 +05:30
Sandeep Singh 1dcb3c0aca Merge pull request #702 from projectdiscovery/nuclei-interact-improve
Improvements to interactsh integration + no fatal for interact
2021-05-09 02:38:01 +05:30
Ice3man543 6c4495c0d1 Fixed lint errors 2021-05-09 02:19:23 +05:30
Ice3man543 f85a421550 Improvements to interactsh integration + no fatal for interact 2021-05-09 01:37:22 +05:30
Sandeep Singh ccafe5ce68 Merge pull request #701 from projectdiscovery/dev
Interactsh bugfix update
2021-05-08 15:32:27 +05:30
sandeep ecae98b8a0 version update 2021-05-08 15:27:11 +05:30
sandeep b949aa2fa3 go mod update 2021-05-08 15:26:36 +05:30
Sandeep Singh c19438ce84 Merge pull request #698 from projectdiscovery/dev
Interactsh <> nuclei integration release
2021-05-04 18:36:35 +05:30
Sandeep Singh 31fc50d2a5 Merge pull request #697 from projectdiscovery/bugfix-host-header
Better host header handling in RFC compliant requests
2021-05-04 18:24:22 +05:30
Mzack9999 9012db5f79 Adding custom header preference over template definition 2021-05-04 14:36:04 +02:00
sandeep e3e766c641 version update 2021-05-04 17:02:33 +05:30
Ice3man543 f064104bde Fixed tests 2021-05-03 17:21:30 +05:30
Ice3man 849e526f33 Merge pull request #694 from projectdiscovery/interactsh-server-support
Interactsh <> nuclei integration
2021-05-03 17:05:43 +05:30
Ice3man543 8394e696ca Support interactsh payloads in baseURL 2021-05-03 14:31:44 +05:30
Ice3man543 6a4f3e1336 Reporting added to OOB interaction results 2021-05-03 14:08:09 +05:30
Mzack9999 79dd0549cd Better host header handling in RFC comliant requests 2021-05-02 20:10:49 +02:00
Ice3man543 9c3b0b69a5 Merge branch 'interactsh-server-support' of https://github.com/projectdiscovery/nuclei into interactsh-server-support 2021-05-01 18:28:38 +05:30
Ice3man543 563c7ab045 Fixed lint errors 2021-05-01 18:28:24 +05:30
Sandeep Singh 33f1e23e87 Merge branch 'dev' into interactsh-server-support 2021-05-01 12:05:27 +05:30
sandeep d3641bfe12 mod update 2021-05-01 12:02:28 +05:30
Sandeep Singh 34b9e1f22a Merge pull request #691 from projectdiscovery/dev
Minor bugfix release
2021-04-28 10:57:31 +05:30
sandeep 4e390dbccf Version update 2021-04-28 10:55:33 +05:30
Ice3man f30f524b36 Merge pull request #688 from seb-elttam/dev
Fix missing IP in the JSON when URLs contain hostname:port
2021-04-27 14:22:28 +05:30
Seb Macke 627e418287 Fix missing IP in the JSON when URLs contain hostname:port 2021-04-23 22:20:09 +10:00
Ice3man543 d9145b1c8a Fixed DSL interactsh matchers not working 2021-04-19 13:13:08 +05:30
Ice3man 2b602ebe50 Merge pull request #683 from projectdiscovery/bugfix-shared-fastdialer
adding shared fastdialer + missing cleanup
2021-04-19 01:02:23 +05:30
Ice3man543 5e0ae41c37 Fixed headless test cases failing 2021-04-19 01:00:59 +05:30
Ice3man543 4a9949d399 Fixed lint errors 2021-04-19 00:55:33 +05:30
Ice3man543 e6825d5960 Better marker identification + Misc 2021-04-18 17:53:59 +05:30
Ice3man543 959f8935e7 Changed - to _ 2021-04-18 17:44:21 +05:30
Ice3man543 993416d77c Misc 2021-04-18 17:29:01 +05:30
Ice3man543 e8747fc2da Made interactsh default, fixed matcher panic 2021-04-18 17:27:45 +05:30
Ice3man543 33bf306f28 Working interactsh integration 2021-04-18 16:10:10 +05:30
mzack 54540f3a22 adding shared fastdialer + missing cleanup 2021-04-18 11:57:43 +02:00
Ice3man543 4c594627a9 Started work on interact.sh support 2021-04-16 16:56:41 +05:30
PD-Team 27f15a9c93 Merge pull request #674 from projectdiscovery/master
dev even to master
2021-04-13 19:22:11 +05:30
Ice3man 851d1c2605 Merge pull request #670 from yabeow/master
Fix can't set user agent in templates
2021-04-13 19:17:47 +05:30
Gia. Bui Dai e229a3eccc fix typos 2021-04-13 13:28:29 +07:00
Gia. Bui Dai 7f82270ea7 Fix can't set user agent in templates 2021-04-13 13:27:36 +07:00
sandeep 781a71e3d5 FAQ update 2021-04-08 23:45:22 +05:30
PD-Team 157d6634d1 Merge pull request #660 from projectdiscovery/dependabot/github_actions/golangci/golangci-lint-action-v2.5.2
chore(deps): bump golangci/golangci-lint-action from v2 to v2.5.2
2021-04-05 21:55:17 +05:30
dependabot[bot] 954aec0907 chore(deps): bump golangci/golangci-lint-action from v2 to v2.5.2
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from v2 to v2.5.2.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v2...5c56cd6c9dc07901af25baab6f2b0d9f3b7c3018)

Signed-off-by: dependabot[bot] <[email protected]>
2021-04-05 07:45:55 +00:00
sandeep dbaa573b97 version update 2021-04-02 22:06:59 +05:30
Ice3man543 459fe31e0b Lint error fix 2021-04-02 21:32:56 +05:30
Ice3man543 8da933af53 Misc 2021-04-02 18:44:28 +05:30
Ice3man543 0d0e3f5523 Merge branch 'master' of https://github.com/projectdiscovery/nuclei 2021-04-02 18:41:07 +05:30
Ice3man543 6804bd79e8 New ignore functionality + error to warning 2021-04-02 18:40:58 +05:30
sandeep 5ea05b385a version update 2021-04-01 01:46:40 +05:30
Ice3man543 8233efe921 Fixed custom user agent issue in headless 2021-04-01 01:43:48 +05:30
Ice3man543 973e0be3e1 MIsc 2021-04-01 01:39:25 +05:30
Ice3man543 8d3163a842 Fixed a small bug 2021-04-01 01:37:40 +05:30
Ice3man543 64c8c33a4f Fixed some bugs + honor UA 2021-04-01 01:35:32 +05:30
Ice3man543 718e4505a6 Fixed nuclei ignore issues + made random agent default 2021-03-31 21:27:40 +05:30
Ice3man543 12b03f34bb Misc 2021-03-28 22:43:46 +05:30
PD-Team 76a14e91ed Merge pull request #640 from projectdiscovery/master
dev == master
2021-03-22 18:34:02 +05:30
Ice3man543 385b4558cb Merge branch 'master' of https://github.com/projectdiscovery/nuclei into dev 2021-03-19 17:01:53 +05:30
PD-Team 5cd493680e Dev == Master (#620) 2021-03-14 12:37:41 +05:30
341 changed files with 33246 additions and 5945 deletions

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
blank_issues_enabled: false
contact_links:
- name: Ask an question / advise on using nuclei
url: https://github.com/projectdiscovery/nuclei/discussions/categories/q-a
about: Ask a question or request support for using nuclei
- name: Share idea / feature to discuss for nuclei
url: https://github.com/projectdiscovery/nuclei/discussions/categories/ideas
about: Share idea / feature to discuss for nuclei
- name: Connect with PD Team (Discord)
url: https://discord.gg/projectdiscovery
about: Connect with PD Team for direct communication
+14 -7
View File
@@ -1,14 +1,21 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[feature]"
labels: ''
about: Request feature to implement in this project
title: ""
labels: 'Type: Enhancement'
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
<!--
1. Please make sure to provide a detailed description with all the relevant information that might be required to start working on this feature.
2. In case you are not sure about your request or whether the particular feature is already supported or not, please start a discussion instead.
3. GitHub Discussion: https://github.com/projectdiscovery/nuclei/discussions/categories/ideas
4. Join our discord server at https://discord.gg/projectdiscovery to discuss the idea on the #nuclei channel.
-->
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
### Please describe your feature request:
<!-- A clear and concise description of feature to implement -->
### Describe the use case of this feature:
<!-- A clear and concise description of the feature request's motivation and the use-cases in which it could be useful. -->
+28 -10
View File
@@ -1,18 +1,36 @@
---
name: Issue report
about: Create a report to help us improve
title: "[issue]"
labels: ''
assignees: ''
about: Create a report to help us to improve the project
labels: 'Type: Bug'
---
**Describe the bug**
A clear and concise description of what the bug is.
<!--
1. Please search to see if an issue already exists for the bug you encountered.
2. For support requests, FAQs or "How to" questions, please use the GitHub Discussions section instead - https://github.com/projectdiscovery/nuclei/discussions or
3. Join our discord server at https://discord.gg/projectdiscovery and post the question on the #nuclei channel.
-->
**Nuclei version**
Please share the version of the nuclei you are running with `nuclei -version`
<!-- ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION. -->
### Nuclei version:
<!-- You can find current version of nuclei with "nuclei -version" -->
<!-- We only accept issues that are reproducible on the latest version of nuclei. -->
<!-- You can find the latest version of project at https://github.com/projectdiscovery/nuclei/releases/ -->
### Current Behavior:
<!-- A concise description of what you're experiencing. -->
### Expected Behavior:
<!-- A concise description of what you expected to happen. -->
### Steps To Reproduce:
<!--
Example: steps to reproduce the behavior:
1. Run 'nuclei -t ... -u ..'
2. See error...
-->
**Screenshot of the error or bug**
please add the screenshot showing bug or issue you are facing.
### Anything else:
<!-- Links? References? Screenshots? Anything that will give us more context about the issue that you are encountering! -->
+13
View File
@@ -0,0 +1,13 @@
## Proposed changes
<!-- Describe the overall picture of your modifications to help maintainers understand the pull request. PRs are required to be associated to their related issue tickets or feature request. -->
## Checklist
<!-- Put an "x" in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code. -->
- [ ] Pull request is created against the [dev](https://github.com/projectdiscovery/nuclei/tree/dev) branch
- [ ] All checks passed (lint, unit/integration/regression tests etc.) with my changes
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] I have added necessary documentation (if appropriate)
+11 -2
View File
@@ -11,24 +11,33 @@ updates:
directory: "/"
schedule:
interval: "weekly"
target-branch: "dev"
commit-message:
prefix: "chore"
include: "scope"
labels:
- "Type: Maintenance"
# Maintain dependencies for go modules
- package-ecosystem: "gomod"
directory: "/"
directory: "v2/"
schedule:
interval: "weekly"
interval: "daily"
target-branch: "dev"
commit-message:
prefix: "chore"
include: "scope"
labels:
- "Type: Maintenance"
# Maintain dependencies for docker
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"
target-branch: "dev"
commit-message:
prefix: "chore"
include: "scope"
labels:
- "Type: Maintenance"
+43
View File
@@ -0,0 +1,43 @@
name: 🔨 Build Test
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
name: Test Builds
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Check out code
uses: actions/checkout@v3
- name: Build
run: go build .
working-directory: v2/cmd/nuclei/
- name: Test
run: go test ./...
working-directory: v2/
- name: Integration Tests
env:
GH_ACTION: true
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/
-45
View File
@@ -1,45 +0,0 @@
name: Build
on:
push:
branches:
- master
pull_request:
jobs:
lint:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v2
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.33
args: --timeout 5m
working-directory: v2/
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
- name: Check out code
uses: actions/checkout@v2
- name: Test
run: go test ./...
working-directory: v2/
- name: Integration Tests
run: bash run.sh
working-directory: integration_tests/
- name: Build
run: go build .
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
+39
View File
@@ -0,0 +1,39 @@
name: 🚨 CodeQL Analysis
on:
push:
pull_request:
workflow_dispatch:
branches:
- dev
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'go' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
+37 -16
View File
@@ -1,19 +1,40 @@
# dockerhub-push pushes docker build to dockerhub automatically
# on the creation of a new release
name: Publish to Dockerhub on creation of a new release
on:
release:
types: [published]
name: 🌥 Docker Push
on:
workflow_run:
workflows: ["🎉 Release Binary"]
types:
- completed
workflow_dispatch:
jobs:
update:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Publish to Dockerhub Registry
#pre: echo ::save-state name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: projectdiscovery/nuclei
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "latest" #"latest,${{ env.STATE_RELEASE_VERSION }}"
- name: Git Checkout
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)"
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
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 }}
+31
View File
@@ -0,0 +1,31 @@
name: 🧪 Functional Test
on:
push:
pull_request:
workflow_dispatch:
jobs:
functional:
name: Functional Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Check out code
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 }}
working-directory: v2/cmd/functional-test
+24
View File
@@ -0,0 +1,24 @@
name: 🙏🏻 Lint Test
on:
push:
pull_request:
workflow_dispatch:
jobs:
lint:
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@v3
- name: Run golangci-lint
uses: golangci/[email protected]
with:
version: latest
args: --timeout 5m
working-directory: v2/
+51
View File
@@ -0,0 +1,51 @@
name: ⏰ Publish Docs
on:
push:
branches:
- dev
workflow_dispatch:
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: "Set up Go"
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Generate YAML Syntax Documentation
id: generate-docs
run: |
if ! which dstdocgen > /dev/null; then
echo -e "Command dstdocgen not found! Installing\c"
go install github.com/projectdiscovery/yamldoc-go/cmd/docgen/dstdocgen@main
fi
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)"
working-directory: v2
- name: Commit files
if: steps.generate-docs.outputs.changes > 0
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add SYNTAX-REFERENCE.md nuclei-jsonschema.json
git commit -m "Auto Generate Syntax Docs + JSONSchema [$(date)] :robot:" -a
- name: Push changes
if: steps.generate-docs.outputs.changes > 0
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
+27
View File
@@ -0,0 +1,27 @@
name: 🎉 Release Binary
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: 1.18
- uses: goreleaser/goreleaser-action@v3
with:
args: "release --rm-dist"
version: latest
workdir: v2/
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
-30
View File
@@ -1,30 +0,0 @@
name: Release
on:
create:
tags:
- v*
jobs:
release:
runs-on: ubuntu-latest
steps:
-
name: "Check out code"
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: "Set up Go"
uses: actions/setup-go@v2
with:
go-version: 1.15
-
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
name: "Create release on GitHub"
uses: goreleaser/goreleaser-action@v2
with:
args: "release --rm-dist"
version: latest
workdir: v2/
+40
View File
@@ -0,0 +1,40 @@
name: 👮🏼‍♂️ Sonarcloud
on:
push:
branches:
- master
- dev
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- 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@v3
with:
go-version: 1.18
- name: Run unit Tests
working-directory: v2/
run: |
go test -coverprofile=cov.out ./...
- name: Run Gosec Security Scanner
working-directory: v2/
run: |
go install github.com/securego/gosec/cmd/gosec@latest
gosec -no-fail -fmt=sonarqube -out report.json ./...
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
+28
View File
@@ -0,0 +1,28 @@
name: 🛠 Template Validate
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Cache Go
id: cache-go
uses: actions/cache@v3
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
+11 -4
View File
@@ -1,6 +1,13 @@
cmd/nuclei/nuclei*
v2/cmd/nuclei/nuclei
.idea
integration_tests/integration-test
integration_tests/nuclei
v2/cmd/integration-test/integration-test
integration_tests/integration-test
v2/cmd/nuclei/main
v2/cmd/nuclei/nuclei
v2/cmd/integration-test/nuclei
v2/cmd/functional-test/nuclei_dev
v2/cmd/functional-test/nuclei_main
v2/cmd/functional-test/functional-test
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
-115
View File
@@ -1,115 +0,0 @@
linters-settings:
dupl:
threshold: 100
exhaustive:
default-signifies-exhaustive: false
# funlen:
# lines: 100
# statements: 50
#goconst:
# min-len: 2
# min-occurrences: 2
gocritic:
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
disabled-checks:
- dupImport # https://github.com/go-critic/go-critic/issues/845
- ifElseChain
# gocyclo:
# min-complexity: 15
goimports:
local-prefixes: github.com/golangci/golangci-lint
golint:
min-confidence: 0
gomnd:
settings:
mnd:
# don't include the "operation" and "assign"
checks: argument,case,condition,return
govet:
check-shadowing: true
settings:
printf:
funcs:
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
# lll:
# line-length: 140
maligned:
suggest-new: true
misspell:
locale: US
nolintlint:
allow-leading-space: true # don't require machine-readable nolint directives (i.e. with no leading space)
allow-unused: false # report any unused nolint directives
require-explanation: false # don't require an explanation for nolint directives
require-specific: false # don't require nolint directives to be specific about which linter is being skipped
linters:
# please, do not use `enable-all`: it's deprecated and will be removed soon.
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
disable-all: true
enable:
#- bodyclose
- deadcode
- dogsled
- errcheck
- exhaustive
- gochecknoinits
#- goconst
- gocritic
- gofmt
- goimports
- golint
#- gomnd
- goprintffuncname
- gosimple
- govet
- ineffassign
- interfacer
- maligned
- misspell
- nakedret
- noctx
- nolintlint
- rowserrcheck
- scopelint
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- whitespace
# don't enable:
# - depguard
# - asciicheck
# - funlen
# - gochecknoglobals
# - gocognit
# - gocyclo
# - godot
# - godox
# - goerr113
# - gosec
# - lll
# - nestif
# - prealloc
# - testpackage
# - wsl
# golangci.com configuration
# https://github.com/golangci/golangci/wiki/Configuration
service:
golangci-lint-version: 1.33.x # use the fixed version to not introduce new linters unexpectedly
prepare:
- echo "here I can run custom commands, but no preparation needed for this repo"
+19
View File
@@ -0,0 +1,19 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="IntegrationTests" type="ShConfigurationType">
<option name="SCRIPT_TEXT" value="" />
<option name="INDEPENDENT_SCRIPT_PATH" value="true" />
<option name="SCRIPT_PATH" value="$PROJECT_DIR$/integration_tests/run.sh" />
<option name="SCRIPT_OPTIONS" value="" />
<option name="INDEPENDENT_SCRIPT_WORKING_DIRECTORY" value="true" />
<option name="SCRIPT_WORKING_DIRECTORY" value="$PROJECT_DIR$/integration_tests/" />
<option name="INDEPENDENT_INTERPRETER_PATH" value="true" />
<option name="INTERPRETER_PATH" value="/bin/zsh" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="EXECUTE_IN_TERMINAL" value="true" />
<option name="EXECUTE_SCRIPT_FILE" value="true" />
<envs>
<env name="DEBUG" value="true" />
</envs>
<method v="2" />
</configuration>
</component>
+19
View File
@@ -0,0 +1,19 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="RegressionTests" type="ShConfigurationType">
<option name="SCRIPT_TEXT" value="" />
<option name="INDEPENDENT_SCRIPT_PATH" value="true" />
<option name="SCRIPT_PATH" value="$PROJECT_DIR$/v2/cmd/functional-test/run.sh" />
<option name="SCRIPT_OPTIONS" value="" />
<option name="INDEPENDENT_SCRIPT_WORKING_DIRECTORY" value="true" />
<option name="SCRIPT_WORKING_DIRECTORY" value="$PROJECT_DIR$/v2/cmd/functional-test/" />
<option name="INDEPENDENT_INTERPRETER_PATH" value="true" />
<option name="INTERPRETER_PATH" value="/bin/zsh" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="EXECUTE_IN_TERMINAL" value="true" />
<option name="EXECUTE_SCRIPT_FILE" value="true" />
<envs>
<env name="DEBUG" value="true" />
</envs>
<method v="2" />
</configuration>
</component>
+12
View File
@@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="UnitTests" type="GoTestRunConfiguration" factoryName="Go Test">
<module name="nuclei" />
<working_directory value="$PROJECT_DIR$/v2" />
<go_parameters value="-i" />
<kind value="DIRECTORY" />
<directory value="$PROJECT_DIR$/v2/" />
<filePath value="$PROJECT_DIR$" />
<framework value="gotest" />
<method v="2" />
</configuration>
</component>
+610
View File
@@ -0,0 +1,610 @@
# Nuclei Architecture Document
A brief overview of Nuclei Engine architecture. This document will be kept updated as the engine progresses.
## pkg/templates
### Template
Template is the basic unit of input to the engine which describes the requests to be made, matching to be done, data to extract, etc.
The template structure is described here. Template level attributes are defined here as well as convenience methods to validate, parse and compile templates creating executers.
Any attributes etc. required for the template, engine or requests to function are also set here.
Workflows are also compiled, their templates are loaded and compiled as well. Any validations etc. on the paths provided are also done here.
`Parse` function is the main entry point which returns a template for a `filePath` and `executorOptions`. It compiles all the requests for the templates, all the workflows, as well as any self-contained request etc. It also caches the templates in an in-memory cache.
### Preprocessors
Preprocessors are also applied here which can do things at template level. They get data of the template which they can alter at will on runtime. This is used in the engine to do random string generation.
Custom processor can be used if they satisfy the following interface.
```go
type Preprocessor interface {
Process(data []byte) []byte
}
```
## pkg/model
Model package implements Information structure for Nuclei Templates. `Info` contains all major metadata information for the template. `Classification` structure can also be used to provide additional context to vulnerability data.
It also specifies a `WorkflowLoader` interface that is used during workflow loading in template compilation stage.
```go
type WorkflowLoader interface {
GetTemplatePathsByTags(tags []string) []string
GetTemplatePaths(templatesList []string, noValidate bool) []string
}
```
## pkg/protocols
Protocols package implements all the request protocols supported by Nuclei. This includes http, dns, network, headless and file requests as of now.
### Request
It exposes a `Request` interface that is implemented by all the request protocols supported.
```go
// Request is an interface implemented any protocol based request generator.
type Request interface {
Compile(options *ExecuterOptions) error
Requests() int
GetID() string
Match(data map[string]interface{}, matcher *matchers.Matcher) (bool, []string)
Extract(data map[string]interface{}, matcher *extractors.Extractor) map[string]struct{}
ExecuteWithResults(input string, dynamicValues, previous output.InternalEvent, callback OutputEventCallback) error
MakeResultEventItem(wrapped *output.InternalWrappedEvent) *output.ResultEvent
MakeResultEvent(wrapped *output.InternalWrappedEvent) []*output.ResultEvent
GetCompiledOperators() []*operators.Operators
}
```
Many of these methods are similar across protocols while some are very protocol specific.
A brief overview of the methods is provided below -
- **Compile** - Compiles the request with provided options.
- **Requests** - Returns total requests made.
- **GetID** - Returns any ID for the request
- **Match** - Used to perform matching for patterns using matchers
- **Extract** - Used to perform extraction for patterns using extractors
- **ExecuteWithResults** - Request execution function for input.
- **MakeResultEventItem** - Creates a single result event for the intermediate `InternalWrappedEvent` output structure.
- **MakeResultEvent** - Returns a slice of results based on an `InternalWrappedEvent` internal output event.
- **GetCompiledOperators** - Returns the compiled operators for the request.
`MakeDefaultResultEvent` function can be used as a default for `MakeResultEvent` function when no protocol-specific features need to be implemented for result generation.
For reference protocol requests implementations, one can look at the below packages -
1. [pkg/protocols/http](./v2/pkg/protocols/http)
2. [pkg/protocols/dns](./v2/pkg/protocols/dns)
3. [pkg/protocols/network](./v2/pkg/protocols/network)
### Executer
All these different requests interfaces are converted to an Executer which is also an interface defined in `pkg/protocols` which is used during final execution of the template.
```go
// Executer is an interface implemented any protocol based request executer.
type Executer interface {
Compile() error
Requests() int
Execute(input string) (bool, error)
ExecuteWithResults(input string, callback OutputEventCallback) error
}
```
The `ExecuteWithResults` function accepts a callback, which gets provided with results during execution in form of `*output.InternalWrappedEvent` structure.
The default executer is provided in `pkg/protocols/common/executer` . It takes a list of Requests and relevant `ExecuterOptions` and implements the Executer interface required for template execution. The executer during Template compilation process is created from this package and used as-is.
A different executer is the Clustered Requests executer which implements the Nuclei Request clustering functionality in `pkg/templates` We have a single HTTP request in cases where multiple templates can be clustered and multiple operator lists to match/extract. The first HTTP request is executed while all the template matcher/extractor are evaluated separately.
For Workflow execution, a separate RunWorkflow function is used which executes the workflow independently of the template execution.
With this basic premise set, we can now start exploring the current runner implementation which will also walk us through the architecture of nuclei.
## internal/runner
### Template loading
The first process after all CLI specific initialisation is the loading of template/workflow paths that the user wants to run. This is done by the packages described below.
#### pkg/catalog
This package is used to get paths using mixed syntax. It takes a template directory and performs resolving for template paths both from provided template and current user directory.
The syntax is very versatile and can include filenames, glob patterns, directories, absolute paths, and relative-paths.
Next step is the initialisation of the reporting modules which is handled in `pkg/reporting`.
#### pkg/reporting
Reporting module contains exporters and trackers as well as a module for deduplication and a module for result formatting.
Exporters and Trackers are interfaces defined in pkg/reporting.
```go
// Tracker is an interface implemented by an issue tracker
type Tracker interface {
CreateIssue(event *output.ResultEvent) error
}
// Exporter is an interface implemented by an issue exporter
type Exporter interface {
Close() error
Export(event *output.ResultEvent) error
}
```
Exporters include `Elasticsearch`, `markdown`, `sarif` . Trackers include `GitHub` , `Gitlab` and `Jira`.
Each exporter and trackers implement their own configuration in YAML format and are very modular in nature, so adding new ones is easy.
After reading all the inputs from various sources and initialisation other miscellaneous options, the next bit is the output writing which is done using `pkg/output` module.
#### pkg/output
Output package implements the output writing functionality for Nuclei.
Output Writer implements the Writer interface which is called each time a result is found for nuclei.
```go
// Writer is an interface which writes output to somewhere for nuclei events.
type Writer interface {
Close()
Colorizer() aurora.Aurora
Write(*ResultEvent) error
Request(templateID, url, requestType string, err error)
}
```
ResultEvent structure is passed to the Nuclei Output Writer which contains the entire detail of a found result. Various intermediary types like `InternalWrappedEvent` and `InternalEvent` are used throughout nuclei protocols and matchers to describe results in various stages of execution.
Interactsh is also initialised if it is not explicitly disabled.
#### pkg/protocols/common/interactsh
Interactsh module is used to provide automatic Out-of-Band vulnerability identification in Nuclei.
It uses two LRU caches, one for storing interactions for request URLs and one for storing requests for interaction URL. These both caches are used to correlated requests received to the Interactsh OOB server and Nuclei Instance. [Interactsh Client](https://github.com/projectdiscovery/interactsh/pkg/client) package does most of the heavy lifting of this module.
Polling for interactions and server registration only starts when a template uses the interactsh module and is executed by nuclei. After that no registration is required for the entire run.
### RunEnumeration
Next we arrive in the `RunEnumeration` function of the runner.
`HostErrorsCache` is initialised which is used throughout the run of Nuclei enumeration to keep track of errors per host and skip further requests if the errors are greater than the provided threshold. The functionality for the error tracking cache is defined in [hosterrorscache.go](https://github.com/projectdiscovery/nuclei/blob/master/v2/pkg/protocols/common/hosterrorscache/hosterrorscache.go) and is pretty simplistic in nature.
Next the `WorkflowLoader` is initialised which used to load workflows. It exists in `v2/pkg/parsers/workflow_loader.go`
The loader is initialised moving forward which is responsible for Using Catalog, Passed Tags, Filters, Paths, etc. to return compiled `Templates` and `Workflows`.
#### pkg/catalog/loader
First the input passed by the user as paths is normalised to absolute paths which is done by the `pkg/catalog` module. Next the path filter module is used to remove the excluded template/workflows paths.
`pkg/parsers` module's `LoadTemplate`,`LoadWorkflow` functions are used to check if the templates pass the validation + are not excluded via tags/severity/etc. filters. If all checks are passed, then the template/workflow is parsed and returned in a compiled form by the `pkg/templates`'s `Parse` function.
`Parse` function performs compilation of all the requests in a template + creates Executers from them returning a runnable Template/Workflow structure.
Clustering module comes in next whose job is to cluster identical HTTP GET requests together (as a lot of the templates perform the same get requests many times, it's a good way to save many requests on large scans with lots of templates).
### pkg/operators
Operators package implements all the matching and extracting logic of Nuclei.
```go
// Operators contain the operators that can be applied on protocols
type Operators struct {
Matchers []*matchers.Matcher
Extractors []*extractors.Extractor
MatchersCondition string
}
```
A protocol only needs to embed the `operators.Operators` type shown above, and it can utilise all the matching/extracting functionality of nuclei.
```go
// MatchFunc performs matching operation for a matcher on model and returns true or false.
type MatchFunc func(data map[string]interface{}, matcher *matchers.Matcher) (bool, []string)
// ExtractFunc performs extracting operation for an extractor on model and returns true or false.
type ExtractFunc func(data map[string]interface{}, matcher *extractors.Extractor) map[string]struct{}
// Execute executes the operators on data and returns a result structure
func (operators *Operators) Execute(data map[string]interface{}, match MatchFunc, extract ExtractFunc, isDebug bool) (*Result, bool)
```
The core of this process is the Execute function which takes an input dictionary as well as a Match and Extract function and return a `Result` structure which is used later during nuclei execution to check for results.
```go
// Result is a result structure created from operators running on data.
type Result struct {
Matched bool
Extracted bool
Matches map[string][]string
Extracts map[string][]string
OutputExtracts []string
DynamicValues map[string]interface{}
PayloadValues map[string]interface{}
}
```
The internal logics for matching and extracting for things like words, regexes, jq, paths, etc. is specified in `pkg/operators/matchers`, `pkg/operators/extractors`. Those packages should be investigated for further look into the topic.
### Template Execution
`pkg/core` provides the engine mechanism which runs the templates/workflows on inputs. It exposes an `Execute` function which does the task of execution while also doing template clustering. The clustering can also be disabled optionally by the user.
An example of using the core engine is provided below.
```go
engine := core.New(r.options)
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.FileOriginalNormalizedStringSlice{"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),
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
}
```
### 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.
A protocol must implement the `Protocol` and `Request` interfaces described above in `pkg/protocols`. We'll take the example of an existing protocol implementation - websocket for this short reference around Nuclei internals.
The code for the websocket protocol is contained in `pkg/protocols/others/websocket`.
Below a high level skeleton of the websocket implementation is provided with all the important parts present.
```go
package websocket
// Request is a request for the Websocket protocol
type Request struct {
// Operators for the current request go here.
operators.Operators `yaml:",inline,omitempty"`
CompiledOperators *operators.Operators `yaml:"-"`
// description: |
// Address contains address for the request
Address string `yaml:"address,omitempty" jsonschema:"title=address for the websocket request,description=Address contains address for the request"`
// declarations here
}
// Compile compiles the request generators preparing any requests possible.
func (r *Request) Compile(options *protocols.ExecuterOptions) error {
r.options = options
// request compilation here as well as client creation
if len(r.Matchers) > 0 || len(r.Extractors) > 0 {
compiled := &r.Operators
if err := compiled.Compile(); err != nil {
return errors.Wrap(err, "could not compile operators")
}
r.CompiledOperators = compiled
}
return nil
}
// Requests returns the total number of requests the rule will perform
func (r *Request) Requests() int {
if r.generator != nil {
return r.generator.NewIterator().Total()
}
return 1
}
// GetID returns the ID for the request if any.
func (r *Request) GetID() string {
return ""
}
// ExecuteWithResults executes the protocol requests and returns results instead of writing them.
func (r *Request) ExecuteWithResults(input string, dynamicValues, previous output.InternalEvent, callback protocols.OutputEventCallback) error {
// payloads init here
if err := r.executeRequestWithPayloads(input, hostname, value, previous, callback); err != nil {
return err
}
return nil
}
// ExecuteWithResults executes the protocol requests and returns results instead of writing them.
func (r *Request) executeRequestWithPayloads(input, hostname string, dynamicValues, previous output.InternalEvent, callback protocols.OutputEventCallback) error {
header := http.Header{}
// make the actual request here after setting all options
event := eventcreator.CreateEventWithAdditionalOptions(r, data, r.options.Options.Debug || r.options.Options.DebugResponse, func(internalWrappedEvent *output.InternalWrappedEvent) {
internalWrappedEvent.OperatorsResult.PayloadValues = payloadValues
})
if r.options.Options.Debug || r.options.Options.DebugResponse {
responseOutput := responseBuilder.String()
gologger.Debug().Msgf("[%s] Dumped Websocket response for %s", r.options.TemplateID, input)
gologger.Print().Msgf("%s", responsehighlighter.Highlight(event.OperatorsResult, responseOutput, r.options.Options.NoColor))
}
callback(event)
return nil
}
func (r *Request) MakeResultEventItem(wrapped *output.InternalWrappedEvent) *output.ResultEvent {
data := &output.ResultEvent{
TemplateID: types.ToString(r.options.TemplateID),
TemplatePath: types.ToString(r.options.TemplatePath),
// ... setting more values for result event
}
return data
}
// Match performs matching operation for a matcher on model and returns:
// true and a list of matched snippets if the matcher type is supports it
// otherwise false and an empty string slice
func (r *Request) Match(data map[string]interface{}, matcher *matchers.Matcher) (bool, []string) {
return protocols.MakeDefaultMatchFunc(data, matcher)
}
// Extract performs extracting operation for an extractor on model and returns true or false.
func (r *Request) Extract(data map[string]interface{}, matcher *extractors.Extractor) map[string]struct{} {
return protocols.MakeDefaultExtractFunc(data, matcher)
}
// MakeResultEvent creates a result event from internal wrapped event
func (r *Request) MakeResultEvent(wrapped *output.InternalWrappedEvent) []*output.ResultEvent {
return protocols.MakeDefaultResultEvent(r, wrapped)
}
// GetCompiledOperators returns a list of the compiled operators
func (r *Request) GetCompiledOperators() []*operators.Operators {
return []*operators.Operators{r.CompiledOperators}
}
// Type returns the type of the protocol request
func (r *Request) Type() templateTypes.ProtocolType {
return templateTypes.WebsocketProtocol
}
```
Almost all of these protocols have boilerplate functions for which default implementations have been provided in the `providers` package. Examples are the implementation of `Match`, `Extract`, `MakeResultEvent`, GetCompiledOperators`, etc. which are almost same throughout Nuclei protocols code. It is enough to copy-paste them unless customization is required.
`eventcreator` package offers `CreateEventWithAdditionalOptions` function which can be used to create result events after doing request execution.
Step by step description of how to add a new protocol to Nuclei -
1. Add the protocol implementation in `pkg/protocols` directory. If it's a small protocol with fewer options, considering adding it to the `pkg/protocols/others` directory. Add the enum for the new protocol to `v2/pkg/templates/types/types.go`.
2. Add the protocol request structure to the `Template` structure fields. This is done in `pkg/templates/templates.go` with the corresponding import line.
```go
import (
...
"github.com/projectdiscovery/nuclei/v2/pkg/protocols/others/websocket"
)
// Template is a YAML input file which defines all the requests and
// other metadata for a template.
type Template struct {
...
// description: |
// Websocket contains the Websocket request to make in the template.
RequestsWebsocket []*websocket.Request `yaml:"websocket,omitempty" json:"websocket,omitempty" jsonschema:"title=websocket requests to make,description=Websocket requests to make for the template"`
...
}
```
Also add the protocol case to the `Type` function as well as the `TemplateTypes` array in the same `templates.go` file.
```go
// TemplateTypes is a list of accepted template types
var TemplateTypes = []string{
...
"websocket",
}
// Type returns the type of the template
func (t *Template) Type() templateTypes.ProtocolType {
...
case len(t.RequestsWebsocket) > 0:
return templateTypes.WebsocketProtocol
default:
return ""
}
}
```
3. Add the protocol request to the `Requests` function and `compileProtocolRequests` function in the `compile.go` file in same directory.
```go
// Requests return the total request count for the template
func (template *Template) Requests() int {
return len(template.RequestsDNS) +
...
len(template.RequestsSSL) +
len(template.RequestsWebsocket)
}
// compileProtocolRequests compiles all the protocol requests for the template
func (template *Template) compileProtocolRequests(options protocols.ExecuterOptions) error {
...
case len(template.RequestsWebsocket) > 0:
requests = template.convertRequestToProtocolsRequest(template.RequestsWebsocket)
}
template.Executer = executer.NewExecuter(requests, &options)
return nil
}
```
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.
## Project Structure
- [v2/pkg/reporting](./v2/pkg/reporting) - Reporting modules for nuclei.
- [v2/pkg/reporting/exporters/sarif](./v2/pkg/reporting/exporters/sarif) - Sarif Result Exporter
- [v2/pkg/reporting/exporters/markdown](./v2/pkg/reporting/exporters/markdown) - Markdown Result Exporter
- [v2/pkg/reporting/exporters/es](./v2/pkg/reporting/exporters/es) - Elasticsearch Result Exporter
- [v2/pkg/reporting/dedupe](./v2/pkg/reporting/dedupe) - Dedupe module for Results
- [v2/pkg/reporting/trackers/gitlab](./v2/pkg/reporting/trackers/gitlab) - Gitlab Issue Tracker Exporter
- [v2/pkg/reporting/trackers/jira](./v2/pkg/reporting/trackers/jira) - Jira Issue Tracker Exporter
- [v2/pkg/reporting/trackers/github](./v2/pkg/reporting/trackers/github) - GitHub Issue Tracker Exporter
- [v2/pkg/reporting/format](./v2/pkg/reporting/format) - Result Formatting Functions
- [v2/pkg/parsers](./v2/pkg/parsers) - Implements template as well as workflow loader for initial template discovery, validation and - loading.
- [v2/pkg/types](./v2/pkg/types) - Contains CLI options as well as misc helper functions.
- [v2/pkg/progress](./v2/pkg/progress) - Progress tracking
- [v2/pkg/operators](./v2/pkg/operators) - Operators for Nuclei
- [v2/pkg/operators/common/dsl](./v2/pkg/operators/common/dsl) - DSL functions for Nuclei YAML Syntax
- [v2/pkg/operators/matchers](./v2/pkg/operators/matchers) - Matchers implementation
- [v2/pkg/operators/extractors](./v2/pkg/operators/extractors) - Extractors implementation
- [v2/pkg/catalog](./v2/pkg/catalog) - Template loading from disk helpers
- [v2/pkg/catalog/config](./v2/pkg/catalog/config) - Internal configuration management
- [v2/pkg/catalog/loader](./v2/pkg/catalog/loader) - Implements loading and validation of templates and workflows.
- [v2/pkg/catalog/loader/filter](./v2/pkg/catalog/loader/filter) - Filter filters templates based on tags and paths
- [v2/pkg/output](./v2/pkg/output) - Output module for nuclei
- [v2/pkg/workflows](./v2/pkg/workflows) - Workflow execution logic + declarations
- [v2/pkg/utils](./v2/pkg/utils) - Utility functions
- [v2/pkg/model](./v2/pkg/model) - Template Info + misc
- [v2/pkg/templates](./v2/pkg/templates) - Templates core starting point
- [v2/pkg/templates/cache](./v2/pkg/templates/cache) - Templates cache
- [v2/pkg/protocols](./v2/pkg/protocols) - Protocol Specification
- [v2/pkg/protocols/file](./v2/pkg/protocols/file) - File protocol
- [v2/pkg/protocols/network](./v2/pkg/protocols/network) - Network protocol
- [v2/pkg/protocols/common/expressions](./v2/pkg/protocols/common/expressions) - Expression evaluation + Templating Support
- [v2/pkg/protocols/common/interactsh](./v2/pkg/protocols/common/interactsh) - Interactsh integration
- [v2/pkg/protocols/common/generators](./v2/pkg/protocols/common/generators) - Payload support for Requests (Sniper, etc.)
- [v2/pkg/protocols/common/executer](./v2/pkg/protocols/common/executer) - Default Template Executer
- [v2/pkg/protocols/common/replacer](./v2/pkg/protocols/common/replacer) - Template replacement helpers
- [v2/pkg/protocols/common/helpers/eventcreator](./v2/pkg/protocols/common/helpers/eventcreator) - Result event creator
- [v2/pkg/protocols/common/helpers/responsehighlighter](./v2/pkg/protocols/common/helpers/responsehighlighter) - Debug response highlighter
- [v2/pkg/protocols/common/helpers/deserialization](./v2/pkg/protocols/common/helpers/deserialization) - Deserialization helper functions
- [v2/pkg/protocols/common/hosterrorscache](./v2/pkg/protocols/common/hosterrorscache) - Host errors cache for tracking erroring hosts
- [v2/pkg/protocols/offlinehttp](./v2/pkg/protocols/offlinehttp) - Offline http protocol
- [v2/pkg/protocols/http](./v2/pkg/protocols/http) - HTTP protocol
- [v2/pkg/protocols/http/race](./v2/pkg/protocols/http/race) - HTTP Race Module
- [v2/pkg/protocols/http/raw](./v2/pkg/protocols/http/raw) - HTTP Raw Request Support
- [v2/pkg/protocols/headless](./v2/pkg/protocols/headless) - Headless Module
- [v2/pkg/protocols/headless/engine](./v2/pkg/protocols/headless/engine) - Internal Headless implementation
- [v2/pkg/protocols/dns](./v2/pkg/protocols/dns) - DNS protocol
- [v2/pkg/projectfile](./v2/pkg/projectfile) - Project File Implementation
### Notes
1. The matching as well as interim output functionality is a bit complex, we should simplify it a bit as well.
+4 -4
View File
@@ -1,7 +1,7 @@
FROM golang:1.15-alpine as build-env
RUN GO111MODULE=on go get -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei
FROM golang:1.18.3-alpine as build-env
RUN go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest
FROM alpine:latest
RUN apk add --no-cache bind-tools ca-certificates
FROM alpine:3.16.0
RUN apk add --no-cache bind-tools ca-certificates chromium
COPY --from=build-env /go/bin/nuclei /usr/local/bin/nuclei
ENTRYPOINT ["nuclei"]
+200 -28
View File
@@ -7,12 +7,14 @@
<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>
<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>
<a href="https://discord.gg/KECAGdH"><img src="https://img.shields.io/discord/695645237418131507.svg?logo=discord"></a>
<a href="https://github.com/projectdiscovery/nuclei/actions/workflows/build.yaml"><img src="https://github.com/projectdiscovery/nuclei/actions/workflows/build.yaml/badge.svg?branch=master"></a>
</p>
<p align="center">
@@ -22,15 +24,20 @@
<a href="#for-developers-and-organisations">For Developers</a> •
<a href="https://nuclei.projectdiscovery.io/nuclei/get-started/">Documentation</a> •
<a href="#credits">Credits</a> •
<a href="#license">License</a> •
<a href="https://discord.gg/KECAGdH">Join Discord</a>
<a href="https://nuclei.projectdiscovery.io/faq/nuclei/">FAQs</a> •
<a href="https://discord.gg/projectdiscovery">Join 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>
</p>
---
Nuclei is used to send requests across targets based on a template leading to zero false positives and providing fast scanning on large number of hosts. Nuclei offers scanning for a variety of protocols including TCP, DNS, HTTP, File, etc. With powerful and flexible templating, all kinds of security checks can be modelled with Nuclei.
Nuclei is used to send requests across targets based on a template, leading to zero false positives and providing fast scanning on a large number of hosts. Nuclei offers scanning for a variety of protocols, including TCP, DNS, HTTP, SSL, File, Whois, Websocket, Headless etc. With powerful and flexible templating, Nuclei can be used to model all kinds of security checks.
We have a [dedicated repository](https://github.com/projectdiscovery/nuclei-templates) that houses various type of vulnerability templates contributed by **more than 100** security researchers and engineers. It is preloaded with ready to use templates using `-update-templates` flag.
We have a [dedicated repository](https://github.com/projectdiscovery/nuclei-templates) that houses various type of vulnerability templates contributed by **more than 300** security researchers and engineers.
@@ -44,34 +51,193 @@ 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 -
```sh
▶ GO111MODULE=on go get -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei
go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest
```
**More installation [methods can be found here](https://nuclei.projectdiscovery.io/nuclei/get-started/#nuclei-installation).**
**More installation [methods can be found here](https://nuclei.projectdiscovery.io/nuclei/get-started/).**
<table>
<tr>
<td>
### Download Templates
### Nuclei Templates
You can download and update the nuclei templates using <ins>*update-templates*</ins> flag of nuclei that downloads all the available **nuclei-templates** from [Github project](https://github.com/projectdiscovery/nuclei-templates), a community curated list of templates that are ready to use.
Nuclei has built-in support for automatic template download/update as default since version [v2.5.2](https://github.com/projectdiscovery/nuclei/releases/tag/v2.5.2). [**Nuclei-Templates**](https://github.com/projectdiscovery/nuclei-templates) project provides a community-contributed list of ready-to-use templates that is constantly updated.
`▶ nuclei -update-templates`
You may still use the `update-templates` flag to update the nuclei templates at any time; You can write your own checks for your individual workflow and needs following Nuclei's [templating guide](https://nuclei.projectdiscovery.io/templating-guide/).
Nuclei is designed to used with custom templates according to the target and workflow, you can write your own checks for your specific workflow and needs, please refer to nuclei [templating guide](https://nuclei.projectdiscovery.io/templating-guide/) to write your own custom templates.
The YAML DSL reference syntax is available [here](SYNTAX-REFERENCE.md).
</td>
</tr>
</table>
### Running Nuclei
Scanning for CVEs on given list of URLs.
### Usage
```sh
▶ nuclei -l target_urls.txt -t cves/
nuclei -h
```
This will display help for the tool. Here are all the switches it supports.
```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
-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
-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, 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
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
-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)
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)
-hc, -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
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
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
-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
-vv display templates loaded for scan
-ep, -enable-pprof enable pprof debugging server
-tv, -templates-version shows the version of the installed nuclei-templates
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)
```
### Running Nuclei
Scanning target domain with [community-curated](https://github.com/projectdiscovery/nuclei-templates) nuclei templates.
```sh
nuclei -u https://example.com
```
Scanning target URLs with [community-curated](https://github.com/projectdiscovery/nuclei-templates) nuclei templates.
```sh
nuclei -list urls.txt
```
Example of `urls.txt`:
```yaml
http://example.com
http://app.example.com
http://test.example.com
http://uat.example.com
```
**More detailed examples of running nuclei can be found [here](https://nuclei.projectdiscovery.io/nuclei/get-started/#running-nuclei).**
@@ -92,9 +258,9 @@ Nuclei offers great number of features that are helpful for security engineers t
<tr>
<td>
**For bugbounty hunters:**
**For Bug Bounty hunters:**
Nuclei allows you to customise your testing approach with your own suite of checks and easily run across your bug bounty programs. Moroever, Nuclei can be easily integrated into any continuous scanning workflow.
Nuclei allows you to customise your testing approach with your own suite of checks and easily run across your bug bounty programs. Moreover, Nuclei can be easily integrated into any continuous scanning workflow.
- Designed to be easily integrated into other tool workflow.
- Can process thousands of hosts in few minutes.
@@ -110,11 +276,11 @@ Please check our other open-source projects that might fit into your bug bounty
<tr>
<td>
**For pentesters:**
**For Penetration Testers:**
Nuclei immensely improve how you approach security assessment by augmenting the manual repetitve processes. Consultancies are already converting their manual assessment steps with Nuclei, it allows them to run set of their custom assessment approach across thousands of hosts in an automated manner.
Nuclei immensely improve how you approach security assessment by augmenting the manual, repetitive processes. Consultancies are already converting their manual assessment steps with Nuclei, it allows them to run set of their custom assessment approach across thousands of hosts in an automated manner.
Pen-testers get the full power of our public templates and customization capabilities to speed-up their assessment process, and specifically with the regression cycle where you can easily verify the fix.
Pen-testers get the full power of our public templates and customization capabilities to speed up their assessment process, and specifically with the regression cycle where you can easily verify the fix.
- Easily create your compliance, standards suite (e.g. OWASP Top 10) checklist.
- With capabilities like [fuzz](https://nuclei.projectdiscovery.io/templating-guide/#advance-fuzzing) and [workflows](https://nuclei.projectdiscovery.io/templating-guide/#workflows), complex manual steps and repetitive assessment can be easily automated with Nuclei.
@@ -127,7 +293,7 @@ Pen-testers get the full power of our public templates and customization capabil
# For Developers and Organisations
Nuclei is built with simplicity in mind, with the community backed templates by hundreds of security researchers, it allows you to stay updated with latest security threats using continuous Nuclei scanning on the hosts. It is designed to be easily integrated into regression tests cycle, to verify the fixes and eliminate vulnerabilities from occuring in future.
Nuclei is built with simplicity in mind, with the community backed templates by hundreds of security researchers, it allows you to stay updated with the latest security threats using continuous Nuclei scanning on the hosts. It is designed to be easily integrated into regression tests cycle, to verify the fixes and eliminate vulnerabilities from occurring in the future.
- **CI/CD:** Engineers are already utilising Nuclei within their CI/CD pipeline, it allows them to constantly monitor their staging and production environments with customised templates.
- **Continuous Regression Cycle:** With Nuclei, you can create your custom template on every new identified vulnerability and put into Nuclei engine to eliminate in the continuous regression cycle.
@@ -144,11 +310,17 @@ We have [a discussion thread around this](https://github.com/projectdiscovery/nu
### 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/)
- [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)
- [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
@@ -161,5 +333,5 @@ Thanks to all the amazing community [contributors for sending PRs](https://githu
Nuclei is distributed under [MIT License](https://github.com/projectdiscovery/nuclei/blob/master/LICENSE.md)
<h1 align="left">
<a href="https://discord.gg/KECAGdH"><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>
<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>
+224 -174
View File
@@ -1,253 +1,303 @@
<h1 align="center">
<img src="static/nuclei-logo.png" alt="nuclei" width="200px"></a>
<br>
<a href="https://nuclei.projectdiscovery.io"><img src="static/nuclei-logo.png" width="200px" alt="Nuclei"></a>
</h1>
[![License](https://img.shields.io/badge/license-MIT-_red.svg)](https://opensource.org/licenses/MIT)
[![Go Report Card](https://goreportcard.com/badge/github.com/projectdiscovery/nuclei)](https://goreportcard.com/report/github.com/projectdiscovery/nuclei)
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/projectdiscovery/nuclei/issues)
[![GitHub Release](https://img.shields.io/github/release/projectdiscovery/nuclei)](https://github.com/projectdiscovery/nuclei/releases)
[![Follow on Twitter](https://img.shields.io/twitter/follow/pdnuclei.svg?logo=twitter)](https://twitter.com/pdnuclei)
[![Docker Images](https://img.shields.io/docker/pulls/projectdiscovery/nuclei.svg)](https://hub.docker.com/r/projectdiscovery/nuclei)
[![Chat on Discord](https://img.shields.io/discord/695645237418131507.svg?logo=discord)](https://discord.gg/KECAGdH)
<h4 align="center">基于YAML语法模板的定制化快速漏洞扫描器</h4>
<p align="center">
<a href="https://nuclei.projectdiscovery.io/templating-guide/" target="_blank"><img src="static/read-the-docs-button.png" height="42px"/></center></a> <a href="https://github.com/projectdiscovery/nuclei-templates" target="_blank"><img src="static/download-templates-button.png" height="42px"/></a>
<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>
<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>
</p>
<p align="center">
<a href="#工作流程">工作流程</a> •
<a href="#安装Nuclei">安装</a> •
<a href="#对于安全工程师">对于安全工程师</a> •
<a href="#对于开发者和组织">对于开发者</a> •
<a href="https://nuclei.projectdiscovery.io/nuclei/get-started/">文档</a> •
<a href="#c致谢">致谢</a> •
<a href="https://nuclei.projectdiscovery.io/faq/nuclei/">常见问题</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>
</p>
Nuclei是一个基于模板的、可配置攻击目标的扫描快速工具,同时还提供了强大的可扩展性和易用性。
---
基于模板的nuclei被用来发送请求给目标,有着实现零误报的优点,并且可以对已知的路径进行有效的扫描。nuclei的主要用于在初期的探测阶段快速地对已知的且易于检测的漏洞或者CVE进行扫描。如果存在WAF的话,nuclei使用[retryablehttp-go库](https://github.com/projectdiscovery/retryablehttp-go)来处理各种错误,并且重新尝试攻击,这也是我们自定义功能的核心模块之一。
Nuclei使用零误报的定制模板向目标发送请求,同时可以对大量主机进行快速扫描。Nuclei提供TCP、DNS、HTTP、FILE等各类协议的扫描,通过强大且灵活的模板,可以使用Nuclei模拟各种安全检查。
我们也维护一个具有各个类型的模板的[开源库](https://github.com/projectdiscovery/nuclei-templates),我们希望你也能贡献一些模板,贡献的这些模板最好是有效的,并且能允许每个人基于你的模板重新构建。查看[**nuclei.projectdiscovery.io**](https://nuclei.projectdiscovery.io/templating-guide/)这个网站去学习制作模板的入门知识。
我们的[模板仓库](https://github.com/projectdiscovery/nuclei-templates)包含**超过200**安全研究员和工程师提供的模板。
## 目录
- [目录](#目录)
- [功能](#功能)
- [安装](#安装)
- [Nuclei模板](#nuclei模板)
- [用法](#用法)
- [运行Nuclei](#运行nuclei)
- [排除模板](#排除模板)
- [致谢](#致谢)
## 功能
## 工作流程
<h1 align="left">
<img src="static/nuclei-run.png" alt="nuclei" width="700px"></a>
<br>
</h1>
- 有着易于开发的、简单的、模块化的代码库
- 使用了基于模板的引擎,运行速度极快,可以修改所以配置
- 可以对特殊情况处理、重试、绕过等,可以绕过WAF
- 智能匹配,零误报
<h3 align="center">
<img src="static/nuclei-flow.jpg" alt="nuclei-flow" width="700px"></a>
</h3>
## 安装
### 二进制文件安装
# 安装Nuclei
二进制文件安装很简单,你可以从[Releases](https://github.com/projectdiscovery/nuclei/releases/)页面下载已经构建好的二进制文件压缩包,使用解压工具提取下载的压缩包,并将解压的文件夹移动到$PATH目录,就可以直接使用了。
Nuclei需要**go1.17**才能安装成功。执行下列命令安装最新版本的Nuclei
```sh
Download latest binary from https://github.com/projectdiscovery/nuclei/releases
▶ tar -xzvf nuclei-linux-amd64.tar.gz
▶ mv nuclei /usr/local/bin/
▶ nuclei -version
go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest
```
### 源码安装
**更多的安装方式 [请点击此处](https://nuclei.projectdiscovery.io/nuclei/get-started/).**
nuclei需要**go1.14+**才能成功安装,运行以下命令获取repo
<table>
<tr>
<td>
```sh
▶ GO111MODULE=on go get -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei
```
### Nuclei模板
### GitHub安装
自从[v2.5.2]((https://github.com/projectdiscovery/nuclei/releases/tag/v2.5.2))起,Nuclei就内置了自动下载和更新模板的功能。[**Nuclei模板**](https://github.com/projectdiscovery/nuclei-templates)仓库随时更新社区中可用的模板列表。
```sh
▶ git clone https://github.com/projectdiscovery/nuclei.git; cd nuclei/v2/cmd/nuclei/; go build; mv nuclei /usr/local/bin/; nuclei -version
```
您仍然可以随时使用`update-templates`命令更新模板,您可以根据[模板指南](https://nuclei.projectdiscovery.io/templating-guide/)编写您自己的模板。
## Nuclei模板
YAML的语法规范在[这里](SYNTAX-REFERENCE.md)。
你可以使用`update-templates`来下载和更新nuclei模板,该命令会从unclei的[模板库]()中下载最新版本,这个由社区来维护的库是可以随时使用的。
</td>
</tr>
</table>
```sh
▶ nuclei -update-templates
```
此外您可以根据自己的工作情况或者需求编写模板,请参阅**nuclei[模板向导](https://nuclei.projectdiscovery.io/templating-guide/)去编写自定义模板**
## 用法
### 用法
```sh
nuclei -h
```
这条命令会显示帮助,以下是nuclei支持的所有命令
这将显示Nuclei的帮助,以下是所有支持的命令
|命令|描述|例子|
|-----|-----|-----|
|bulk-size|每个模板最大并行的主机数(默认25)|nuclei -bulk-size 25|
|burp-collaborator-biid|使用burp-collaborator插件|nuclei -burp-collaborator-biid XXXX|
|c|并行的最大模板数量(默认10)|nuclei -c 10|
|l|对URL列表进行测试|nuclei -l urls.txt|
|target|对目标进行测试|nuclei -target hxxps://example.com|
|t|要检测的模板种类|nuclei -t git-core.yaml -t cves/|
|no-color|输出不显示颜色|nuclei -no-color|
|no-meta|不显示匹配的元数据|nuclei -no-meta|
|json|输出为json格式|nuclei -json|
|include-rr|json输出格式中包含请求和响应数据|nuclei -json -include-rr|
|o|输出为文件|nuclei -o output.txt|
|project|避免发送相同的请求|nuclei -project|
|stats|使用进度条|nuclei -stats|
|silent|只输出测试成功的结果|nuclei -silent|
|retries|失败后的重试次数|nuclei -retries 1|
|timeout|超时时间(默认为5秒)|nuclei -timeout 5|
|trace-log|输出日志到log文件|nuclei -trace-log logs|
|rate-limit|每秒最大请求数(默认150)|nuclei -rate-limit 150|
|severity|根据严重性选择模板|nuclei -severity critical,high|
|stop-at-first-match|第一次匹配不要处理HTTP请求|nuclei -stop-at-frst-match|
|exclude|排除的模板或文件夹|nuclei -exclude panels -exclude tokens|
|debug|调试请求或者响应|nuclei -debug|
|update-templates|下载或者升级模板|nuclei -update-templates|
|update-directory|选择储存模板的目录(可选)|nuclei -update-directory templates|
|tl|列出可用的模板|nuclei -tl|
|templates-version|显示已安装的模板版本|nuclei -templates-version|
|v|显示发送请求的详细信息|nuclei -v|
|version|显示nuclei的版本号|nuclei -version|
|proxy-url|输入代理地址|nuclei -proxy-url hxxp://127.0.0.1:8080|
|proxy-socks-url|输入socks代理地址|nuclei -proxy-socks-url socks5://127.0.0.1:8080|
|random-agent|使用随机的UA|nuclei -random-agent|
|H|自定义请求头|nuclei -H “x-bug-bounty:hacker”|
## 运行Nuclei
```yaml
Nuclei是一款注重于可配置性、可扩展性和易用性的基于模板的快速漏洞扫描器。
### 运行单个模板
用法:
nuclei [命令]
这将对`urls.txt`中所有的主机运行`git-core.yaml`并返回结果到`results.txt`
命令:
目标:
-u, -target string[] 指定扫描的URL/主机
-l, -list string 指定需要扫描的URL/主机文件(一行一个)
模板:
-t, -templates string[] 指定需要扫描的模板或者模板的路径
-nt, -new-templates 只扫描最新版本中添加的模板
-w, -workflows string[] 指定扫描中的工作流或者工作流目录
-validate 验证通过的模板
-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[] 执行指定作者的模板
输出:
-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导出结果
配置:
-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 在模板中使用环境变量
交互:
-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 禁用反连检测平台,同时排除基于反连检测的模板
限速:
-r1, -rate-limit int 每秒最大请求量(默认:150)
-rlm, -rate-limit-minute int 每分钟最大请求量
-bs, -bulk-size int 每个模板最大并行检测数(默认:25)
-c, -concurrency int 并行执行的最大模板数量(默认:25)
优化:
-timeout int 超时时间(默认为5秒)
-retries int 重试次数(默认:1)
-mhe, -max-host-error int 某主机扫描失败次数,跳过该主机(默认:30)
-project 使用项目文件夹避免多次发送同一请求
-project-path string 设置特定的项目文件夹
-spm, -stop-at-first-path 得到一个结果后停止(或许会中断模板和工作流的逻辑)
-stream 流模式 - 在不整理输入的情况下详细描述
无界面浏览器:
-headless 启用需要无界面浏览器的模板
-page-timeout int 在无界面下超时秒数(默认:20)
-sb, -show-brower 在无界面浏览器运行模板时,显示浏览器
-sc, -system-chrome 不使用Nuclei自带的浏览器,使用本地浏览器
调试:
-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 显示已安装的模板版本
升级:
-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)
```
### 运行Nuclei
使用[社区提供的模板](https://github.com/projectdiscovery/nuclei-templates)扫描单个目标
```sh
▶ nuclei -l urls.txt -t files/git-core.yaml -o results.txt
nuclei -u https://example.com
```
你可以轻松的通过管道使用标准的输入(STDIN)传递URL列表。
使用[社区提供的模板](https://github.com/projectdiscovery/nuclei-templates)扫描多个目标
```sh
▶ cat urls.txt | nuclei -t files/git-core.yaml -o results.txt
nuclei -list urls.txt
```
💡 Nuclei可以接受如下列表的URL作为输入,例如以下URL:
Example of `urls.txt`:
```
https://test.some-site.com
http://vuls-testing.com
https://test.com
```
### 运行多个模板
这将会对`urls.txt`中所有的URL运行`cves`和`files`模板检查,并返回输出到`results.txt`
```sh
▶ nuclei -l urls.txt -t cves/ -t files/ -o results.txt
```yaml
http://example.com
http://app.example.com
http://test.example.com
http://uat.example.com
```
### 使用subfinder运行
**更多关于Nuclei的详细实例可以在[这里](https://nuclei.projectdiscovery.io/nuclei/get-started/#running-nuclei)找到**
```sh
▶ subfinder -d hackerone.com -silent | httpx -silent | nuclei -t cves/ -o results.txt
```
# 对于安全工程师
### 在docker中运行
Nuclei提供了大量有助于安全工程师在工作流定制相关的功能。通过各种扫描功能(如DNS、HTTP、TCP),安全工程师可以更轻松的使用Nuclei创建一套自定义的检查方式。
你需要使用[nuclei的docker镜像](https://hub.docker.com/r/projectdiscovery/nuclei)来运行
- 支持多种协议:TCP、DNS、HTTP、FILE等
- 通过工作流和动态请求实现复杂的漏洞扫描
- 易于集成到CI/CD,旨在可以轻松的集成到周期扫描中,以主动检测漏洞的修复和重新出现
```sh
▶ docker pull projectdiscovery/nuclei
```
<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>
```sh
▶ docker run -it projectdiscovery/nuclei
```
**对于赏金猎人:**
这将会对`urls.txt`中的URL通过docker中的nuclei进行检测,并将结果输出到本机的`results.txt`文件的:
Nuclei允许您定制自己的测试方法,可以轻松的运行您的程序。此外Nuclei可以更容易的集成到您的漏扫设备中。
```sh
▶ cat urls.txt | docker run -v /path/to/nuclei-templates:/app/nuclei-templates -v /path/to/nuclei/config:/app/.nuclei-config.json -i projectdiscovery/nuclei -t /app/nuclei-templates/files/git-config.yaml > results.txt
```
记住更改的模板路径到本机
- 可以集成到其他工作流中
- 可以在几分钟处理上千台主机
- 使用YAML语法定制自动化测试
### 速率限制
欢迎查看我们其他的开源项目,可能有适合您的赏金猎人工作流:[github.com/projectdiscovery](http://github.com/projectdiscovery),我们还使用[Chaos绘制了每日的DNS数据](http://chaos.projectdiscovery.io)。
Nuclei有多种控制速率的方法,包括并行执行多个模板、并行检查多个主机,以及使nuclei限制全局的请求速率,下面就是示例。
</td>
</tr>
</table>
- `-c`参数 => 限制并行的模板数
- `-bulk-size`参数 => 限制并行的主机数
- `-rate-limit`参数 => 全局速率限制
<table>
<tr>
<td>
如果你想快速扫描或者控制扫描,请使用这些标志并输入限制数,`速率限制`只保证控制传出的请求,与其他参数无关。
**对于渗透测试:**
### 排除模板
Nuclei通过增加手动、自动的过程,极大地改变了安全评估的方式。一些公司已经在用Nuclei升级他们的手动测试步骤,可以使用Nulcei对数千台主机使用同样的流程自动化测试。
[Nuclei模板](https://github.com/projectdiscovery/nuclei-templates)包含多种检查,其中有许多对攻击有用的检查,但并不是都有用的。如果您只希望扫描少数特定的模板或目录,则可以使用如下的参数筛选模板,或将某些模板排除。
渗透测试员可以使用公共模板或者自定义模板来更快的完成渗透测试,特别是漏洞验证时,可以轻松的验证漏洞是否修复。
#### 排除模板运行
- 轻松根据您的要求创建标准清单(例如:OWASP TOP 10)
- 通过[FUZZ](https://nuclei.projectdiscovery.io/templating-guide/#advance-fuzzing)和[工作流](https://nuclei.projectdiscovery.io/templating-guide/#workflows)等功能,可以使用Nuclei完成复杂的手动步骤和重复性渗透测试
- 只需要重新运行Nuclei即可验证漏洞修复情况
我们不建议同时运行所有的nuclei模板,如果要排除模板,可以使用`exclude`参数来排除特定的目录或模板。
</td>
</tr>
</table>
```sh
nuclei -l urls.txt -t nuclei-templates -exclude panels/ -exclude technologies -exclude files/wp-xmlrpc.yaml
```
# 对于开发和组织
注意:如上述示例中显示的那样,目录和特定模板都将不会扫描
Nuclei构建很简单,通过数百名安全研究员的社区模板,Nuclei可以随时扫描来了解安全威胁。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)中发布相关信息。
```sh
nuclei -l urls.txt -t cves/ -severity critical,medium
```
<h3 align="center">
<img src="static/regression-with-nuclei.jpg" alt="regression-cycle-with-nuclei" width="1100px"></a>
</h3>
上面的例子将运行`cves`目录下所有`严重`和`中等`的模板。
<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>
```sh
nuclei -l urls.txt -t panels/ -t technologies -severity info
```
### 资源
- [使用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/)
- [Nuclei + Interactsh Integration,用于自动化OOB测试](https://blog.projectdiscovery.io/nuclei-interactsh-integration/)
- [武器化Nuclei](https://medium.com/@dwisiswant0/weaponizes-nuclei-workflows-to-pwn-all-the-things-cd01223feb77) 作者:[@dwisiswant0](https://github.com/dwisiswant0)
- [如何使用Nuclei连续扫描?](https://medium.com/@dwisiswant0/how-to-scan-continuously-with-nuclei-fcb7e9d8b8b9) 作者:[@dwisiswant0](https://github.com/dwisiswant0)
- [自动化攻击](https://dhiyaneshgeek.github.io/web/security/2021/07/19/hack-with-automation/) 作者:[@DhiyaneshGeek](https://github.com/DhiyaneshGeek)
上面的例子将运行`panels`和`technologies`目录下严重性标记为`info`的模板
### 致谢
#### 使用`.nuclei-ignore`文件排除模板
感谢所有[社区贡献者提供的PR](https://github.com/projectdiscovery/nuclei/graphs/contributors),另外您可以其他类似的开源项目:
自从nuclei的[v2.1.1版本](https://github.com/projectdiscovery/nuclei/releases/tag/v2.1.1)以来,我们添加了对`.nuclei-ignore`文件的支持,该文件与`update-templates`参数一起使用,在 **.nuclei-ignore** 文件中,您可以定义要从nuclei扫描中排除的所有模板目录或者模板路径,要开始使用此功能,请确保使用`nuclei-update-templates`参数安装nuclei模板,现在可以根据`.nuclei-ignore`的文件来添加、更新、删除模板文件。
[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)
```
nano ~/nuclei-templates/.nuclei-ignore
```
### 许可证
默认的**nuclei忽略**列表可以访问[这里]((https://github.com/projectdiscovery/nuclei-templates/blob/master/.nuclei-ignore),如果不想排除任何内容,只需要删除`.nuclei-ignore`文件。
Nuclei使用[MIT许可证](https://github.com/projectdiscovery/nuclei/blob/master/LICENSE.md)
* * *
### 📋 笔记
- 进度条是实验性功能,在某些情况下可能无法使用。
- 进度条不适用于工作流,因为是条件执行,所以不准确。
## 致谢
也要看看这些类似的好项目,或许它们也适合你:
[Burp Suite](https://portswigger.net/burp), [FFuF](https://github.com/ffuf/ffuf), [Jaeles](https://github.com/jaeles-project/jaeles), [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), [ChopChop](https://github.com/michelin/ChopChop)
--------
Nuclei是由[projectdiscovery](https://projectdiscovery.io)团队用🖤制作的,当然社区也贡献了很多,通过 **[Thanks.md](https://github.com/projectdiscovery/nuclei/blob/master/THANKS.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
@@ -0,0 +1,5 @@
# 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.
+4188
View File
File diff suppressed because it is too large. Load diff
+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"
+22
View File
@@ -0,0 +1,22 @@
id: caa-fingerprinting
info:
name: CAA Fingerprint
author: pdteam
severity: info
tags: dns,caa
dns:
- name: "{{FQDN}}"
type: CAA
matchers:
- type: word
words:
- "IN\tCAA"
extractors:
- type: regex
group: 1
regex:
- "IN\tCAA\t(.+)"
@@ -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(.+)"
+22
View File
@@ -0,0 +1,22 @@
id: ptr-fingerprint
info:
name: PTR Fingerprint
author: pdteam
severity: info
tags: dns,ptr
dns:
- name: "{{FQDN}}"
type: PTR
matchers:
- type: word
words:
- "IN\tPTR"
extractors:
- type: regex
group: 1
regex:
- "IN\tPTR\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"
@@ -0,0 +1,18 @@
id: headless-basic
info:
name: Headless Basic
author: pdteam
severity: info
tags: headless
headless:
- steps:
- action: navigate
args:
url: "{{BaseURL}}/"
- action: waitload
matchers:
- type: word
words:
- "<html>"
@@ -0,0 +1,31 @@
id: headless-extract-values
info:
name: Headless Extract Value
author: pdteam
severity: info
tags: headless
headless:
- steps:
- action: navigate
args:
url: "{{BaseURL}}"
- action: waitload
# From headless/extract-urls.yaml
- action: script
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'
matchers:
- type: word
words:
- "test.html"
extractors:
- type: kval
part: extract
kval:
- extract
@@ -0,0 +1,24 @@
id: headless-header-action
info:
name: Headless Header Action
author: pdteam
severity: info
tags: headless
headless:
- steps:
- action: setheader
args:
part: request
key: Test
value: test value
- action: navigate
args:
url: "{{BaseURL}}/"
- action: waitload
matchers:
- type: word
words:
- "test value"
@@ -0,0 +1,26 @@
id: headless-payloads
info:
name: headless payloads example
author: pdteam
severity: info
tags: headless
headless:
- attack: clusterbomb
payloads:
aa:
- aa
- bb
bb:
- cc
- dd
steps:
- args:
url: "{{BaseURL}}?aa={{aa}}&bb={{bb}}"
action: navigate
- action: waitload
matchers:
- type: word
words:
- "test"
+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,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"
+75
View File
@@ -0,0 +1,75 @@
id: helper-functions-examples
info:
name: RAW Template with Helper Functions
author: pdteam
severity: info
requests:
- raw:
- |
GET / HTTP/1.1
Host: {{Hostname}}
01: {{base64("Hello")}}
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_ip("192.168.0.0/24")}}
29: {{rand_ip("2002:c0a8::/24")}}
30: {{rand_ip("192.168.0.0/24","10.0.100.0/24")}}
31: {{rand_text_alpha(10, "abc")}}
32: {{rand_text_alpha(10, "")}}
33: {{rand_text_alpha(10)}}
34: {{rand_text_alphanumeric(10, "ab12")}}
35: {{rand_text_alphanumeric(10)}}
36: {{rand_text_numeric(10, 123)}}
37: {{rand_text_numeric(10)}}
38: {{regex("H([a-z]+)o", "Hello")}}
39: {{remove_bad_chars("abcd", "bc")}}
40: {{repeat("a", 5)}}
41: {{replace("Hello", "He", "Ha")}}
42: {{replace_regex("He123llo", "(\\d+)", "")}}
43: {{reverse("abc")}}
44: {{sha1("Hello")}}
45: {{sha256("Hello")}}
46: {{to_lower("HELLO")}}
47: {{to_upper("hello")}}
48: {{trim("aaaHelloddd", "ad")}}
49: {{trim_left("aaaHelloddd", "ad")}}
50: {{trim_prefix("aaHelloaa", "aa")}}
51: {{trim_right("aaaHelloddd", "ad")}}
52: {{trim_space(" Hello ")}}
53: {{trim_suffix("aaHelloaa", "aa")}}
54: {{unix_time(10)}}
55: {{url_decode("https:%2F%2Fprojectdiscovery.io%3Ftest=1")}}
56: {{url_encode("https://projectdiscovery.io/test?a=1")}}
57: {{wait_for(1)}}
extractors:
- type: regex
name: results
regex:
- '\d+: [^\s]+'
@@ -0,0 +1,23 @@
id: dsl-matcher-variable
info:
name: dsl-matcher-variable
author: pd-team
severity: info
requests:
-
path:
- "{{BaseURL}}"
payloads:
VALUES:
- This
- is
- test
- matcher
- text
matchers:
-
dsl:
- 'contains(body,"{{VALUES}}")'
type: dsl
@@ -0,0 +1,16 @@
id: basic-get-case-insensitive
info:
name: Basic GET Request
author: pdteam
severity: info
requests:
- method: GET
path:
- "{{BaseURL}}"
matchers:
- type: word
case-insensitive: true
words:
- "ThIS is TEsT MAtcHEr TExT"
@@ -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,23 @@
id: basic-get-redirects-chain-headers
info:
name: Basic GET Redirects Request With Chain header
author: pdteam
severity: info
requests:
- method: GET
path:
- "{{BaseURL}}"
redirects: true
max-redirects: 3
matchers-condition: and
matchers:
- type: word
part: header
words:
- "TestRedirectHeaderMatch"
- type: status
status:
- 302
@@ -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,23 @@
id: interactsh-stop-at-first-match-integration-test
info:
name: Interactsh StopAtFirstMatch Integration Test
author: pdteam
severity: info
requests:
- method: GET
path:
- "{{BaseURL}}"
- "{{BaseURL}}"
- "{{BaseURL}}"
headers:
url: 'http://{{interactsh-url}}'
stop-at-first-match: true
matchers:
- type: word
part: interactsh_protocol # Confirms the HTTP Interaction
words:
- "http"
+19
View File
@@ -0,0 +1,19 @@
id: interactsh-integration-test
info:
name: Interactsh Integration Test
author: pdteam
severity: info
requests:
- method: GET
path:
- "{{BaseURL}}"
headers:
url: 'http://{{interactsh-url}}'
matchers:
- type: word
part: interactsh_protocol # Confirms the HTTP Interaction
words:
- "http"
+46
View File
@@ -0,0 +1,46 @@
id: race-condition-testing
info:
name: Race condition testing with multiple requests
author: pdteam
severity: info
requests:
- raw:
- |
GET / HTTP/1.1
Host: {{Hostname}}
id=1
- |
GET / HTTP/1.1
Host: {{Hostname}}
id=2
- |
GET / HTTP/1.1
Host: {{Hostname}}
id=3
- |
GET / HTTP/1.1
Host: {{Hostname}}
id=4
- |
GET / HTTP/1.1
Host: {{Hostname}}
id=5
threads: 5
race: true
matchers:
- type: status
status:
- 200
+23
View File
@@ -0,0 +1,23 @@
id: race-condition-testing
info:
name: Race Condition testing
author: pdteam
severity: info
requests:
- raw:
- |
GET / HTTP/1.1
Host: {{Hostname}}
test
race: true
race_count: 10
matchers:
- type: status
part: header
status:
- 200
@@ -7,7 +7,7 @@ info:
requests:
- raw:
- |
- |+
GET / HTTP/1.1
Host:
Content-Length: 4
@@ -17,4 +17,4 @@ requests:
matchers:
- type: word
words:
- "This is test-raw-unsafe request matcher."
- "This is test raw-unsafe-matcher test"
@@ -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"
@@ -0,0 +1,18 @@
id: example-self-contained-input
info:
name: example-self-contained
author: pd-team
severity: info
self-contained: true
requests:
- raw:
- |
GET http://127.0.0.1:5431/ HTTP/1.1
Host: {{Hostname}}
matchers:
- type: word
words:
- This is self-contained response
@@ -0,0 +1,18 @@
id: stop-at-first-match-with-extractors
info:
name: Stop at first match Request with extractors
author: pdteam
severity: info
requests:
- method: GET
path:
- "{{BaseURL}}?a=1"
- "{{BaseURL}}?a=2"
stop-at-first-match: true
extractors:
- type: kval
part: header
kval:
- "date"
@@ -0,0 +1,17 @@
id: stop-at-first-match
info:
name: Stop at first match Request
author: pdteam
severity: info
requests:
- method: GET
path:
- "{{BaseURL}}?a=1"
- "{{BaseURL}}?a=2"
matchers:
- type: word
words:
- "This is test"
stop-at-first-match: true
+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="
+10
View File
@@ -0,0 +1,10 @@
id: workflow-example
info:
name: Test Workflow Template
author: pdteam
severity: info
workflows:
- template: workflow/match-1.yaml
- template: workflow/match-2.yaml
@@ -0,0 +1,11 @@
id: condition-matched-workflow
info:
name: Condition Matched Workflow
author: pdteam
severity: info
workflows:
- template: workflow/match-1.yaml
subtemplates:
- template: workflow/match-2.yaml
+17
View File
@@ -0,0 +1,17 @@
id: basic-get-headers
info:
name: Basic GET Headers Request
author: pdteam
severity: info
requests:
- method: GET
path:
- "{{BaseURL}}"
headers:
test: nuclei
matchers:
- type: word
words:
- "This is test headers matcher text"
+15
View File
@@ -0,0 +1,15 @@
id: basic-get
info:
name: Basic GET Request
author: pdteam
severity: info
requests:
- method: GET
path:
- "{{BaseURL}}"
matchers:
- type: word
words:
- "This is test matcher text"
@@ -0,0 +1,2 @@
loader/get.yaml
loader/get-headers.yaml
@@ -0,0 +1,2 @@
loader/basic.yaml
loader/condition-matched.yaml
@@ -0,0 +1,16 @@
id: example-self-contained-input
info:
name: example-self-contained
author: pd-team
severity: info
self-contained: true
network:
- host:
- "127.0.0.1:5431"
matchers:
- type: word
words:
- "Authentication successful"
+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}}"
Regular → Executable
+13 -2
View File
@@ -1,12 +1,23 @@
#!/bin/bash
echo "::group::Build nuclei"
rm integration-test nuclei 2>/dev/null
cd ../v2/cmd/nuclei
go build
cp nuclei ../../../integration_tests/nuclei
mv nuclei ../../../integration_tests/nuclei
echo "::endgroup::"
echo "::group::Build nuclei integration-test"
cd ../integration-test
go build
cp integration-test ../../../integration_tests/integration-test
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
+15
View File
@@ -0,0 +1,15 @@
id: basic-ssl-tls
info:
name: Basic SSL Request with ztls
author: pdteam
severity: info
ssl:
- address: "{{Host}}:{{Port}}"
min_version: sslv3
max_version: tls12
matchers:
- type: dsl
dsl:
- "not_after>=0"
+13
View File
@@ -0,0 +1,13 @@
id: expired-ssl
info:
name: Basic SSL Request
author: pdteam
severity: info
ssl:
- address: "{{Host}}:{{Port}}"
matchers:
- type: dsl
dsl:
- "not_after>=0"
+16
View File
@@ -0,0 +1,16 @@
id: expired-ssl
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"
+16
View File
@@ -0,0 +1,16 @@
id: expired-ssl
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,68 @@
allow-list:
severity: high, critical
deny-list:
severity: low
# GitHub contains configuration options for GitHub issue tracker
github:
# base-url is the optional self-hosted GitHub application url
base-url: https://localhost:8443/github
# username is the username of the GitHub user
username: test-username
# owner is the owner name of the repository for issues
owner: test-owner
# token is the token for GitHub account
token: test-token
# project-name is the name of the repository
project-name: test-project
# issue-label is the label of the created issue type
issue-label: bug
# GitLab contains configuration options for gitlab issue tracker
gitlab:
# base-url is the optional self-hosted GitLab application url
base-url: https://localhost:8443/gitlab
# username is the username of the GitLab user
username: test-username
# token is the token for GitLab account
token: test-token
# project-name is the name/id of the project(repository)
project-name: "1234"
# issue-label is the label of the created issue type
issue-label: bug
# Jira contains configuration options for Jira issue tracker
jira:
# cloud is the boolean which tells if Jira instance is running in the cloud or on-prem version is used
cloud: true
# update-existing is the boolean which tells if the existing, opened issue should be updated or new one should be created
update-existing: false
# URL is the jira application url
url: https://localhost/jira
# account-id is the account-id of the Jira user or username in case of on-prem Jira
account-id: test-account-id
# email is the email of the user for Jira instance
email: [email protected]
# token is the token for Jira instance or password in case of on-prem Jira
token: test-token
# project-name is the name of the project.
project-name: test-project-name
# issue-type is the name of the created issue type
issue-type: bug
# elasticsearch contains configuration options for elasticsearch exporter
elasticsearch:
# IP for elasticsearch instance
ip: 127.0.0.1
# Port is the port of elasticsearch instance
port: 9200
# IndexName is the name of the elasticsearch index
index-name: nuclei
# SSL enables ssl for elasticsearch connection
ssl: false
# SSLVerification disables SSL verification for elasticsearch
ssl-verification: false
# Username for the elasticsearch instance
username: test
# Password is the password for elasticsearch instance
password: test
@@ -0,0 +1,70 @@
allow-list:
severity:
- high
- critical
deny-list:
severity: low
# GitHub contains configuration options for GitHub issue tracker
GitHub:
# base-url is the optional self-hosted GitHub application url
base-url: https://localhost:8443/GitHub
# username is the username of the GitHub user
username: test-username
# owner is the owner name of the repository for issues.
owner: test-owner
# token is the token for GitHub account.
token: test-token
# project-name is the name of the repository.
project-name: test-project
# issue-label is the label of the created issue type
issue-label: bug
# GitLab contains configuration options for GitLab issue tracker
GitLab:
# base-url is the optional self-hosted GitLab application url
base-url: https://localhost:8443/GitLab
# username is the username of the GitLab user
username: test-username
# token is the token for GitLab account.
token: test-token
# project-name is the name/id of the project(repository).
project-name: "1234"
# issue-label is the label of the created issue type
issue-label: bug
# Jira contains configuration options for Jira issue tracker
Jira:
# cloud is the boolean which tells if Jira instance is running in the cloud or on-prem version is used
cloud: true
# update-existing is the boolean which tells if the existing, opened issue should be updated or new one should be created
update-existing: false
# URL is the Jira application url
url: https://localhost/Jira
# account-id is the account-id of the Jira user or username in case of on-prem Jira
account-id: test-account-id
# email is the email of the user for Jira instance
email: [email protected]
# token is the token for Jira instance or password in case of on-prem Jira
token: test-token
# project-name is the name of the project.
project-name: test-project-name
# issue-type is the name of the created issue type
issue-type: bug
# elasticsearch contains configuration options for elasticsearch exporter
elasticsearch:
# IP for elasticsearch instance
ip: 127.0.0.1
# Port is the port of elasticsearch instance
port: 9200
# IndexName is the name of the elasticsearch index
index-name: nuclei
# SSL enables ssl for elasticsearch connection
ssl: false
# SSLVerification disables SSL verification for elasticsearch
ssl-verification: false
# Username for the elasticsearch instance
username: test
# Password is the password for elasticsearch instance
password: test
+16
View File
@@ -0,0 +1,16 @@
id: basic-request
info:
name: Basic Request
author: pdteam
severity: info
websocket:
- address: '{{Scheme}}://{{Hostname}}'
inputs:
- data: hello
matchers:
- type: word
words:
- world
part: response
+16
View File
@@ -0,0 +1,16 @@
id: basic-cswsh-request
info:
name: Basic cswsh Request
author: pdteam
severity: info
websocket:
- address: '{{Scheme}}://{{Hostname}}'
headers:
Origin: 'http://evil.com'
matchers:
- type: word
words:
- true
part: success
+16
View File
@@ -0,0 +1,16 @@
id: basic-nocswsh-request
info:
name: Basic Non-Vulnerable cswsh Request
author: pdteam
severity: info
websocket:
- address: '{{Scheme}}://{{Hostname}}'
headers:
Origin: 'http://evil.com'
matchers:
- type: word
words:
- true
part: success
+16
View File
@@ -0,0 +1,16 @@
id: basic-request-path
info:
name: Basic Request Path
author: pdteam
severity: info
websocket:
- address: '{{Scheme}}://{{Hostname}}'
inputs:
- data: hello
matchers:
- type: word
words:
- world
part: response
+14
View File
@@ -0,0 +1,14 @@
id: basic-whois-example
info:
name: test template for WHOIS
author: pdteam
severity: info
whois:
- query: "{{Host}}"
extractors:
- type: kval
kval:
- "expiration date"
- "registrar"
+1376
View File
File diff suppressed because it is too large. Load diff
+17
View File
@@ -0,0 +1,17 @@
sonar.projectKey=projectdiscovery_nuclei
sonar.organization=projectdiscovery
# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=dnsx
#sonar.projectVersion=1.0
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
sonar.sources=v2/
sonar.tests=v2/
sonar.test.inclusions=**/*_test.go
sonar.exclusions=v2/pkg/protocols/common/helpers/deserialization/testdata/*.java
sonar.go.coverage.reportPaths=v2/cov.out
sonar.externalIssuesReportPaths=v2/report.json
# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8
+44 -19
View File
@@ -3,23 +3,48 @@ before:
- go mod tidy
builds:
- binary: nuclei
main: cmd/nuclei/main.go
goos:
- linux
- windows
- 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
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
flags:
- -trimpath
- main: cmd/cve-annotate/main.go
binary: cve-annotate
id: annotate
env:
- CGO_ENABLED=0
goos: [linux]
goarch: [amd64]
archives:
- id: tgz
format: tar.gz
replacements:
darwin: macOS
format_overrides:
- goos: windows
format: zip
- format: zip
id: nuclei
builds: [nuclei-cli]
replacements:
darwin: macOS
- format: zip
id: annotate
builds: [annotate]
name_template: "{{ .Binary }}"
checksum:
algorithm: sha256
+32
View File
@@ -0,0 +1,32 @@
# Go parameters
GOCMD=go
GOBUILD=$(GOCMD) build
GOMOD=$(GOCMD) mod
GOTEST=$(GOCMD) test
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) $(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"
go get -v github.com/projectdiscovery/yamldoc-go/cmd/docgen/dstdocgen
fi
$(GOCMD) generate pkg/templates/templates.go
$(GOBUILD) -o "cmd/docgen/docgen" cmd/docgen/docgen.go
./cmd/docgen/docgen docs.md nuclei-jsonschema.json
test:
$(GOTEST) $(GOFLAGS) ./...
integration:
bash ../integration_tests/run.sh
functional:
bash cmd/functional-tests/run.sh
tidy:
$(GOMOD) tidy
+234
View File
@@ -0,0 +1,234 @@
package main
import (
"bytes"
"flag"
"fmt"
"io/ioutil"
"log"
"os"
"regexp"
"strings"
"github.com/projectdiscovery/nvd"
"github.com/projectdiscovery/sliceutil"
"github.com/projectdiscovery/stringsutil"
"gopkg.in/yaml.v3"
"github.com/projectdiscovery/nuclei/v2/pkg/catalog"
)
const (
yamlIndentSpaces = 2
)
var (
input = flag.String("i", "", "Templates to annotate")
templateDir = flag.String("d", "", "Custom template directory for update")
)
func main() {
flag.Parse()
if *input == "" || *templateDir == "" {
log.Fatalf("invalid input, see -h\n")
}
if err := process(); err != nil {
log.Fatalf("could not process: %s\n", err)
}
}
func process() error {
tempDir, err := ioutil.TempDir("", "nuclei-nvd-%s")
if err != nil {
return err
}
defer os.RemoveAll(tempDir)
client, err := nvd.NewClient(tempDir)
if err != nil {
return err
}
catalog := catalog.New(*templateDir)
paths, err := catalog.GetTemplatePath(*input)
if err != nil {
return err
}
for _, path := range paths {
data, err := os.ReadFile(path)
if err != nil {
return err
}
getCVEData(client, path, string(data))
}
return nil
}
var (
idRegex = regexp.MustCompile("id: ([C|c][V|v][E|e]-[0-9]+-[0-9]+)")
severityRegex = regexp.MustCompile(`severity: ([a-z]+)`)
)
const maxReferenceCount = 5
func getCVEData(client *nvd.Client, filePath, data string) {
matches := idRegex.FindAllStringSubmatch(data, 1)
if len(matches) == 0 {
return
}
cveName := matches[0][1]
severityMatches := severityRegex.FindAllStringSubmatch(data, 1)
if len(severityMatches) == 0 {
return
}
severityValue := severityMatches[0][1]
cveItem, err := client.FetchCVE(cveName)
if err != nil {
log.Printf("Could not fetch cve %s: %s\n", cveName, err)
return
}
var cweID []string
for _, problemData := range cveItem.CVE.Problemtype.ProblemtypeData {
for _, description := range problemData.Description {
cweID = append(cweID, description.Value)
}
}
cvssScore := cveItem.Impact.BaseMetricV3.CvssV3.BaseScore
cvssMetrics := cveItem.Impact.BaseMetricV3.CvssV3.VectorString
// Perform some hacky string replacement to place the metadata in templates
infoBlockIndexData := data[strings.Index(data, "info:"):]
requestsIndex := strings.Index(infoBlockIndexData, "requests:")
networkIndex := strings.Index(infoBlockIndexData, "network:")
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")
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
infoBlock.Info.Severity = newSeverity
fmt.Printf("Adjusting severity for %s from %s=>%s (%.2f)\n", filePath, severityValue, newSeverity, cvssScore)
}
isCvssEmpty := cvssScore == 0 || cvssMetrics == ""
hasCvssChanged := infoBlock.Info.Classification.CvssScore != cvssScore || cvssMetrics != infoBlock.Info.Classification.CvssMetrics
if !isCvssEmpty && hasCvssChanged {
changed = true
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") {
infoBlock.Info.Classification.CweId = strings.Join(cweID, ",")
}
}
// If there is no description field, fill the description from CVE information
hasDescriptionData := len(cveItem.CVE.Description.DescriptionData) > 0
isDescriptionEmpty := infoBlock.Info.Description == ""
if isDescriptionEmpty && hasDescriptionData {
changed = true
// removes all new lines
description := stringsutil.ReplaceAny(cveItem.CVE.Description.DescriptionData[0].Value, "", "\n", "\\", "'", "\t")
description += "\n"
infoBlock.Info.Description = description
}
// we are unmarshaling info block to have valid data
var referenceDataURLs []string
for _, reference := range cveItem.CVE.References.ReferenceData {
referenceDataURLs = append(referenceDataURLs, reference.URL)
}
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 _, reference := range cveItem.CVE.References.ReferenceData {
referencesCount++
if referencesCount >= maxReferenceCount {
break
}
infoBlock.Info.Reference = append(infoBlock.Info.Reference, reference.URL)
}
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)
fmt.Printf("Wrote updated template to %s\n", filePath)
}
}
func isSeverityMatchingCvssScore(severity string, score float64) string {
if score == 0.0 {
return ""
}
var expected string
if score >= 0.1 && score <= 3.9 {
expected = "low"
} else if score >= 4.0 && score <= 6.9 {
expected = "medium"
} else if score >= 7.0 && score <= 8.9 {
expected = "high"
} else if score >= 9.0 && score <= 10.0 {
expected = "critical"
}
if expected != "" && expected != severity {
return expected
}
return ""
}
// 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"`
}
+51
View File
@@ -0,0 +1,51 @@
package main
import (
"bytes"
"encoding/json"
"io/ioutil"
"log"
"os"
"regexp"
"strings"
"github.com/alecthomas/jsonschema"
"github.com/projectdiscovery/nuclei/v2/pkg/templates"
)
var pathRegex = regexp.MustCompile(`github\.com/projectdiscovery/nuclei/v2/(?:internal|pkg)/(?:.*/)?([A-Za-z.]+)`)
func main() {
// Generate yaml syntax documentation
data, err := templates.GetTemplateDoc().Encode()
if err != nil {
log.Fatalf("Could not encode docs: %s\n", err)
}
err = ioutil.WriteFile(os.Args[1], data, 0644)
if err != nil {
log.Fatalf("Could not write docs: %s\n", err)
}
// Generate jsonschema
r := &jsonschema.Reflector{
PreferYAMLSchema: true,
YAMLEmbeddedStructs: true,
FullyQualifyTypeNames: true,
}
jsonschemaData := r.Reflect(&templates.Template{})
var buf bytes.Buffer
encoder := json.NewEncoder(&buf)
encoder.SetIndent("", " ")
_ = encoder.Encode(jsonschemaData)
schema := buf.String()
for _, match := range pathRegex.FindAllStringSubmatch(schema, -1) {
schema = strings.ReplaceAll(schema, match[0], match[1])
}
err = ioutil.WriteFile(os.Args[2], []byte(schema), 0644)
if err != nil {
log.Fatalf("Could not write jsonschema: %s\n", err)
}
}
+106
View File
@@ -0,0 +1,106 @@
package main
import (
"bufio"
"flag"
"fmt"
"log"
"os"
"strings"
"github.com/logrusorgru/aurora"
"github.com/pkg/errors"
"github.com/projectdiscovery/nuclei/v2/pkg/testutils"
)
var (
success = aurora.Green("[✓]").String()
failed = aurora.Red("[✘]").String()
githubAction = os.Getenv("GH_ACTION") == "true"
mainNucleiBinary = flag.String("main", "", "Main Branch Nuclei Binary")
devNucleiBinary = flag.String("dev", "", "Dev Branch Nuclei Binary")
testcases = flag.String("testcases", "", "Test cases file for nuclei functional tests")
)
func main() {
flag.Parse()
debug := os.Getenv("DEBUG") == "true"
if err, errored := runFunctionalTests(debug); err != nil {
log.Fatalf("Could not run functional tests: %s\n", err)
} else if errored {
os.Exit(1)
}
}
func runFunctionalTests(debug bool) (error, bool) {
file, err := os.Open(*testcases)
if err != nil {
return errors.Wrap(err, "could not open test cases"), true
}
defer file.Close()
errored, failedTestCases := runTestCases(file, debug)
if githubAction {
fmt.Println("::group::Failed tests with debug")
for _, failedTestCase := range failedTestCases {
_ = runTestCase(failedTestCase, true)
}
fmt.Println("::endgroup::")
}
return nil, errored
}
func runTestCases(file *os.File, debug bool) (bool, []string) {
errored := false
var failedTestCases []string
scanner := bufio.NewScanner(file)
for scanner.Scan() {
testCase := strings.TrimSpace(scanner.Text())
if testCase == "" {
continue
}
if runTestCase(testCase, debug) {
errored = true
failedTestCases = append(failedTestCases, testCase)
}
}
return errored, failedTestCases
}
func runTestCase(testCase string, debug bool) bool {
if err := runIndividualTestCase(testCase, debug); err != nil {
fmt.Fprintf(os.Stderr, "%s Test \"%s\" failed: %s\n", failed, testCase, err)
return true
} else {
fmt.Printf("%s Test \"%s\" passed!\n", success, testCase)
}
return false
}
func runIndividualTestCase(testcase string, debug bool) error {
parts := strings.Fields(testcase)
var finalArgs []string
if len(parts) > 1 {
finalArgs = parts[1:]
}
mainOutput, err := testutils.RunNucleiBinaryAndGetLoadedTemplates(*mainNucleiBinary, debug, finalArgs)
if err != nil {
return errors.Wrap(err, "could not run nuclei main test")
}
devOutput, err := testutils.RunNucleiBinaryAndGetLoadedTemplates(*devNucleiBinary, debug, finalArgs)
if err != nil {
return errors.Wrap(err, "could not run nuclei dev test")
}
if mainOutput == devOutput {
return nil
}
return fmt.Errorf("%s main is not equal to %s dev", mainOutput, devOutput)
}
+27
View File
@@ -0,0 +1,27 @@
#!/bin/bash
# reading os type from arguments
CURRENT_OS=$1
if [ "${CURRENT_OS}" == "windows-latest" ];then
extension=.exe
fi
echo "::group::Building functional-test binary"
go build -o functional-test$extension
echo "::endgroup::"
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::"
echo 'Starting Nuclei functional test'
./functional-test$extension -main ./nuclei$extension -dev ./nuclei_dev$extension -testcases testcases.txt
+51
View File
@@ -0,0 +1,51 @@
{{binary}}
{{binary}} -tags cve
{{binary}} -tags cve,exposure
{{binary}} -tags cve,exposure -tags token
{{binary}} -tags cve,exposure -tags token,logs
{{binary}} -tags "cve","exposure" -tags "token","logs"
{{binary}} -tags 'cve','exposure' -tags 'token','logs'
{{binary}} -tags cve -severity high
{{binary}} -tags cve,exposure -severity high,critical
{{binary}} -tags cve,exposure -severity high,critical,medium
{{binary}} -tags cve -author geeknik
{{binary}} -tags cve -author geeknik,pdteam
{{binary}} -tags cve -author geeknik -severity high
{{binary}} -tags cve
{{binary}} -tags cve,exposure
{{binary}} -tags cve,exposure -tags token
{{binary}} -tags cve,exposure -tags token,logs
{{binary}} -tags "cve","exposure" -tags "token","logs"
{{binary}} -tags 'cve','exposure' -tags 'token','logs'
{{binary}} -tags cve -severity high
{{binary}} -tags cve,exposure -severity high,critical
{{binary}} -tags cve,exposure -severity high,critical,medium
{{binary}} -tags cve -author geeknik
{{binary}} -tags cve -author geeknik,pdteam
{{binary}} -tags cve -author geeknik -severity high
{{binary}} -tags cve,exposure -author geeknik,pdteam -severity high,critical
{{binary}} -tags "cve,exposure" -author "geeknik,pdteam" -severity high,critical
{{binary}} -tags cve -etags ssrf
{{binary}} -tags cve,exposure -etags ssrf,config
{{binary}} -tags cve,exposure -etags ssrf,config -severity high
{{binary}} -tags cve,exposure -etags ssrf,config -severity high -author geeknik
{{binary}} -tags cve,dos,fuzz
{{binary}} -tags cve -include-tags dos,fuzz
{{binary}} -tags cve -exclude-tags cve2020
{{binary}} -tags cve -exclude-templates cves/2020/
{{binary}} -tags cve -exclude-templates cves/2020/CVE-2020-9757.yaml
{{binary}} -tags cve -exclude-templates cves/2020/CVE-2020-9757.yaml -exclude-templates cves/2021/
{{binary}} -t cves/
{{binary}} -t cves/ -t exposures/
{{binary}} -t cves/ -t exposures/ -tags config
{{binary}} -t cves/ -t exposures/ -tags config,ssrf
{{binary}} -t cves/ -t exposures/ -tags config -severity high,critical
{{binary}} -t cves/ -t exposures/ -tags config -severity high,critical -author geeknik,pdteam
{{binary}} -t cves/ -t exposures/ -tags config -severity high,critical -author geeknik,pdteam -etags sqli
{{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}} -w workflows
{{binary}} -w workflows -author geeknik,pdteam
{{binary}} -w workflows -severity high,critical
{{binary}} -w workflows -author geeknik,pdteam -severity high,critical
+129
View File
@@ -0,0 +1,129 @@
package main
import (
"fmt"
"log"
"net/http"
"net/http/httptest"
"os"
"path"
"strings"
"github.com/julienschmidt/httprouter"
"github.com/logrusorgru/aurora"
"github.com/pkg/errors"
"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"
"go.uber.org/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.FileOriginalNormalizedStringSlice{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 := 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),
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: []string{templateURL}}
_ = engine.Execute(store.Templates(), input)
engine.WorkPool().Wait() // Wait for the scan to finish
return results, nil
}
+55 -7
View File
@@ -1,28 +1,76 @@
package main
import (
"github.com/projectdiscovery/nuclei/v2/internal/testutils"
"github.com/projectdiscovery/nuclei/v2/pkg/testutils"
)
var dnsTestCases = map[string]testutils.TestCase{
"dns/basic.yaml": &dnsBasic{},
"dns/basic.yaml": &dnsBasic{},
"dns/ptr.yaml": &dnsPtr{},
"dns/caa.yaml": &dnsCAA{},
"dns/variables.yaml": &dnsVariables{},
}
type dnsBasic struct{}
// Executes executes a test case and returns an error if occurred
// Execute executes a test case and returns an error if occurred
func (h *dnsBasic) Execute(filePath string) error {
var routerErr error
results, err := testutils.RunNucleiAndGetResults(filePath, "one.one.one.one", debug)
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, "one.one.one.one", debug)
if err != nil {
return err
}
if routerErr != nil {
return routerErr
}
if len(results) != 1 {
return errIncorrectResultsCount(results)
return expectResultsCount(results, 1)
}
type dnsPtr struct{}
// Execute executes a test case and returns an error if occurred
func (h *dnsPtr) Execute(filePath string) error {
var routerErr error
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, "1.1.1.1", debug)
if err != nil {
return err
}
return nil
if routerErr != nil {
return routerErr
}
return expectResultsCount(results, 1)
}
type dnsCAA struct{}
// Execute executes a test case and returns an error if occurred
func (h *dnsCAA) Execute(filePath string) error {
var routerErr error
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, "google.com", debug)
if err != nil {
return err
}
if routerErr != nil {
return routerErr
}
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)
}
+113
View File
@@ -0,0 +1,113 @@
package main
import (
"net/http"
"net/http/httptest"
"github.com/julienschmidt/httprouter"
"github.com/projectdiscovery/nuclei/v2/pkg/testutils"
)
var headlessTestcases = map[string]testutils.TestCase{
"headless/headless-basic.yaml": &headlessBasic{},
"headless/headless-header-action.yaml": &headlessHeaderActions{},
"headless/headless-extract-values.yaml": &headlessExtractValues{},
"headless/headless-payloads.yaml": &headlessPayloads{},
"headless/variables.yaml": &headlessVariables{},
}
type headlessBasic struct{}
// Execute executes a test case and returns an error if occurred
func (h *headlessBasic) Execute(filePath string) error {
router := httprouter.New()
router.GET("/", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
_, _ = w.Write([]byte("<html><body></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)
}
type headlessHeaderActions struct{}
// Execute executes a test case and returns an error if occurred
func (h *headlessHeaderActions) Execute(filePath string) error {
router := httprouter.New()
router.GET("/", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
testValue := r.Header.Get("test")
if r.Header.Get("test") != "" {
_, _ = w.Write([]byte("<html><body>" + testValue + "</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)
}
type headlessExtractValues struct{}
// Execute executes a test case and returns an error if occurred
func (h *headlessExtractValues) Execute(filePath string) error {
router := httprouter.New()
router.GET("/", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
_, _ = w.Write([]byte("<html><body><a href='/test.html'>test</a></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, 3)
}
type headlessPayloads struct{}
// Execute executes a test case and returns an error if occurred
func (h *headlessPayloads) Execute(filePath string) error {
router := httprouter.New()
router.GET("/", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
_, _ = w.Write([]byte("<html><body>test</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, 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)
}
File diff suppressed because it is too large. Load diff
+87 -26
View File
@@ -6,45 +6,106 @@ import (
"strings"
"github.com/logrusorgru/aurora"
"github.com/projectdiscovery/nuclei/v2/internal/testutils"
"github.com/projectdiscovery/nuclei/v2/pkg/testutils"
)
var (
debug = os.Getenv("DEBUG") == "true"
customTest = os.Getenv("TEST")
protocol = os.Getenv("PROTO")
debug = os.Getenv("DEBUG") == "true"
githubAction = os.Getenv("GH_ACTION") == "true"
customTests = os.Getenv("TESTS")
success = aurora.Green("[✓]").String()
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,
"code": codeTestcases,
"templatesPath": templatesPathTestCases,
"templatesDir": templatesDirTestCases,
"file": fileTestcases,
}
)
func main() {
success := aurora.Green("[✓]").String()
failed := aurora.Red("[✘]").String()
failedTestTemplatePaths := runTests(toMap(toSlice(customTests)))
protocolTests := map[string]map[string]testutils.TestCase{
"http": httpTestcases,
"network": networkTestcases,
"dns": dnsTestCases,
"workflow": workflowTestcases,
if len(failedTestTemplatePaths) > 0 {
if githubAction {
debug = true
fmt.Println("::group::Failed integration tests in debug mode")
_ = runTests(failedTestTemplatePaths)
fmt.Println("::endgroup::")
}
os.Exit(1)
}
for proto, tests := range protocolTests {
if protocol == "" || protocol == proto {
fmt.Printf("Running test cases for \"%s\" protocol\n", aurora.Blue(proto))
}
for file, test := range tests {
if customTest != "" && !strings.Contains(file, customTest) {
continue // only run tests user asked
}
err := test.Execute(file)
if err != nil {
fmt.Fprintf(os.Stderr, "%s Test \"%s\" failed: %s\n", failed, file, err)
os.Exit(1)
} else {
fmt.Printf("%s Test \"%s\" passed!\n", success, file)
func runTests(customTemplatePaths map[string]struct{}) map[string]struct{} {
failedTestTemplatePaths := map[string]struct{}{}
for proto, testCases := range protocolTests {
if len(customTemplatePaths) == 0 {
fmt.Printf("Running test cases for %q protocol\n", aurora.Blue(proto))
}
for templatePath, testCase := range testCases {
if len(customTemplatePaths) == 0 || contains(customTemplatePaths, templatePath) {
if err, failedTemplatePath := execute(testCase, templatePath); err != nil {
failedTestTemplatePaths[failedTemplatePath] = struct{}{}
}
}
}
}
return failedTestTemplatePaths
}
func errIncorrectResultsCount(results []string) error {
return fmt.Errorf("incorrect number of results %s", strings.Join(results, "\n\t"))
func execute(testCase testutils.TestCase, templatePath string) (error, string) {
if err := testCase.Execute(templatePath); err != nil {
_, _ = fmt.Fprintf(os.Stderr, "%s Test \"%s\" failed: %s\n", failed, templatePath, err)
return err, templatePath
}
fmt.Printf("%s Test \"%s\" passed!\n", success, templatePath)
return nil, ""
}
func expectResultsCount(results []string, expectedNumber int) error {
if len(results) != expectedNumber {
return fmt.Errorf("incorrect number of results: %d (actual) vs %d (expected) \nResults:\n\t%s\n", len(results), expectedNumber, strings.Join(results, "\n\t"))
}
return nil
}
func toSlice(value string) []string {
if strings.TrimSpace(value) == "" {
return []string{}
}
return strings.Split(value, ",")
}
func toMap(slice []string) map[string]struct{} {
result := make(map[string]struct{}, len(slice))
for _, value := range slice {
if _, ok := result[value]; !ok {
result[value] = struct{}{}
}
}
return result
}
func contains(input map[string]struct{}, value string) bool {
_, ok := input[value]
return ok
}
+171
View File
@@ -0,0 +1,171 @@
package main
import (
"fmt"
"io/ioutil"
"net/http"
"net/http/httptest"
"os"
"strings"
"github.com/julienschmidt/httprouter"
"github.com/projectdiscovery/nuclei/v2/pkg/testutils"
)
var loaderTestcases = map[string]testutils.TestCase{
"loader/template-list.yaml": &remoteTemplateList{},
"loader/workflow-list.yaml": &remoteWorkflowList{},
"loader/nonexistent-template-list.yaml": &nonExistentTemplateList{},
"loader/nonexistent-workflow-list.yaml": &nonExistentWorkflowList{},
"loader/template-list-not-allowed.yaml": &remoteTemplateListNotAllowed{},
}
type remoteTemplateList struct{}
// Execute executes a test case and returns an error if occurred
func (h *remoteTemplateList) 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")
}
})
router.GET("/template_list", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
file, err := os.ReadFile(templateList)
if err != nil {
w.WriteHeader(500)
}
_, err = w.Write(file)
if err != nil {
w.WriteHeader(500)
}
})
ts := httptest.NewServer(router)
defer ts.Close()
configFileData := `remote-template-domain: [ "` + ts.Listener.Addr().String() + `" ]`
err := ioutil.WriteFile("test-config.yaml", []byte(configFileData), os.ModePerm)
if err != nil {
return err
}
defer os.Remove("test-config.yaml")
results, err := testutils.RunNucleiBareArgsAndGetResults(debug, "-target", ts.URL, "-tu", ts.URL+"/template_list", "-config", "test-config.yaml")
if err != nil {
return err
}
return expectResultsCount(results, 2)
}
type remoteTemplateListNotAllowed struct{}
// Execute executes a test case and returns an error if occurred
func (h *remoteTemplateListNotAllowed) 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")
}
})
router.GET("/template_list", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
file, err := os.ReadFile(templateList)
if err != nil {
w.WriteHeader(500)
}
_, err = w.Write(file)
if err != nil {
w.WriteHeader(500)
}
})
ts := httptest.NewServer(router)
defer ts.Close()
_, err := testutils.RunNucleiBareArgsAndGetResults(debug, "-target", ts.URL, "-tu", ts.URL+"/template_list")
if err == nil {
return fmt.Errorf("expected error for not allowed remote template list url")
}
return nil
}
type remoteWorkflowList struct{}
// Execute executes a test case and returns an error if occurred
func (h *remoteWorkflowList) Execute(workflowList 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")
}
})
router.GET("/workflow_list", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
file, err := os.ReadFile(workflowList)
if err != nil {
w.WriteHeader(500)
}
_, err = w.Write(file)
if err != nil {
w.WriteHeader(500)
}
})
ts := httptest.NewServer(router)
defer ts.Close()
configFileData := `remote-template-domain: [ "` + ts.Listener.Addr().String() + `" ]`
err := ioutil.WriteFile("test-config.yaml", []byte(configFileData), os.ModePerm)
if err != nil {
return err
}
defer os.Remove("test-config.yaml")
results, err := testutils.RunNucleiBareArgsAndGetResults(debug, "-target", ts.URL, "-wu", ts.URL+"/workflow_list", "-config", "test-config.yaml")
if err != nil {
return err
}
return expectResultsCount(results, 3)
}
type nonExistentTemplateList struct{}
// Execute executes a test case and returns an error if occurred
func (h *nonExistentTemplateList) Execute(nonExistingTemplateList string) error {
router := httprouter.New()
ts := httptest.NewServer(router)
defer ts.Close()
_, err := testutils.RunNucleiBareArgsAndGetResults(debug, "-target", ts.URL, "-tu", ts.URL+"/404")
if err == nil {
return fmt.Errorf("expected error for nonexisting workflow url")
}
return nil
}
type nonExistentWorkflowList struct{}
// Execute executes a test case and returns an error if occurred
func (h *nonExistentWorkflowList) Execute(nonExistingWorkflowList string) error {
router := httprouter.New()
ts := httptest.NewServer(router)
defer ts.Close()
_, err := testutils.RunNucleiBareArgsAndGetResults(debug, "-target", ts.URL, "-wu", ts.URL+"/404")
if err == nil {
return fmt.Errorf("expected error for nonexisting workflow url")
}
return nil
}
+78 -17
View File
@@ -3,22 +3,26 @@ package main
import (
"net"
"github.com/projectdiscovery/nuclei/v2/internal/testutils"
"github.com/projectdiscovery/nuclei/v2/pkg/testutils"
)
var networkTestcases = map[string]testutils.TestCase{
"network/basic.yaml": &networkBasic{},
"network/hex.yaml": &networkBasic{},
"network/multi-step.yaml": &networkMultiStep{},
"network/basic.yaml": &networkBasic{},
"network/hex.yaml": &networkBasic{},
"network/multi-step.yaml": &networkMultiStep{},
"network/self-contained.yaml": &networkRequestSelContained{},
"network/variables.yaml": &networkVariables{},
}
const defaultStaticPort = 5431
type networkBasic struct{}
// Executes executes a test case and returns an error if occurred
// Execute executes a test case and returns an error if occurred
func (h *networkBasic) Execute(filePath string) error {
var routerErr error
ts := testutils.NewTCPServer(func(conn net.Conn) {
ts := testutils.NewTCPServer(nil, defaultStaticPort, func(conn net.Conn) {
defer conn.Close()
data := make([]byte, 4)
@@ -32,26 +36,24 @@ func (h *networkBasic) Execute(filePath string) error {
})
defer ts.Close()
results, err := testutils.RunNucleiAndGetResults(filePath, ts.URL, debug)
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, ts.URL, debug)
if err != nil {
return err
}
if routerErr != nil {
return routerErr
}
if len(results) != 1 {
return errIncorrectResultsCount(results)
}
return nil
return expectResultsCount(results, 1)
}
type networkMultiStep struct{}
// Executes executes a test case and returns an error if occurred
// Execute executes a test case and returns an error if occurred
func (h *networkMultiStep) Execute(filePath string) error {
var routerErr error
ts := testutils.NewTCPServer(func(conn net.Conn) {
ts := testutils.NewTCPServer(nil, defaultStaticPort, func(conn net.Conn) {
defer conn.Close()
data := make([]byte, 5)
@@ -75,15 +77,74 @@ func (h *networkMultiStep) Execute(filePath string) error {
})
defer ts.Close()
results, err := testutils.RunNucleiAndGetResults(filePath, ts.URL, debug)
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, ts.URL, debug)
if err != nil {
return err
}
if routerErr != nil {
return routerErr
}
if len(results) != 1 {
return errIncorrectResultsCount(results)
var expectedResultsSize int
if debug {
expectedResultsSize = 3
} else {
expectedResultsSize = 1
}
return nil
return expectResultsCount(results, expectedResultsSize)
}
type networkRequestSelContained struct{}
// Execute executes a test case and returns an error if occurred
func (h *networkRequestSelContained) Execute(filePath string) error {
var routerErr error
ts := testutils.NewTCPServer(nil, defaultStaticPort, func(conn net.Conn) {
defer conn.Close()
_, _ = conn.Write([]byte("Authentication successful"))
})
defer ts.Close()
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, "", debug)
if err != nil {
return err
}
if routerErr != nil {
return routerErr
}
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)
}
+99
View File
@@ -0,0 +1,99 @@
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/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(&tls.Config{}, 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 sslBasicZtls struct{}
// Execute executes a test case and returns an error if occurred
func (h *sslBasicZtls) Execute(filePath string) error {
ts := testutils.NewTCPServer(&tls.Config{}, 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, "-ztls")
if err != nil {
return err
}
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)
}
Loaded 100 of 341 files, more files were not shown because too many files have changed in this diff. Show more