diff --git a/Alternate versions Anti-Malware List/AntiMalwareHosts.txt b/Alternate versions Anti-Malware List/AntiMalwareHosts.txt new file mode 100644 index 000000000..16e8c6dc2 --- /dev/null +++ b/Alternate versions Anti-Malware List/AntiMalwareHosts.txt @@ -0,0 +1,82 @@ +# Title: ๐Ÿ’Š Dandelion Sprout's Anti-Malware List (ยซhostsยป file version) +# Version: 20May2019v5-Alpha +# Expires: 5 days +# Description: Most anti-malware lists are pretty big and can cover a 5- or 6-digit amount of specific domains. But my list hereby claims to remove more than 25% of all known malware sites with just a 2-digit amount of entries. This is mostly done by blocking top-level domains that have become devastatingly abused by spammers, usually because they allowed for free and uncontrolled domain registrations. There's also additional categories that cover unusual malware and phishing domains that very few other lists seem to cover. +# For more information, details, helpful tools, and other lists that I've made, visit https://github.com/DandelionSprout/adfilt/blob/master/Wiki/General-info.md#english + +# ๐Ÿ”ถ Country domains +# You can expect these domains to have an overwhelming majority of malware domains that have nothing to do with the countries in question. Nevertheless, if you are in a situation where you have to do active business in any of the countries in question, then this list may not be ideal for you. +# Tokelau + +# Gabon + +# Mali + +# Equatorial Guinea + +# Central African Republic + + +# ๐Ÿ”ถ Topical domains +# These are topical domains that have consistently horrendous scores on watchlists of bad TLDs, and whose use for legit purposes is practically non-existent. +# Presumably fake loans + + +# ๐Ÿ”ถ Attempted removal of Google search result entries that lead to the above top-level domains (Advanced adblockers only) + +# ๐Ÿ”ถ For Google Mobile +# Note for Firefox on Android users: I strongly recommend the use of https://addons.mozilla.org/firefox/addon/google-search-fixer/ for use on Firefox for Android, thus the entries are written for the Chrome version of Google Mobile. + +# ๐Ÿ”ถ Dead domains that used to host lists for adblockers or "hosts" tools, but which are now either used by malware pushers, or could potentially be snapped up by them. (Also added to "uBlock Filters - Badware Risks", except for startshop.no) +127.0.0.1 adblock.gjtech.net +127.0.0.1 spam404bl.com +127.0.0.1 hufilter.hu +127.0.0.1 fredfiber.no +127.0.0.1 startshop.no +127.0.0.1 securemecca.com + +# ๐Ÿ”ถ Old tech-related domains that have fallen into the hands of questionable new owners. +# To log in to TP-Link routers, use tplinkwifi.net instead. +127.0.0.1 tplinklogin.net +127.0.0.1 tplinkextender.net +127.0.0.1 ublock.org + +# ๐Ÿ”ถ IQ test sites that make you waste heaps of time by taking the test, and then try to charge you to see the results. +127.0.0.1 funeducation.com +127.0.0.1 iq-research.info +127.0.0.1 iq-test-online.org +127.0.0.1 iq-test.co.uk +127.0.0.1 iqtest.co.uk +127.0.0.1 iqtest.com +127.0.0.1 iqtestnow.org +127.0.0.1 iqtestonline24.com +127.0.0.1 test-iq.org +127.0.0.1 officialiqtests.com + +# ๐Ÿ”ถ Old Linux-related domains that have been snapped up for ads, adware, and/or malware. +# How these links still remain in Unetbootin, is anyone's guess. +127.0.0.1 dreamlinux.com.br +127.0.0.1 dreamlinux.net +127.0.0.1 dreamlinux.info +127.0.0.1 hacktolive.org +127.0.0.1 mandriva.com + +# ๐Ÿ”ถ ReImagePlus links (Also added to "uBlock Filters - Badware Risks") +# https://windowsreport.com/extend-windows-laptop-battery-life/ +# https://appuals.com/fix-error-0x800701e3-on-windows-7-8-1-10/ +# https://ugetfix.com/ask/how-to-fix-windows-store-error-0x8000ffff/ +# https://www.thewindowsclub.com/fix-windows-update-error-0xc1900130-on-windows-10 +# https://www.majorgeeks.com/files/details/patch_my_pc.html + + +# ๐Ÿ”ถ ScanUtilities links +# https://www.bynarycodes.com/fix-windows-10-update-error-0x80070006/ + +# ๐Ÿ”ถ Driver Easy links +# https://www.drivereasy.com/knowledge/fix-critical-service-failed-blue-screen-error-on-windows-10/ +# https://www.drivereasy.com/knowledge/fixed-how-to-fix-stop-error-0x0000001e/ +# https://www.drivereasy.com/knowledge/download-gigabyte-audio-driver/ +# https://www.drivereasy.com/knowledge/epson-xp-420-driver-update-for-windows-7-8-and-10/ +# https://www.drivereasy.com/knowledge/solved-this-display-does-not-support-hdcp/ + + diff --git a/Alternate versions Anti-Malware List/xyzAM_prepare_filters.py b/Alternate versions Anti-Malware List/xyzAM_prepare_filters.py index ac4850279..15035c792 100644 --- a/Alternate versions Anti-Malware List/xyzAM_prepare_filters.py +++ b/Alternate versions Anti-Malware List/xyzAM_prepare_filters.py @@ -7,12 +7,14 @@ UNSUPPORTED_ABP = ['$document', '$important', ',important' '$redirect=', ',redir ':style', '##+js', '.*#' , ':xpath', ':matches-css', 'dk,no##'] UNSUPPORTED_TPL = ['##', '#@#', '#?#', r'\.no\.$'] UNSUPPORTED_PRIVOXY = ['##', '#@#', '#?#', '@@', '!#'] +UNSUPPORTED_HOSTS = ['##', '#@#', '#?#', '@@', '!#', '[Adblock Plus 3.2]'] OUTPUT = 'xyzzyx.txt' OUTPUT_AG = 'AntiMalwareAdGuard.txt' OUTPUT_ABP = 'AntiMalwareABP.txt' OUTPUT_TPL = 'AntiMalwareTPL.tpl' OUTPUT_PRIVOXY = 'AntiMalwarePrivoxy.action' +OUTPUT_HOSTS = 'AntiMalwareHosts.txt' # function that downloads the filter list def download_filters() -> str: @@ -472,7 +474,95 @@ def prepare_privoxy(lines) -> str: ) if is_supported_privoxy(line): - text += line + '\r\n' + text += line + '\r\n' + + return text + +# โ€”โ€”โ€”โ€”โ€” /hosts file version โ€”โ€”โ€”โ€”โ€” + +# Attempts to achieve Internet Explorer TPL support +def is_supported_hosts(line) -> bool: + for token in UNSUPPORTED_HOSTS: + if token in line: + return False + + return True + +def prepare_hosts(lines) -> str: + text = '' + + # remove or modifiy entries with unsupported modifiers + for line in lines: + + line = re.sub( + "! ", + "# ", + line + ) + + line = re.sub( + r"\^.*", + "", + line + ) + + line = re.sub( + r"^\!.*", + "#", + line + ) + + line = re.sub( + "# ๐Ÿ‡ฌ๐Ÿ‡ง: ", + "{+block{", + line + ) + + # Note the use of parenthesises and "\1" combined. + line = re.sub( + r"(\{\+block{.*)", + r"\1}}", + line + ) + + line = re.sub( + "Dandelion Sprout's Anti-Malware List", + "Dandelion Sprout's Anti-Malware List (ยซhostsยป file version)", + line + ) + + line = re.sub( + r"# Placeholder line.*", + "", + line + ) + + line = re.sub( + "-Beta", + "-Alpha", + line + ) + + line = re.sub( + r"\|\|.*/.*", + "", + line + ) + + line = re.sub( + "\|\|", + "127.0.0.1 ", + line + ) + + line = re.sub( + r"127\.0\.0\.1 \..*", + "", + line + ) + + if is_supported_hosts(line): + text += line + '\r\n' return text @@ -486,6 +576,7 @@ if __name__ == "__main__": abp_filter = prepare_abp(lines) tpl_filter = prepare_tpl(lines) privoxy_filter = prepare_privoxy(lines) + hosts_filter = prepare_hosts(lines) with open(OUTPUT, "w") as text_file: text_file.write(text) @@ -502,4 +593,7 @@ if __name__ == "__main__": with open(OUTPUT_PRIVOXY, "w") as text_file: text_file.write(privoxy_filter) + with open(OUTPUT_HOSTS, "w") as text_file: + text_file.write(hosts_filter) + print('The script has finished its work')