From e97f3a1f7208dbadd98a35aed5da87c79ef9d03f Mon Sep 17 00:00:00 2001 From: Krypton Date: Thu, 12 Oct 2023 13:30:36 +0200 Subject: [PATCH] fix: Remove comment in TLD file (#18) --- tools/make_tld_list.py | 4 +++- wordlists/discovery/tlds.txt | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/make_tld_list.py b/tools/make_tld_list.py index a494fec..644b207 100644 --- a/tools/make_tld_list.py +++ b/tools/make_tld_list.py @@ -12,7 +12,9 @@ def get_content(url: str) -> str: def main() -> None: - content = get_content("https://data.iana.org/TLD/tlds-alpha-by-domain.txt") + raw_content = get_content("https://data.iana.org/TLD/tlds-alpha-by-domain.txt") + lines = raw_content.split("\n") + content = "\n".join(lines[1 : len(lines)]) with open("./wordlists/discovery/tlds.txt", "w+", encoding="utf-8") as manuf_file: manuf_file.write(content) diff --git a/wordlists/discovery/tlds.txt b/wordlists/discovery/tlds.txt index d5c0822..559aca7 100644 --- a/wordlists/discovery/tlds.txt +++ b/wordlists/discovery/tlds.txt @@ -1,4 +1,3 @@ -# Version 2023101002, Last Updated Wed Oct 11 07:07:02 2023 UTC AAA AARP ABB