Skip to content

v1.7.0 - #2155

Merged
dogancanbakir merged 34 commits into
mainfrom
dev
Apr 24, 2025
Merged

v1.7.0#2155
dogancanbakir merged 34 commits into
mainfrom
dev

Conversation

@dogancanbakir

@dogancanbakir dogancanbakir commented Apr 22, 2025 •

Copy link
Copy Markdown
Member

Closes #2154

Summary by CodeRabbit

  • New Features

    • Added a new command-line flag to disable saving full-page screenshots when using the headless browser feature.
  • Bug Fixes

    • Corrected various typos in documentation comments and test error messages.
  • Chores

    • Updated dependencies and Go toolchain version.
    • Improved fake data generation for testing by excluding interface fields.
  • Documentation

    • Updated usage documentation to reflect the new screenshot flag.

dependabot Bot and others added 30 commits January 27, 2025 13:05
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]>
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
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]>
Found via `codespell -L ines,te,ue,occured,ans`
feat(headless): add options to specific if screenshot with full page
…e_actions

add gh compability check and auto merge 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]>
Ignore the empty interface when calling the fake data generator
dependabot Bot added 2 commits April 21, 2025 11:24
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]>
@dogancanbakir dogancanbakir self-assigned this Apr 22, 2025
@coderabbitai

coderabbitai Bot commented Apr 22, 2025 •

Copy link
Copy Markdown

Walkthrough

This 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 --no-screenshot-full-page to control full-page screenshot behavior in headless browser mode. Associated structs and methods are updated to support this flag, including changes to screenshot logic and option parsing. Several documentation and comment typos are corrected across multiple files, and the .gitignore is updated to exclude the vendor/ directory. Minor test string corrections and improved fake data generation logic are also included.

Changes

Files / Paths Change Summary
.gitignore Added vendor/ to ignored paths; preserved existing entries.
README.md Documented new -no-screenshot-full-page flag in usage section.
go.mod Upgraded Go version and multiple dependencies.
runner/banner.go Updated version constant from v1.6.10 to v1.7.0.
runner/options.go, runner/runner.go, runner/headless.go Added NoScreenshotFullPage option, parsing, struct fields, and logic for full-page screenshot flag.
runner/runner_test.go Fixed typo in error message strings in several test functions.
runner/types.go Added option to ignore interface fields in fake data generation for Result struct.
common/customheader/doc.go, common/customlist/doc.go, common/customports/doc.go, Fixed typo: "funcionality" → "functionality" in package documentation comments.
common/fileutil/doc.go, common/httputilz/doc.go, common/httpx/doc.go Fixed typo: "funcionality" → "functionality" in package documentation comments.
common/hashes/jarm/onetimepool.go Fixed typo in comment: "continous" → "continuous".
common/httpx/domains_test.go Fixed variable name typo: resposne → response in test.

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)
Loading

Assessment against linked issues

Objective Addressed Explanation
Release v1.7.0 (#2154): Update version, dependencies, and add new features/flags as described ✅

Poem

A rabbit hops with joy and cheer,
For v1.7.0 is finally here!
With screenshots trimmed or full-page wide,
And typos fixed with gentle pride.
Dependencies fresh, the code is neat—
This release is truly a treat!
🐇✨

✨ Finishing Touches
  • 📝 Generate Docstrings

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (5)
README.md (1)

132-132: Suggest expanding flag description
The new -no-screenshot-full-page flag 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

📥 Commits

Reviewing files that changed from the base of the PR and between a10bd2d and 8d6e669.

⛔ Files ignored due to path filters (4)
  • .github/workflows/build-test.yml is excluded by !**/*.yml
  • .github/workflows/compatibility-checks.yaml is excluded by !**/*.yaml
  • .github/workflows/lint-test.yml is excluded by !**/*.yml
  • go.sum is 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.cfg and vendor/ to .gitignore prevents 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 variable resposne has been correctly renamed to response, which fixes the typo and avoids potential undefined variable errors.

go.mod (5)

3-6: Approve Go version and toolchain bump
Updated go directive to 1.23.0 and added toolchain go1.24.1 for consistent builds on CI/CD and developer machines.


9-14: Approve direct dependency upgrades
Bumped goquery to v1.10.3, faker/v4 to v4.5.0, and rod to 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
Multiple projectdiscovery modules have been upgraded, aligning with the broader dependency refresh. Verify that no interface changes impact your existing code.

Run go mod tidy and the full test suite to catch any subtle import or interface changes.


49-52: Approve standard library extras update
Upgraded golang.org/x/exp, x/net, x/sys, and x/text to their latest versions, which may include new features and important bug fixes.


56-58: Approve secondary module additions
Added mapstructure/v2 for structured config decoding and publicsuffix-go for 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
The Version constant has been updated to v1.7.0 to 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-page command-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 in options.go and is correctly passed to ScreenshotWithBody in runner.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 NoScreenshotFullPage is appropriately added to the ScanOptions struct 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 of NoScreenshotFullPage, 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 new NoScreenshotFullPage field, ensuring that cloned options maintain all settings from the original object.


324-324: Field correctly added to Options struct.

The NoScreenshotFullPage field is appropriately added to the Options struct, which will store the parsed command-line flag value.


398-398: Clear and well-placed CLI flag definition.

The new flag --no-screenshot-full-page is 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.

@dogancanbakir
dogancanbakir requested a review from ehsandeep April 22, 2025 13:01
@dogancanbakir
dogancanbakir merged commit bb3154f into main Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

release v1.7.0

7 participants