This commit is contained in:
Artem Anufrij 2022-09-25 19:35:17 +02:00
parent 5fbd54b715
commit cc83aa49e2
3 changed files with 43484 additions and 1 deletions

43459
domains reader/malware.txt Normal file

File diff suppressed because it is too large Load Diff

22
domains reader/reader.py Normal file
View File

@ -0,0 +1,22 @@
import re
print ('Domains Counter')
pattern = "[\w-]*\.\w{2,}$"
domains ={}
file = open("malware.txt", "r")
for line in file:
result = re.search(pattern, line.strip())
if (result):
domain = result.group()
if (domain in domains):
domains[domain] = domains[domain] + 1
else:
domains[domain] = 1
file.close()
domains_sorted = sorted(domains.items(), key=lambda y:y[1])
print (domains_sorted)

View File

@ -1,2 +1,4 @@
facebook.com facebook.com
twitter.com twitter.com
daraz.com
omtrdc.net