Repository navigation
fix(evilginx): force autocert off for local dry-runs - #23
Merged
Merged
Conversation
Local dry-runs target a fake TLD (*.phishkit), which Let's Encrypt cannot issue certificates for. With autocert enabled, evilginx aborts TLS setup on the rejected order and never binds the HTTPS port, which surfaced as a misleading "did not bind HTTPS port in time" error. Explicitly disable autocert in the dry-run config so evilginx uses its self-signed CA and binds the configured port immediately.
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.
Problem
Local dry-runs failed to launch evilginx, surfacing as:
The message is misleading: it was never a port or privilege issue. Dry-runs target a fake TLD (e.g.
*.phishkit). The config carriedautocert: true, so on every launch evilginx tried to obtain a real Let's Encrypt certificate for the fake domain. Let's Encrypt rejects it:evilginx aborts TLS setup on the rejected order and never binds the HTTPS listener, producing the "did not bind" timeout.
Fix
Explicitly set
general.autocert = falsein the dry-run config written byconfigure_lure.py. evilginx then uses its self-signed CA and binds the configured port immediately. Verified locally: evilginx binds*:8443 (LISTEN)when launched the same way the app does (screen session) with autocert off.Scope
One line (plus explanatory comment) in
kit/evilginx/scripts/configure_lure.py. No behavior change for production/public-TLD setups, which don't use this dry-run config path.