kgretzky / evilginx2

Standalone man-in-the-middle attack framework used for phishing login credentials along with session cookies, allowing for the bypass of 2-factor authentication
BSD 3-Clause "New" or "Revised" License
10.23k stars 1.87k forks source link

Multi Level Subdomain #994

Open philross88 opened 6 months ago

philross88 commented 6 months ago

I ran into an issue where MFA is being performed but using multi level subdomain. For e.g. sub1.sub2.example.tld

In this case, evilginx the DNS works fine, however, i get an error message in the debug mode that hostname unsupported: sub1.sub2.example.tld

DNS can handle as I point all cnames to an alias which points to Evilginx however, it appears that Evilginx is unable to handle multi-level subdomains.

Patch for this would be great.