Skip to content

Testing - #30

Merged
h0tak88r merged 10 commits into
masterfrom
testing
Jun 1, 2026
Merged

Testing#30
h0tak88r merged 10 commits into
masterfrom
testing

Conversation

@h0tak88r

@h0tak88r h0tak88r commented Jun 1, 2026

Copy link
Copy Markdown
Owner

No description provided.

h0tak88r and others added 10 commits May 31, 2026 08:20
Add unit tests for pure/helper functions in:
- internal/db/shared.go (marshalPhaseJSON, unmarshalPhaseJSON)
- internal/scanner/aem (NormalizeURL, ContentType, BasicAuth, RandomString)
- internal/scanner/dsieve (rootDomain, FilterTopSubdomains, FilterSubdomainsByRoots)
- internal/scanner/ffuf (LogFilter.Write)
- internal/scanner/monitorsuggest (NormalizeDomain, stripTags, extractTitle, snippetFromHTML, heuristicRank)

Also includes:
- Extract shared DB helpers to reduce postgres/sqlite duplication
- Fix various test expectations to match actual implementation behavior
- Fix case-sensitivity behavior documentation in dsieve rootDomain

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Trufflehog now requires Go >= 1.25.0, updated base image from golang:1.24-bookworm to golang:1.25-bookworm.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
DNS Module Fixes:
- Filter out summary lines from DNS results (=== headers, Scan Date, etc.)
- Add isSummaryLine() helper to prevent noise in findings table
- Clean up DNS takeover result parsing

Takeover Reference Feature:
- Add comprehensive takeover reference database (76 subdomain + 40 DNS providers)
- Parse can-i-take-over-xyz and can-i-take-over-dns tables into JSON
- Create searchable web UI with tabs for subdomain and DNS takeovers
- Add status badges (Vulnerable/Not Vulnerable/Edge Case)
- Include fingerprints, documentation links, and verification status
- Export checkTakeoverExploitability() function for validation
- Add /static/data route to serve JSON reference files
- Integrate into Security Lab with new "Takeover Reference" tab

Files Added:
- internal/api/ui/securitylab/takeover-reference.html (searchable UI)
- internal/api/ui/securitylab/takeover-reference.js (data loading/filtering)
- scripts/parse_takeover_tables.go (markdown table parser)
- web/static/data/subdomain-takeover.json (76 entries)
- web/static/data/dns-takeover.json (40 entries)

This allows users to:
1. Validate if DNS scan findings are actually exploitable
2. Search through 116+ takeover scenarios with fingerprints
3. Access up-to-date vulnerability status for services/providers
4. Get direct links to documentation and PoC instructions

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…emove all emojis

- Replace external takeover-reference.html link with full inline panel
  in securitylab/index.html (tabs, search, stats, tables).
- Move takeover reference JavaScript to takeover-reference.js and
  include it via <script src>.
- Remove all emojis across internal/api/ui/ and related files.
- Clean up leading-space artifacts from emoji removal.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Make serveStaticData search multiple base dirs (cwd, exe dir,
  macOS bundle parent) so JSON reference data loads regardless of
  where the binary is launched from.
- Remove remaining emojis from web/static/data/*.json reference files.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
The previous security check tested the absolute path against a relative
prefix, causing all valid requests to be rejected with 404. Validate the
relative path first, then stat absolute candidates.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Strip all emojis, Unicode symbols (checkmarks, bullets, arrows,
folder icons, mathematical symbols), and decorative characters from
every file in the project — Go source, JS, HTML, and Markdown READMEs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The serveStaticData handler reads from the filesystem, but the Dockerfile
never copied web/static/data/ to the runtime stage. This caused 404s for
subdomain-takeover.json and dns-takeover.json.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Strip all [WORD] text placeholders that replaced emojis. These showed
as visible text in the UI which was not intended.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The side panel that showed raw JSON when clicking a finding row
overlapped with the bottom detail panel. Removed entirely.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@h0tak88r
h0tak88r merged commit 129521a into master Jun 1, 2026
2 of 3 checks passed
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.

1 participant