Sajad
e7591ec8b3
use request numbering as per template definition in req-condition ( #2135 )
...
* use original request number instead of current iteration in request-condition
* add previousEvent tracking back for request condition
Co-authored-by: sandeep <sandeep@projectdiscovery.io>
2022-06-11 14:29:05 +05:30
tanimdiucse123
e575f53be7
Empty string test can be improved ( #2115 )
...
It is not recommended to use len for empty string test.
A string can be tested for its emptiness either by treating it as a slice and calculating the length of the slice, or by treating it as a string and directly comparing the value. While both produce identical code when compiled, it makes more sense to treat a string as itself, than a slice, for the sake of comparison of values.
Examples
Bad practice
len(s) == 0
Recommended
s == ""
The recommended practice is considered more idiomatic in Go.
Co-authored-by: Sandeep Singh <sandeep@projectdiscovery.io>
2022-06-11 14:11:43 +05:30
Sami
01c0336872
truncated custom header workaround ( #2133 )
...
* truncated custom header workaround
* Revert "truncated custom header workaround"
This reverts commit e6abc4ee482186566307fe6b9045748d0060cc8b.
* go mod update
Co-authored-by: sandeep <sandeep@projectdiscovery.io>
2022-06-10 21:23:13 +05:30
Sandeep Singh
e7f8166c3e
Merge pull request #2145 from projectdiscovery/it_dsl_helper
...
DSL helper integration test cases
2022-06-10 20:55:02 +05:30
forgedhallpass
cadba90a5a
test: extended the DSL helper integration test cases
2022-06-10 15:58:54 +03:00
Sandeep Singh
5281d342c0
Merge pull request #2138 from mikerott/dev
...
protect against multiple unnecessary Init calls
2022-06-10 18:12:31 +05:30
Sandeep Singh
3a1d811441
Merge pull request #2139 from projectdiscovery/dependabot/go_modules/v2/dev/github.com/aws/aws-sdk-go-1.44.31
...
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.27 to 1.44.31 in /v2
2022-06-10 16:19:54 +05:30
forgedhallpass
179cf908a8
Revert "test: extended the DSL helper integration test cases"
...
This reverts commit ea0b6eae64
.
2022-06-10 13:48:34 +03:00
forgedhallpass
ea0b6eae64
test: extended the DSL helper integration test cases
2022-06-10 13:33:16 +03:00
Sandeep Singh
48c95161e3
Merge pull request #2055 from projectdiscovery/new_dsl_functions
...
DSL function changes
2022-06-10 14:33:54 +05:30
dependabot[bot]
c0fb2e876e
chore(deps): bump github.com/aws/aws-sdk-go in /v2
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.44.27 to 1.44.31.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.27...v1.44.31 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-10 05:20:23 +00:00
Mike Rheinheimer
22a8d72c65
protect against multiple unnecessary Init calls
2022-06-09 17:18:49 -05:00
Mzack9999
05ab327697
Improving fastdialer error message via version bump ( #2137 )
2022-06-09 20:25:00 +05:30
forgedhallpass
9fd9892f49
test: extra DSL function test cases
2022-06-08 20:58:46 +03:00
forgedhallpass
04e7e053de
refactor: replace date, time, time_format, time_to_string DSL functions to date_time
2022-06-08 20:41:32 +03:00
forgedhallpass
ef20e0711b
refactor: replace date, time, time_format, time_to_string DSL functions to date_time
2022-06-08 20:33:55 +03:00
forgedhallpass
a10d58c6d2
refactor: rename concat_ws DSL function to join
2022-06-08 16:31:33 +03:00
forgedhallpass
145bdaabe5
refactor: extract duplicated hashing logic
2022-06-08 16:11:15 +03:00
forgedhallpass
6d8908c352
refactor: replace hmac_sha1 and hmac_sha256 DSL functions with hmac
2022-06-08 16:00:14 +03:00
Sandeep Singh
a18935e58c
Merge pull request #2130 from projectdiscovery/dev
...
v2.7.2 Release
2022-06-08 01:04:50 +05:30
sandeep
f0eed66478
help menu update
2022-06-07 22:30:20 +05:30
Ice3man
55aa62d0f2
Fixed non-working example due to loader interface change
2022-06-07 21:23:43 +05:30
James Turner
9d37bd6c0c
Add two new DSL helper functions
...
hmac_sha1 and concat_ws (with seperator) this are helpful in
signing API requests.
2022-06-07 18:26:22 +03:00
forgedhallpass
f3514e9b92
Merge branch 'dev' into new_dsl_functions
2022-06-07 17:26:10 +03:00
Sajad
7170cc2828
dsl matcher separate ignorable(No parameter) errors from others ( #2127 )
2022-06-07 18:23:07 +05:30
dependabot[bot]
ba74441970
chore(deps): bump github.com/projectdiscovery/wappalyzergo in /v2 ( #2113 )
...
Bumps [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo ) from 0.0.44 to 0.0.45.
- [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases )
- [Commits](https://github.com/projectdiscovery/wappalyzergo/compare/v0.0.44...v0.0.45 )
---
updated-dependencies:
- dependency-name: github.com/projectdiscovery/wappalyzergo
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
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] <support@github.com>
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] <support@github.com>
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] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-03 02:52:00 +05:30
M4rtin Hsu
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 <sandeep@projectdiscovery.io>
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] <support@github.com>
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] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-02 21:05:23 +05:30
Ice3man
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 <marco.rivoli.nvh@gmail.com>
Co-authored-by: sandeep <sandeep@projectdiscovery.io>
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] <support@github.com>
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] <support@github.com>
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] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-30 14:58:59 +05:30
Ice3man
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 <sandeep@projectdiscovery.io>
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] <support@github.com>
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] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-27 21:43:00 +05:30