Skip to content

Add sleep/jitter stealth support across all osintscan tools#128

Open
apurvagoenka-method wants to merge 3 commits intodevelopfrom
add-sleep-jitter-stealth
Open

Add sleep/jitter stealth support across all osintscan tools#128
apurvagoenka-method wants to merge 3 commits intodevelopfrom
add-sleep-jitter-stealth

Conversation

@apurvagoenka-method
Copy link
Copy Markdown
Contributor

@apurvagoenka-method apurvagoenka-method commented Apr 1, 2026

Summary

  • Adds --sleep (base delay in seconds) and --jitter (0-100% randomization) flags to all osintscan tools that make external network/API calls
  • Creates utils/stealth.go with CalculateDelayWithJitter and CalculateStealthDelay functions, matching the networkscan stealth pattern
  • Updates Fern type definitions to include sleep and jitter fields in all config structs
  • Wires stealth delays into internal implementations for pentest takeover, zone transfer enumeration, and active subdomain bruteforcing

Tools updated

  • discover asn — BGPView API calls
  • discover dns certs — crt.sh TLS cert lookups
  • discover dns records — DNS queries
  • discover dns forward — DNS forward lookups
  • discover dns reverse — DNS reverse lookups
  • discover dns subdomain active — Active DNS brute-forcing (jitter added alongside existing ms-based sleep)
  • discover dns subdomain passive — Passive enumeration (alongside existing --requests-per-second)
  • discover dns subdomain correlation — DNS correlation queries
  • discover cdn — CDN IP range checks
  • discover ip domain-asn — Cymru DNS + BGPView API
  • enumerate dns zone-transfer — DNS AXFR attempts
  • pentest dns takeover — HTTP takeover checks

Stealth behavior

  • --sleep 0 (default): no delay, existing behavior preserved
  • --sleep N: N-second delay between iterations in tools with loops
  • --jitter M: +/- M% random variance on the sleep delay
  • Validation: --jitter requires --sleep > 0, must be 0-100

Test plan

  • ./godelw verify passes (lint, format, build, tests)
  • --help output confirms --sleep and --jitter flags on all affected commands
  • Manual: discover asn --asn AS23028 --sleep 2 --jitter 50 to confirm inter-request delays
  • Manual: pentest dns takeover --targets example.com --sleep 1 --jitter 25 to confirm per-target delays

🤖 Generated with Claude Code


Note

Medium Risk
Touches many CLI entrypoints and Fern-generated config schemas, and introduces new inter-request delays that can change runtime behavior and performance (including unit/timeout interactions). Validation/optional handling reduces risk, but the breadth of wiring makes regressions possible.

Overview
Adds a shared stealth throttling capability across networked commands via new --sleep and --jitter CLI flags, with centralized parsing/validation in cmd/stealth.go.

Propagates sleep/jitter through Fern config types and command config builders for discover/enumerate/pentest, and applies the resulting delays in looped operations (DNS active subdomain brute force, DNS zone transfer enumeration, and DNS takeover checks) using new helpers in utils/stealth.go.

Written by Cursor Bugbot for commit a6924e1. This will update automatically on new commits. Configure here.

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.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment thread internal/discover/dns/subdomain/active.go Outdated
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