Repository navigation
v1.7.0 - #2155
v1.7.0#2155
Conversation
Bumps [github.com/rs/xid](https://github.com/rs/xid) from 1.5.0 to 1.6.0. - [Release notes](https://github.com/rs/xid/releases) - [Commits](rs/xid@v1.5.0...v1.6.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]>
Bumps [github.com/go-faker/faker/v4](https://github.com/go-faker/faker) from 4.1.1 to 4.5.0. - [Release notes](https://github.com/go-faker/faker/releases) - [Commits](go-faker/faker@v4.1.1...v4.5.0) --- updated-dependencies: - dependency-name: github.com/go-faker/faker/v4 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [github.com/weppos/publicsuffix-go](https://github.com/weppos/publicsuffix-go) from 0.30.2 to 0.40.2. - [Changelog](https://github.com/weppos/publicsuffix-go/blob/main/CHANGELOG.md) - [Commits](weppos/publicsuffix-go@v0.30.2...v0.40.2) --- updated-dependencies: - dependency-name: github.com/weppos/publicsuffix-go dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
…dev/github.com/rs/xid-1.6.0
…dev/github.com/go-faker/faker/v4-4.5.0
Bumps [github.com/go-rod/rod](https://github.com/go-rod/rod) from 0.114.0 to 0.116.2. - [Release notes](https://github.com/go-rod/rod/releases) - [Commits](go-rod/rod@v0.114.0...v0.116.2) --- 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]>
…dev/github.com/weppos/publicsuffix-go-0.40.2
…dev/github.com/go-rod/rod-0.116.2
Bumps [github.com/go-viper/mapstructure/v2](https://github.com/go-viper/mapstructure) from 2.1.0 to 2.2.1. - [Release notes](https://github.com/go-viper/mapstructure/releases) - [Changelog](https://github.com/go-viper/mapstructure/blob/main/CHANGELOG.md) - [Commits](go-viper/mapstructure@v2.1.0...v2.2.1) --- updated-dependencies: - dependency-name: github.com/go-viper/mapstructure/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
…dev/github.com/go-viper/mapstructure/v2-2.2.1
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.34.0 to 0.35.0. - [Commits](golang/net@v0.34.0...v0.35.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
…dev/golang.org/x/net-0.35.0
feat(headless): add options to specific if screenshot with full page
…e_actions add gh compability check and auto merge actions
Update actions
Bumps [github.com/PuerkitoBio/goquery](https://github.com/PuerkitoBio/goquery) from 1.8.1 to 1.10.3. - [Release notes](https://github.com/PuerkitoBio/goquery/releases) - [Commits](PuerkitoBio/goquery@v1.8.1...v1.10.3) --- updated-dependencies: - dependency-name: github.com/PuerkitoBio/goquery dependency-version: 1.10.3 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
…dev/github.com/PuerkitoBio/goquery-1.10.3
Bumps the modules group with 10 updates in the / directory: | Package | From | To | | --- | --- | --- | | [github.com/projectdiscovery/cdncheck](https://github.com/projectdiscovery/cdncheck) | `1.1.0` | `1.1.10` | | [github.com/projectdiscovery/dsl](https://github.com/projectdiscovery/dsl) | `0.3.13` | `0.3.20` | | [github.com/projectdiscovery/fastdialer](https://github.com/projectdiscovery/fastdialer) | `0.3.0` | `0.3.1` | | [github.com/projectdiscovery/goflags](https://github.com/projectdiscovery/goflags) | `0.1.67` | `0.1.74` | | [github.com/projectdiscovery/networkpolicy](https://github.com/projectdiscovery/networkpolicy) | `0.1.1` | `0.1.9` | | [github.com/projectdiscovery/ratelimit](https://github.com/projectdiscovery/ratelimit) | `0.0.68` | `0.0.76` | | [github.com/projectdiscovery/rawhttp](https://github.com/projectdiscovery/rawhttp) | `0.1.84` | `0.1.90` | | [github.com/projectdiscovery/tlsx](https://github.com/projectdiscovery/tlsx) | `1.1.8` | `1.1.9` | | [github.com/projectdiscovery/useragent](https://github.com/projectdiscovery/useragent) | `0.0.87` | `0.0.96` | | [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) | `0.2.12` | `0.2.20` | Updates `github.com/projectdiscovery/cdncheck` from 1.1.0 to 1.1.10 - [Release notes](https://github.com/projectdiscovery/cdncheck/releases) - [Changelog](https://github.com/projectdiscovery/cdncheck/blob/main/.goreleaser.yaml) - [Commits](projectdiscovery/cdncheck@v1.1.0...v1.1.10) Updates `github.com/projectdiscovery/dsl` from 0.3.13 to 0.3.20 - [Release notes](https://github.com/projectdiscovery/dsl/releases) - [Commits](projectdiscovery/dsl@v0.3.13...v0.3.20) Updates `github.com/projectdiscovery/fastdialer` from 0.3.0 to 0.3.1 - [Release notes](https://github.com/projectdiscovery/fastdialer/releases) - [Commits](projectdiscovery/fastdialer@v0.3.0...v0.3.1) Updates `github.com/projectdiscovery/goflags` from 0.1.67 to 0.1.74 - [Release notes](https://github.com/projectdiscovery/goflags/releases) - [Commits](projectdiscovery/goflags@v0.1.67...v0.1.74) Updates `github.com/projectdiscovery/gologger` from 1.1.41 to 1.1.48 - [Release notes](https://github.com/projectdiscovery/gologger/releases) - [Commits](projectdiscovery/gologger@v1.1.41...v1.1.48) Updates `github.com/projectdiscovery/hmap` from 0.0.76 to 0.0.81 - [Release notes](https://github.com/projectdiscovery/hmap/releases) - [Commits](projectdiscovery/hmap@v0.0.76...v0.0.81) Updates `github.com/projectdiscovery/networkpolicy` from 0.1.1 to 0.1.9 - [Release notes](https://github.com/projectdiscovery/networkpolicy/releases) - [Commits](projectdiscovery/networkpolicy@v0.1.1...v0.1.9) Updates `github.com/projectdiscovery/ratelimit` from 0.0.68 to 0.0.76 - [Release notes](https://github.com/projectdiscovery/ratelimit/releases) - [Commits](projectdiscovery/ratelimit@v0.0.68...v0.0.76) Updates `github.com/projectdiscovery/rawhttp` from 0.1.84 to 0.1.90 - [Release notes](https://github.com/projectdiscovery/rawhttp/releases) - [Commits](projectdiscovery/rawhttp@v0.1.84...v0.1.90) Updates `github.com/projectdiscovery/retryablehttp-go` from 1.0.96 to 1.0.102 - [Release notes](https://github.com/projectdiscovery/retryablehttp-go/releases) - [Commits](projectdiscovery/retryablehttp-go@v1.0.96...v1.0.102) Updates `github.com/projectdiscovery/tlsx` from 1.1.8 to 1.1.9 - [Release notes](https://github.com/projectdiscovery/tlsx/releases) - [Changelog](https://github.com/projectdiscovery/tlsx/blob/main/.goreleaser.yml) - [Commits](projectdiscovery/tlsx@v1.1.8...v1.1.9) Updates `github.com/projectdiscovery/useragent` from 0.0.87 to 0.0.96 - [Release notes](https://github.com/projectdiscovery/useragent/releases) - [Commits](projectdiscovery/useragent@v0.0.87...v0.0.96) Updates `github.com/projectdiscovery/utils` from 0.4.8 to 0.4.14 - [Release notes](https://github.com/projectdiscovery/utils/releases) - [Changelog](https://github.com/projectdiscovery/utils/blob/main/CHANGELOG.md) - [Commits](projectdiscovery/utils@v0.4.8...v0.4.14) Updates `github.com/projectdiscovery/wappalyzergo` from 0.2.12 to 0.2.20 - [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases) - [Commits](projectdiscovery/wappalyzergo@v0.2.12...v0.2.20) --- updated-dependencies: - dependency-name: github.com/projectdiscovery/cdncheck dependency-type: direct:production update-type: version-update:semver-patch dependency-group: modules - dependency-name: github.com/projectdiscovery/dsl dependency-type: direct:production update-type: version-update:semver-patch dependency-group: modules - dependency-name: github.com/projectdiscovery/fastdialer dependency-type: direct:production update-type: version-update:semver-patch dependency-group: modules - dependency-name: github.com/projectdiscovery/goflags dependency-type: direct:production update-type: version-update:semver-patch dependency-group: modules - dependency-name: github.com/projectdiscovery/gologger dependency-type: direct:production update-type: version-update:semver-patch dependency-group: modules - dependency-name: github.com/projectdiscovery/hmap dependency-type: direct:production update-type: version-update:semver-patch dependency-group: modules - dependency-name: github.com/projectdiscovery/networkpolicy dependency-type: direct:production update-type: version-update:semver-patch dependency-group: modules - dependency-name: github.com/projectdiscovery/ratelimit dependency-type: direct:production update-type: version-update:semver-patch dependency-group: modules - dependency-name: github.com/projectdiscovery/rawhttp dependency-type: direct:production update-type: version-update:semver-patch dependency-group: modules - dependency-name: github.com/projectdiscovery/retryablehttp-go dependency-type: direct:production update-type: version-update:semver-patch dependency-group: modules - dependency-name: github.com/projectdiscovery/tlsx dependency-type: direct:production update-type: version-update:semver-patch dependency-group: modules - dependency-name: github.com/projectdiscovery/useragent dependency-type: direct:production update-type: version-update:semver-patch dependency-group: modules - dependency-name: github.com/projectdiscovery/utils dependency-type: direct:production update-type: version-update:semver-patch dependency-group: modules - dependency-name: github.com/projectdiscovery/wappalyzergo dependency-type: direct:production update-type: version-update:semver-patch dependency-group: modules ... Signed-off-by: dependabot[bot] <[email protected]>
…dev/modules-ea717ea1c5
Ignore the empty interface when calling the fake data generator
Bumps the modules group with 7 updates: | Package | From | To | | --- | --- | --- | | [github.com/projectdiscovery/cdncheck](https://github.com/projectdiscovery/cdncheck) | `1.1.14` | `1.1.15` | | [github.com/projectdiscovery/dsl](https://github.com/projectdiscovery/dsl) | `0.4.0` | `0.4.1` | | [github.com/projectdiscovery/gologger](https://github.com/projectdiscovery/gologger) | `1.1.52` | `1.1.53` | | [github.com/projectdiscovery/hmap](https://github.com/projectdiscovery/hmap) | `0.0.81` | `0.0.87` | | [github.com/projectdiscovery/retryablehttp-go](https://github.com/projectdiscovery/retryablehttp-go) | `1.0.102` | `1.0.109` | | [github.com/projectdiscovery/utils](https://github.com/projectdiscovery/utils) | `0.4.17` | `0.4.18` | | [github.com/projectdiscovery/wappalyzergo](https://github.com/projectdiscovery/wappalyzergo) | `0.2.24` | `0.2.25` | Updates `github.com/projectdiscovery/cdncheck` from 1.1.14 to 1.1.15 - [Release notes](https://github.com/projectdiscovery/cdncheck/releases) - [Changelog](https://github.com/projectdiscovery/cdncheck/blob/main/.goreleaser.yaml) - [Commits](projectdiscovery/cdncheck@v1.1.14...v1.1.15) Updates `github.com/projectdiscovery/dsl` from 0.4.0 to 0.4.1 - [Release notes](https://github.com/projectdiscovery/dsl/releases) - [Commits](projectdiscovery/dsl@v0.4.0...v0.4.1) Updates `github.com/projectdiscovery/gologger` from 1.1.52 to 1.1.53 - [Release notes](https://github.com/projectdiscovery/gologger/releases) - [Commits](projectdiscovery/gologger@v1.1.52...v1.1.53) Updates `github.com/projectdiscovery/hmap` from 0.0.81 to 0.0.87 - [Release notes](https://github.com/projectdiscovery/hmap/releases) - [Commits](projectdiscovery/hmap@v0.0.81...v0.0.87) Updates `github.com/projectdiscovery/retryablehttp-go` from 1.0.102 to 1.0.109 - [Release notes](https://github.com/projectdiscovery/retryablehttp-go/releases) - [Commits](projectdiscovery/retryablehttp-go@v1.0.102...v1.0.109) Updates `github.com/projectdiscovery/utils` from 0.4.17 to 0.4.18 - [Release notes](https://github.com/projectdiscovery/utils/releases) - [Changelog](https://github.com/projectdiscovery/utils/blob/main/CHANGELOG.md) - [Commits](projectdiscovery/utils@v0.4.17...v0.4.18) Updates `github.com/projectdiscovery/wappalyzergo` from 0.2.24 to 0.2.25 - [Release notes](https://github.com/projectdiscovery/wappalyzergo/releases) - [Commits](projectdiscovery/wappalyzergo@v0.2.24...v0.2.25) --- updated-dependencies: - dependency-name: github.com/projectdiscovery/cdncheck dependency-version: 1.1.15 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: modules - dependency-name: github.com/projectdiscovery/dsl dependency-version: 0.4.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: modules - dependency-name: github.com/projectdiscovery/gologger dependency-version: 1.1.53 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: modules - dependency-name: github.com/projectdiscovery/hmap dependency-version: 0.0.87 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: modules - dependency-name: github.com/projectdiscovery/retryablehttp-go dependency-version: 1.0.109 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: modules - dependency-name: github.com/projectdiscovery/utils dependency-version: 0.4.18 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: modules - dependency-name: github.com/projectdiscovery/wappalyzergo dependency-version: 0.2.25 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: modules ... Signed-off-by: dependabot[bot] <[email protected]>
…dev/modules-f062159119
WalkthroughThis update prepares the project for the v1.7.0 release. It upgrades the Go toolchain and multiple dependencies, updates the version constant, and introduces a new command-line flag Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CLI
participant OptionsParser
participant Runner
participant Browser
User->>CLI: Run with --no-screenshot-full-page flag
CLI->>OptionsParser: ParseOptions()
OptionsParser->>Runner: Initialize with NoScreenshotFullPage
Runner->>Browser: ScreenshotWithBody(url, ..., fullPage=IsScreenshotFullPage())
Browser-->>Runner: Screenshot (full page or viewport)
Assessment against linked issues
Poem
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (5)
README.md (1)
132-132: Suggest expanding flag description
The new-no-screenshot-full-pageflag is documented properly. Consider adding a brief note on its default behavior (i.e., what happens when the flag is unset) to make the entry more self-contained.runner/runner_test.go (4)
34-34: Fixed typo in error message.Corrected "could not exepcted output" to "could not expected output" in the test error message.
While the typo has been corrected, there's still a grammatical error. Consider further improvement:
-require.ElementsMatch(t, expected, got, "could not expected output") +require.ElementsMatch(t, expected, got, "could not get expected output")
65-65: Fixed typo in error message.Corrected "could not exepcted output" to "could not expected output" in the test error message.
Same grammatical issue as previous comment:
-require.ElementsMatch(t, expected, got, "could not expected output") +require.ElementsMatch(t, expected, got, "could not get expected output")
90-90: Fixed typo in error message.Corrected "could not exepcted output" to "could not expected output" in the test error message.
Same grammatical issue as previous comments:
-require.ElementsMatch(t, expected, got, "could not expected output") +require.ElementsMatch(t, expected, got, "could not get expected output")
182-182: Fixed typo in error message.Corrected "could not exepcted output" to "could not expected output" in the test error message.
Same grammatical issue as previous comments:
-require.ElementsMatch(t, expected, got, "could not expected output") +require.ElementsMatch(t, expected, got, "could not get expected output")
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (4)
.github/workflows/build-test.ymlis excluded by!**/*.yml.github/workflows/compatibility-checks.yamlis excluded by!**/*.yaml.github/workflows/lint-test.ymlis excluded by!**/*.ymlgo.sumis excluded by!**/*.sum
📒 Files selected for processing (17)
.gitignore(1 hunks)README.md(1 hunks)common/customheader/doc.go(1 hunks)common/customlist/doc.go(1 hunks)common/customports/doc.go(1 hunks)common/fileutil/doc.go(1 hunks)common/hashes/jarm/onetimepool.go(1 hunks)common/httputilz/doc.go(1 hunks)common/httpx/doc.go(1 hunks)common/httpx/domains_test.go(1 hunks)go.mod(6 hunks)runner/banner.go(1 hunks)runner/headless.go(2 hunks)runner/options.go(4 hunks)runner/runner.go(3 hunks)runner/runner_test.go(4 hunks)runner/types.go(1 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
common/httpx/domains_test.go (1)
common/httpx/response.go (1)
Response(12-30)
🔇 Additional comments (26)
common/customheader/doc.go (1)
1-1: Typo fix in package documentation
Corrected the spelling from “funcionality” to “functionality” for clarity.common/httpx/doc.go (1)
1-1: Typo fix in package documentation
Corrected the spelling from “funcionality” to “functionality” for clarity.common/fileutil/doc.go (1)
1-1: Typo fix in package documentation
Corrected the spelling from “funcionality” to “functionality” for clarity.common/customlist/doc.go (1)
1-1: Typo fix in package documentation
Corrected the spelling from “funcionality” to “functionality” for clarity.common/httputilz/doc.go (1)
1-1: Typo fix in package documentation
Corrected the spelling from “funcionality” to “functionality” for clarity.common/customports/doc.go (1)
1-1: Typo fix in package documentation
Corrected “funcionality” to “functionality” in the package comment.common/hashes/jarm/onetimepool.go (1)
12-12: Typo fix in comment
Replaced “continous” with “continuous” to accurately describe the connection behavior..gitignore (1)
15-16: Approve: Ignoring resume and vendor directories
Adding/resume.cfgandvendor/to.gitignoreprevents local resume files and vendored dependencies from being accidentally committed, aligning with the updated dependency management strategy.common/httpx/domains_test.go (1)
17-20: Approve typo fix and variable rename
The variableresposnehas been correctly renamed toresponse, which fixes the typo and avoids potential undefined variable errors.go.mod (5)
3-6: Approve Go version and toolchain bump
Updatedgodirective to 1.23.0 and addedtoolchain go1.24.1for consistent builds on CI/CD and developer machines.
9-14: Approve direct dependency upgrades
Bumpedgoqueryto v1.10.3,faker/v4to v4.5.0, androdto v0.116.2. These contain bug fixes and performance improvements for HTML parsing and headless browser automation.Please run integration tests for HTML parsing and headless screenshot features to ensure API compatibility.
22-43: Approve projectdiscovery module bumps
Multipleprojectdiscoverymodules have been upgraded, aligning with the broader dependency refresh. Verify that no interface changes impact your existing code.Run
go mod tidyand the full test suite to catch any subtle import or interface changes.
49-52: Approve standard library extras update
Upgradedgolang.org/x/exp,x/net,x/sys, andx/textto their latest versions, which may include new features and important bug fixes.
56-58: Approve secondary module additions
Addedmapstructure/v2for structured config decoding andpublicsuffix-gofor accurate domain parsing. Both are well-suited for the project's configuration and domain extraction needs.runner/banner.go (1)
19-19: Approve version bump in banner
TheVersionconstant has been updated tov1.7.0to reflect the new release.runner/types.go (1)
127-127: Improved fake data generation by ignoring interface fields.Added
options.WithIgnoreInterface(true)to the faker options to exclude interface fields from the generated fake data.This enhancement prevents potential issues with interface fields during fake data generation for DSL variables.
runner/headless.go (2)
102-102: Added fullPage parameter to screenshot method.Added a boolean parameter to control full-page vs. viewport-only screenshots.
This change enables more flexible screenshot behavior, working in conjunction with the
--no-screenshot-full-pagecommand-line flag added in other files.
131-131: Use the fullPage parameter in screenshot call.Updated the screenshot call to pass the fullPage parameter instead of always taking a full-page screenshot.
This implementation properly honors the fullPage parameter defined in the method signature.
runner/runner.go (3)
299-299: Added NoScreenshotFullPage option to scan options.Propagated the new option from command-line options to scan options.
This change ensures the screenshot behavior setting flows through the application's option structures.
1479-1480: Fixed comment typo.Clarified the comment with proper spelling of "wildcard".
2191-2191:Details
✅ Verification successful
Use IsScreenshotFullPage() when taking screenshots.
Updated the screenshot call to respect the user's full-page screenshot preference.
This completes the implementation of the new feature, connecting the command-line flag to the actual browser screenshot behavior.
🏁 Script executed:
#!/bin/bash # Check if the IsScreenshotFullPage method is defined in the ScanOptions struct cd runner grep -r "IsScreenshotFullPage" --include="*.go" .Length of output: 326
Feature Implementation Verified: Full-Page Screenshot Preference Applied
The
IsScreenshotFullPage()method is defined inoptions.goand is correctly passed toScreenshotWithBodyinrunner.go, ensuring the user’s full-page screenshot setting is respected.runner/options.go (5)
107-107: Well-placed field addition for screenshot control.The new field
NoScreenshotFullPageis appropriately added to theScanOptionsstruct alongside other screenshot-related fields, maintaining good structural organization.
112-114: Good implementation of accessor method with logical inversion.The
IsScreenshotFullPage()method correctly returns the inverse ofNoScreenshotFullPage, providing a positive-form accessor that aligns with how the feature would be queried in code. This maintains semantic clarity despite the negative form of the stored field.
166-166: Properly updated Clone method to include the new field.The
Clone()method is correctly updated to copy the newNoScreenshotFullPagefield, ensuring that cloned options maintain all settings from the original object.
324-324: Field correctly added to Options struct.The
NoScreenshotFullPagefield is appropriately added to theOptionsstruct, which will store the parsed command-line flag value.
398-398: Clear and well-placed CLI flag definition.The new flag
--no-screenshot-full-pageis correctly added to the "headless" option group with descriptive help text. The flag follows the established pattern of using boolean flags with negative naming for disabling features.
Closes #2154
Summary by CodeRabbit
New Features
Bug Fixes
Chores
Documentation