feat: lockout protection with auto-delay from AD password policy#4
Open
alvinhayy wants to merge 1 commit into
Open
feat: lockout protection with auto-delay from AD password policy#4alvinhayy wants to merge 1 commit into
alvinhayy wants to merge 1 commit into
Conversation
- Add --dc flag to query AD password policy (--pass-pol) and automatically calculate safe spray interval based on lockout threshold and observation window (+10% safety buffer, 15% jitter) - Add --delay and --jitter flags for manual override - Detect STATUS_ACCOUNT_LOCKED_OUT in real-time and abort spray - Replace getopts with manual flag parsing to support --long flags Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--dc IPflag to automatically query AD password policy via--pass-poland calculate a safe spray interval based on lockout threshold and observation window (with +10% safety buffer and 15% jitter)--delay Nand--jitter Nflags for manual override (takes precedence over--dcauto values)STATUS_ACCOUNT_LOCKED_OUTin real-time during spray and immediately abort all further attemptsgetoptswith manual flag parsing to support--longstyle flagsHow it works
Example with threshold=5, window=30min:
Usage
Test plan
--dccorrectly parses threshold and observation window from--pass-poloutput--delay/--jittermanual flags override auto values🤖 Generated with Claude Code