Skip to content

Identify and add asset discovery tools#37

Open
Bandit-HaxUnit wants to merge 6 commits intomasterfrom
cursor/identify-and-add-asset-discovery-tools-d337
Open

Identify and add asset discovery tools#37
Bandit-HaxUnit wants to merge 6 commits intomasterfrom
cursor/identify-and-add-asset-discovery-tools-d337

Conversation

@Bandit-HaxUnit
Copy link
Copy Markdown
Owner

Add gowitness for visual reconnaissance to enhance asset discovery.

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Bug: Browser Path and Database Location Issues

The gowitness command hardcodes the Chrome browser path to /usr/bin/google-chrome, which can prevent visual reconnaissance from working on systems where Chrome is installed elsewhere or not at all, despite gowitness being able to auto-detect browser paths. Additionally, the gowitness report export command assumes the gowitness.sqlite3 database is located within the screenshots directory, but the gowitness capture command does not explicitly specify the database output path, potentially leading to report generation failures.

main.py#L1180-L1194

haxunit/main.py

Lines 1180 to 1194 in 496cc3f

f"--screenshot-format png "
f"--chrome-path /usr/bin/google-chrome "
f"--user-agent 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'"
)
self.cmd(gowitness_cmd)
# Generate gowitness report
report_cmd = (
f"gowitness report export "
f"-f {screenshots_dir}/gowitness.sqlite3 "
f"--format csv "
f"> {self.dir_path}/gowitness_report.csv"
)
self.cmd(report_cmd)

Fix in CursorFix in Web


BugBot free trial expires on July 24, 2025
Learn more in the Cursor dashboard.

Was this report helpful? Give feedback by reacting with 👍 or 👎

@x-stp
Copy link
Copy Markdown
Contributor

x-stp commented Jul 17, 2025

check license compat; may need a reference @cursoragent look into it

@Bandit-HaxUnit
Copy link
Copy Markdown
Owner Author

Thanks for the note, since HaxUnit only calls gowitness as an external CLI tool without linking or bundling its code, GPLv3 compatibility isn’t a concern.

Copy link
Copy Markdown
Contributor

@x-stp x-stp left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants