Skip to content

Commit

Permalink
sources and script cleaning for match pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
NotaInutilis committed Oct 2, 2023
1 parent 8205523 commit da25a96
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# Cleanup sources:
## Normalizes URLs into domains: lowercases, remove leading spaces, protocol (`x://`) `www.` subdomains, everything after `/`, only one space before `#`. Keeps comments intact.
find ./sources -type f -name "*.txt" -exec sed -ri 'h; s/[^#]*//1; x; s/#.*//; s/.*/\L&/; s/^[[:space:]]*//i; s/^.*:\/\///i; s/^www\.//i; s/\/[^[:space:]]*//i; s/[[:space:]].*$/ /i; G; s/(.*)\n/\1/' {} \;
find ./sources -type f -name "*.txt" -exec sed -ri 'h; s/[^#]*//1; x; s/#.*//; s/.*/\L&/; s/^[[:space:]]*//i; s/^.*:\/\///i; s/^[.*]*//i; s/^www\.//i; s/\/[^[:space:]]*//i; s/[[:space:]].*$/ /i; G; s/(.*)\n/\1/' {} \;
## Remove duplicate domains from each source file (keeps repeated comments and empty lines for organization).
find ./sources -type f -name "*.txt" -exec bash -c '
awk "(\$0 ~ /^[[:space:]]*#/ || NF == 0 || !seen[\$0]++)" "$0" > "$0_temp.txt";
Expand Down
5 changes: 4 additions & 1 deletion sources/Malware/Malvertisement external forwarding.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Uses the external forwarding service to redirect to a string of websites which trigger advertisement, badware and malware adblock filter lists.
# These URLs are called by the external forwarding service of a legitimate website
# The site is not fully compromised but used to redirect to a string of websites which trigger advertisement, badware and malware adblock filter lists.

sudrtestt.ru
rxpromsoftware.ru
vestibularfce.com.br
16 changes: 16 additions & 0 deletions sources/Malware/Malvertisement redirection.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,19 @@ immobiliensky24.de
adriamoevents.pl
forum-wissenschaft-und-kunst.de
agentur-hagemeier.de
https://lrdyi.gartenbau-u.de/
*://*.trockenbau-trebsen.de/*
*://*.indexdummy3.de/*
*://*.elternverein-cvd-gs.de/*
*://*.webock.de/*
*://*.kintagencia.es/*
*://*.medcarelabjo.com/*
*://*.h4s-baustelle.de/*
*://*.makler-schiermeyer.de/*
*://*.ekw-sport-sozialmarketing.de/*
*://*.mkkinsektenschutz.de/*
*://*.meblegrzywacz.pl/*
*://*.bremen-kammerjaeger.de/*
*://*.contact-protect.de/*
*://*.phillee-sports.de/*
*://*.mennica-woda.pl/*
File renamed without changes.

0 comments on commit da25a96

Please sign in to comment.