Skip to content

fix(evilginx): force autocert off for local dry-runs - #23

Merged
adamsiwiec1 merged 1 commit into
mainfrom
fix/local-dryrun-disable-autocert
Oct 24, 2026
Merged

adamsiwiec1 merged 1 commit into
mainfrom
fix/local-dryrun-disable-autocert

Conversation

@adamsiwiec1

Copy link
Copy Markdown
Contributor

Problem

Local dry-runs failed to launch evilginx, surfacing as:

evilginx did not bind HTTPS port 8443 in time — check evilginx.log (port in use or needs elevated privileges).

The message is misleading: it was never a port or privilege issue. Dry-runs target a fake TLD (e.g. *.phishkit). The config carried autocert: true, so on every launch evilginx tried to obtain a real Let's Encrypt certificate for the fake domain. Let's Encrypt rejects it:

HTTP 400 rejectedIdentifier — Cannot issue for "portal.freetech.phishkit": Domain name does not end with a valid public suffix (TLD)

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 = false in the dry-run config written by configure_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.

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.
@adamsiwiec1
adamsiwiec1 merged commit beacb87 into main Oct 24, 2026
5 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