From d67fb5c230abf003cb16bde1476f8c189dcc2e0d Mon Sep 17 00:00:00 2001 From: Kirill Zhdanov Date: Sun, 28 Jan 2024 20:07:05 +0700 Subject: [PATCH] fix: #3; move `deque` to list; remove unused emunerate https://github.com/storenth/pnk/issues/3 --- src/pnk/core.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/pnk/core.py b/src/pnk/core.py index 2d1441c..2a59c91 100755 --- a/src/pnk/core.py +++ b/src/pnk/core.py @@ -26,7 +26,7 @@ def parse_hostname(self, hostname): log.debug(f"{host=}") if host: _domain = re.search( - r"[\w-]+[.](com|co.uk|ru|org|co|in|ai|sh|io|jp|com.cn|cn|cz|de|net|fr|it|au|ca|ir|br|com.br|co.kr|gov|uk|kz|tech|shop|moscow|store|me)$", + r"[\w-]+[.](рф|com|co.uk|ru|org|co|in|ai|sh|io|jp|com.cn|cn|cz|de|net|fr|it|au|ca|ir|br|com.br|co.kr|gov|uk|kz|tech|shop|moscow|store|me)$", host, ) log.debug(f"{_domain=}") @@ -110,10 +110,10 @@ def run(self): print(".".join(_s) + "." + d) _s[index] = j if self.args.cartesian: - _deque = deque() + _deque = [] subs_list = [] pattern = re.compile('((?