diff --git a/dnstwist.py b/dnstwist.py index 4d430a4a..5f5e49aa 100755 --- a/dnstwist.py +++ b/dnstwist.py @@ -678,12 +678,12 @@ def _homoglyph(self): md = lambda a, b: {k: set(a.get(k, [])) | set(b.get(k, [])) for k in set(a.keys()) | set(b.keys())} glyphs = md(self.glyphs_ascii, self.glyphs_idn_by_tld.get(self.tld, self.glyphs_unicode)) def mix(domain): - for w in range(1, len(domain)): + for w in (1, 2): for i in range(len(domain)-w+1): pre = domain[:i] win = domain[i:i+w] suf = domain[i+w:] - for c in (set(win) | {win[:2]}): + for c in (set(win) | {win}): for g in glyphs.get(c, []): yield pre + win.replace(c, g) + suf result1 = set(mix(self.domain))