Skip to content

Commit

Permalink
sources + script for redirect pages
Browse files Browse the repository at this point in the history
  • Loading branch information
NotaInutilis committed May 15, 2024
1 parent 757ed51 commit 77fb4b9
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
4 changes: 3 additions & 1 deletion scripts/adblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
linestlds = tlds.readlines()
with open("sources/urls.txt", "r") as urls:
linesurls = urls.readlines()
blocklist = linesdomains + linestlds + linesurls
with open("sources/pages.txt", "r") as pages:
linespages = pages.readlines()
blocklist = linesdomains + linestlds + linesurls + linespages

# Print blocklist
for line in linesheader:
Expand Down
5 changes: 5 additions & 0 deletions scripts/ublacklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
linesurls = urls.readlines()
blocklist = linesdomains + linestlds + linesurls

with open("sources/pages.txt", "r") as pages:
linespages = pages.readlines()

with open("sources/regex_addresses.txt", "r") as readdresses:
linesreaddresses = readdresses.readlines()
with open("sources/regex_titles.txt", "r") as retitles:
Expand All @@ -26,6 +29,8 @@
print()
for line in blocklist:
print('*://*.' + line.strip() + '/*')
for line in linespages:
print('*://*.' + line.strip() + '*')
for line in linesreaddresses:
print(line.strip())
for line in linesretitles:
Expand Down
2 changes: 2 additions & 0 deletions scripts/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ find ./sources/domains -type f -iname "*.txt" -exec cat {} \; > ./sources/domain
find ./sources/domains -type f -iname "*fediverse*.txt" -exec cat {} \; > ./sources/fediverse_domains.txt
### URLs
find ./sources/urls -type f -iname "*.txt" -exec cat {} \; > ./sources/urls.txt
### Pages
find ./sources/pages -type f -iname "*.txt" -exec cat {} \; > ./sources/pages.txt
### TLDs
find ./sources/tlds -type f -iname "*.txt" -exec cat {} \; > ./sources/tlds.txt
### Regex addresses
Expand Down
8 changes: 2 additions & 6 deletions sources/domains/Malware/External forwarding abuse.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# These legitimate websites' external redirections are being abused to appear in searches and redirect to malicious websites.
# The site is not fully compromised but used to redirect to a string of websites which trigger advertisement, badware and malware adblock filter lists.

# Should be moved to URL format as to not block the whole site (still, shitty security)

# medcarelabjo.com
# adservice.google.dz
# octranspo.com
# www3.lastampa.it
medcarelabjo.com
adservice.google.dz
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# These legitimate websites' external redirections are being abused to appear in searches and redirect to malicious websites.
# The site is not fully compromised but used to redirect to a string of websites which trigger advertisement, badware and malware adblock filter lists.

# actual redirection page to be added
# octranspo.com
# www3.lastampa.it

continentalshelf.org/ecs-shapefiles2.aspx?src=
maritim-touristik.schmetterling-select.de/offers.php?case=kreuzfahrten_offers&url=
maryenckrealestate.com/view_mls.aspx?area&go=
Expand Down

0 comments on commit 77fb4b9

Please sign in to comment.