Skip to content

Commit

Permalink
v8.6-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ngadmini committed Dec 31, 2022
1 parent 98f6d33 commit 0bd7550
Show file tree
Hide file tree
Showing 32 changed files with 124 additions and 93 deletions.
6 changes: 3 additions & 3 deletions README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# README version v8.5
# README version v8.6
# all scripts adapted to update blacklisted domains in BIND9 - Response Policy Zone

author:
Expand All @@ -9,8 +9,8 @@ license:
*) Creative Commons Attribution-ShareAlike 4.0 International License
*) For more information, please refer to <https://creativecommons.org/licenses/by-sa/4.0/>

what's new in v8.5:
*) updating grab_http.sh, grab_library and grab_regex
what's new in v8.6:
*) major updating

Get url to download script-pack (latest version) :
~ curl -s https://api.github.com/repos/ngadmini/Grabbing-Blacklist-for-Bind9-RPZ/releases/latest \
Expand Down
12 changes: 9 additions & 3 deletions libs/grab_build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# TAGS
# grab_build.sh v8.5
# grab_build.sh v8.6
# https://github.com/ngadmini
# AUTHOR
# [email protected]
Expand All @@ -22,8 +22,14 @@ if [[ -e ${_LIB} ]]; then
f_trp
f_cnf
else
printf "[FAIL] %s notFOUND\n" "${_LIB##*/}"
exit 1
curl -sfO https://raw.githubusercontent.com/ngadmini/Grabbing-Blacklist-for-Bind9-RPZ/master/libs/grab_library
response=$?
if [[ ${response} -ne 0 ]]; then
printf "[FAIL] %s notFOUND\n" "${_LIB##*/}"
exit 1
else
exec "$0"
fi
fi

f_stt "[2'nd] TASKs:"
Expand Down
12 changes: 9 additions & 3 deletions libs/grab_cereal.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# TAGS
# grab_cereal.sh v8.5
# grab_cereal.sh v8.6
# AUTHOR
# [email protected]
# https://github.com/ngadmini
Expand All @@ -21,8 +21,14 @@ if [[ -e ${_LIB} ]]; then
source "${_LIB}"
f_trp
else
printf "[FAIL] %s notFOUND\n" "${_LIB##*/}"
exit 1
curl -sfO https://raw.githubusercontent.com/ngadmini/Grabbing-Blacklist-for-Bind9-RPZ/master/libs/grab_library
response=$?
if [[ ${response} -ne 0 ]]; then
printf "[FAIL] %s notFOUND\n" "${_LIB##*/}"
exit 1
else
exec "$0"
fi
fi

f_stt "[3'th] TASKs:"
Expand Down
2 changes: 1 addition & 1 deletion libs/grab_config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# TAGS
# grab_config v8.5
# grab_config v8.6
# https://github.com/ngadmini
# AUTHOR
# [email protected]
Expand Down
12 changes: 9 additions & 3 deletions libs/grab_duplic.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# TAGS
# grab_duplic.sh v8.5
# grab_duplic.sh v8.6
# https://github.com/ngadmini
# AUTHOR
# [email protected]
Expand All @@ -20,8 +20,14 @@ if [[ -e ${_LIB} ]]; then
source "${_LIB}"
f_trp
else
printf "[FAIL] %s notFOUND\n" "${_LIB##*/}"
exit 1
curl -sfO https://raw.githubusercontent.com/ngadmini/Grabbing-Blacklist-for-Bind9-RPZ/master/libs/grab_library
response=$?
if [[ ${response} -ne 0 ]]; then
printf "[FAIL] %s notFOUND\n" "${_LIB##*/}"
exit 1
else
exec "$0"
fi
fi

f_stt "[1'st] TASKs:"
Expand Down
23 changes: 15 additions & 8 deletions libs/grab_http.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# TAGS
# grab_http.sh v8.5
# grab_http.sh v8.6
# https://github.com/ngadmini
# AUTHOR
# [email protected]
Expand All @@ -22,8 +22,14 @@ if [[ -e ${_LIB} ]]; then # sourcing to grab_library
source "${_LIB}"
f_trp
else
printf "[FAIL] %s notFOUND\n" "${_LIB##*/}"
exit 1
curl -sfO https://raw.githubusercontent.com/ngadmini/Grabbing-Blacklist-for-Bind9-RPZ/master/libs/grab_library
response=$?
if [[ ${response} -ne 0 ]]; then
printf "[FAIL] %s notFOUND\n" "${_LIB##*/}"
exit 1
else
exec "$0"
fi
fi

clear
Expand All @@ -38,9 +44,9 @@ ar_pac=()

declare -A ar_num # numeric value
ar_num[ar_txt]=1 # index's position of: ipv4 category is no.1 at ar_txt
ar_num[ar_shn]=0 # grab_regex is no.0 at ar_shn
ar_num[ar_url]=22 # number of lines: grab_urls
ar_num[ar_reg]=4 # grab_regex
ar_num[ar_shn]=0 #+ grab_regex is no.0 at ar_shn
ar_num[ar_url]=22 # fixed number of lines: grab_urls
ar_num[ar_reg]=4 #+ grab_regex

# requirement inspection
printf "${_pre} %-63s" "check required debian-packages in local-host: $(hostname -I)"
Expand Down Expand Up @@ -127,7 +133,8 @@ f_fip "${ar_txt[5]}" "${ar_dmn[1]}" "${ar_cat[1]^^}"
f_sm7 "${ar_cat[0]}" 2
f_sm6 0 "${ar_uri[0]}"; f_do # done while initializing category
f_sm6 6 "${ar_uri[6]}"; f_add "${ar_url[6]}" | _grp -v '^#' >> "${ar_dmn[0]}"; f_do
f_out "${ar_dmn[0]}" "${ar_txt[5]}" # fixing false and bad entries
# fixing false and bad entries
f_out "${ar_dmn[0]}" "${ar_txt[5]}"
f_fix "${ar_cat[0]}" "${ar_dmn[0]}" "${ar_reg[0]}" "${ar_reg[1]}" "${ar_txt[0]}"
f_fip "${ar_txt[0]}" "${ar_dmn[1]}" "${ar_cat[1]^^}"

Expand All @@ -142,7 +149,7 @@ f_fip "${ar_txt[4]}" "${ar_dmn[1]}" "${ar_cat[1]^^}"
# category: PUBLICITE --> ${ar_cat[3]} with 5 additional entries: ${ar_url[3,8..11]}
# contents: ad domains
f_sm7 "${ar_cat[3]}" 5
f_sm6 3 "${ar_uri[3]}";f_do # done while initializing category
f_sm6 3 "${ar_uri[3]}"; f_do # done while initializing category
for G in {8..11}; do
f_sm6 "${G}" "${ar_uri[G]}"; f_add "${ar_url[G]}" | _grp -v "^#" >> "${ar_dmn[3]}"; f_do
done # fixing false and bad entries
Expand Down
2 changes: 1 addition & 1 deletion libs/grab_library
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# TAGS
# grab_library v8.5
# grab_library v8.6
# https://github.com/ngadmini
# AUTHOR
# [email protected]
Expand Down
12 changes: 9 additions & 3 deletions libs/grab_rsync.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# TAGS
# grab_rsync.sh v8.5
# grab_rsync.sh v8.6
# https://github.com/ngadmini
# AUTHOR
# [email protected]
Expand All @@ -21,8 +21,14 @@ if [[ -e ${_LIB} ]]; then
f_trp
f_cnf
else
printf "[FAIL] %s notFOUND\n" "${_LIB##*/}"
exit 1
curl -sfO https://raw.githubusercontent.com/ngadmini/Grabbing-Blacklist-for-Bind9-RPZ/master/libs/grab_library
response=$?
if [[ ${response} -ne 0 ]]; then
printf "[FAIL] %s notFOUND\n" "${_LIB##*/}"
exit 1
else
exec "$0"
fi
fi

f_stt "[4'th] TASKs:"
Expand Down
2 changes: 1 addition & 1 deletion zones-rpz/db.adultaa
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; generate at Thu 2022-12-29 20:57:15 WIB by grab_build.sh v8.5
; generate at Sat 2022-12-31 10:16:35 WIB by grab_build.sh v8.6
;
0----q.tumblr.com CNAME .
*.0----q.tumblr.com CNAME .
Expand Down
6 changes: 3 additions & 3 deletions zones-rpz/db.adultab
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
; generate at Thu 2022-12-29 20:57:15 WIB by grab_build.sh v8.5
; generate at Sat 2022-12-31 10:16:35 WIB by grab_build.sh v8.6
;
bondage-sex-photo.blogspot.am CNAME .
*.bondage-sex-photo.blogspot.am CNAME .
bondage-sex-photo.blogspot.ba CNAME .
*.bondage-sex-photo.blogspot.ba CNAME .
bondage-sex-photo.blogspot.be CNAME .
*.bondage-sex-photo.blogspot.be CNAME .
bondage-sex-photo.blogspot.bg CNAME .
*.bondage-sex-photo.blogspot.bg CNAME .
bondage-sex-photo.blogspot.ca CNAME .
*.bondage-sex-photo.blogspot.ca CNAME .
10 changes: 5 additions & 5 deletions zones-rpz/db.adultac
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
; generate at Thu 2022-12-29 20:57:15 WIB by grab_build.sh v8.5
; generate at Sat 2022-12-31 10:16:35 WIB by grab_build.sh v8.6
;
erica-lightspeed-nude.blogspot.sg CNAME .
*.erica-lightspeed-nude.blogspot.sg CNAME .
erica-lightspeed-nude.blogspot.si CNAME .
*.erica-lightspeed-nude.blogspot.si CNAME .
erica-lightspeed-nude.blogspot.sk CNAME .
*.erica-lightspeed-nude.blogspot.sk CNAME .
erica-lightspeed-nude.blogspot.sn CNAME .
*.erica-lightspeed-nude.blogspot.sn CNAME .
erica-lightspeed-nude.blogspot.tw CNAME .
*.erica-lightspeed-nude.blogspot.tw CNAME .
erica-lightspeed-nude.blogspot.ug CNAME .
*.erica-lightspeed-nude.blogspot.ug CNAME .
18 changes: 9 additions & 9 deletions zones-rpz/db.adultad
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
; generate at Thu 2022-12-29 20:57:15 WIB by grab_build.sh v8.5
; generate at Sat 2022-12-31 10:16:35 WIB by grab_build.sh v8.6
;
highlanders-cafe12.blogspot.co.za CNAME .
*.highlanders-cafe12.blogspot.co.za CNAME .
highlanders-cafe12.blogspot.com CNAME .
*.highlanders-cafe12.blogspot.com CNAME .
highlanders-cafe12.blogspot.com.au CNAME .
*.highlanders-cafe12.blogspot.com.au CNAME .
highlanders-cafe12.blogspot.com.br CNAME .
*.highlanders-cafe12.blogspot.com.br CNAME .
highlanders-cafe12.blogspot.fr CNAME .
*.highlanders-cafe12.blogspot.fr CNAME .
highlanders-cafe12.blogspot.hk CNAME .
*.highlanders-cafe12.blogspot.hk CNAME .
highlanders-cafe12.blogspot.hr CNAME .
*.highlanders-cafe12.blogspot.hr CNAME .
highlanders-cafe12.blogspot.hu CNAME .
*.highlanders-cafe12.blogspot.hu CNAME .
18 changes: 9 additions & 9 deletions zones-rpz/db.adultae
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
; generate at Thu 2022-12-29 20:57:15 WIB by grab_build.sh v8.5
; generate at Sat 2022-12-31 10:16:35 WIB by grab_build.sh v8.6
;
mature-hot-ladies.blogspot.com.ng CNAME .
*.mature-hot-ladies.blogspot.com.ng CNAME .
mature-hot-ladies.blogspot.com.tr CNAME .
*.mature-hot-ladies.blogspot.com.tr CNAME .
mature-hot-ladies.blogspot.com.uy CNAME .
*.mature-hot-ladies.blogspot.com.uy CNAME .
mature-hot-ladies.blogspot.cz CNAME .
*.mature-hot-ladies.blogspot.cz CNAME .
mature-hot-ladies.blogspot.co.nz CNAME .
*.mature-hot-ladies.blogspot.co.nz CNAME .
mature-hot-ladies.blogspot.co.uk CNAME .
*.mature-hot-ladies.blogspot.co.uk CNAME .
mature-hot-ladies.blogspot.co.za CNAME .
*.mature-hot-ladies.blogspot.co.za CNAME .
mature-hot-ladies.blogspot.com CNAME .
*.mature-hot-ladies.blogspot.com CNAME .
18 changes: 9 additions & 9 deletions zones-rpz/db.adultaf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
; generate at Thu 2022-12-29 20:57:15 WIB by grab_build.sh v8.5
; generate at Sat 2022-12-31 10:16:35 WIB by grab_build.sh v8.6
;
pornvl18.blogspot.in CNAME .
*.pornvl18.blogspot.in CNAME .
pornvl18.blogspot.is CNAME .
*.pornvl18.blogspot.is CNAME .
pornvl18.blogspot.it CNAME .
*.pornvl18.blogspot.it CNAME .
pornvl18.blogspot.jp CNAME .
*.pornvl18.blogspot.jp CNAME .
pornvl18.blogspot.hk CNAME .
*.pornvl18.blogspot.hk CNAME .
pornvl18.blogspot.hr CNAME .
*.pornvl18.blogspot.hr CNAME .
pornvl18.blogspot.hu CNAME .
*.pornvl18.blogspot.hu CNAME .
pornvl18.blogspot.ie CNAME .
*.pornvl18.blogspot.ie CNAME .
6 changes: 3 additions & 3 deletions zones-rpz/db.adultag
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
; generate at Thu 2022-12-29 20:57:15 WIB by grab_build.sh v8.5
; generate at Sat 2022-12-31 10:16:35 WIB by grab_build.sh v8.6
;
sultanbetgirisadresimiz.blogspot.co.ke CNAME .
*.sultanbetgirisadresimiz.blogspot.co.ke CNAME .
sultanbetgirisadresimiz.blogspot.co.nz CNAME .
*.sultanbetgirisadresimiz.blogspot.co.nz CNAME .
sultanbetgirisadresimiz.blogspot.co.uk CNAME .
*.sultanbetgirisadresimiz.blogspot.co.uk CNAME .
sultanbetgirisadresimiz.blogspot.co.za CNAME .
*.sultanbetgirisadresimiz.blogspot.co.za CNAME .
sultanbetgirisadresimiz.blogspot.com CNAME .
*.sultanbetgirisadresimiz.blogspot.com CNAME .
2 changes: 1 addition & 1 deletion zones-rpz/db.ipv4
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; generate at Thu 2022-12-29 20:57:15 WIB by grab_build.sh v8.5
; generate at Sat 2022-12-31 10:16:35 WIB by grab_build.sh v8.6
;
32.230.218.0.1.rpz-nsip CNAME .
32.12.227.0.1.rpz-nsip CNAME .
Expand Down
2 changes: 1 addition & 1 deletion zones-rpz/db.malware
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; generate at Thu 2022-12-29 20:57:15 WIB by grab_build.sh v8.5
; generate at Sat 2022-12-31 10:16:35 WIB by grab_build.sh v8.6
;
0-0-0-0-0-0proxy.tserv.se CNAME .
*.0-0-0-0-0-0proxy.tserv.se CNAME .
Expand Down
2 changes: 1 addition & 1 deletion zones-rpz/db.publicite
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; generate at Thu 2022-12-29 20:57:15 WIB by grab_build.sh v8.5
; generate at Sat 2022-12-31 10:16:35 WIB by grab_build.sh v8.6
;
0-000.store CNAME .
*.0-000.store CNAME .
Expand Down
2 changes: 1 addition & 1 deletion zones-rpz/db.redirector
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; generate at Thu 2022-12-29 20:57:15 WIB by grab_build.sh v8.5
; generate at Sat 2022-12-31 10:16:35 WIB by grab_build.sh v8.6
;
0------------0-------------0.0n-line.biz CNAME .
*.0------------0-------------0.0n-line.biz CNAME .
Expand Down
2 changes: 1 addition & 1 deletion zones-rpz/db.trust+
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; generate at Thu 2022-12-29 20:57:15 WIB by grab_build.sh v8.5
; generate at Sat 2022-12-31 10:16:35 WIB by grab_build.sh v8.6
;
0-1kiss.com CNAME .
*.0-1kiss.com CNAME .
Expand Down
4 changes: 2 additions & 2 deletions zones-rpz/rpz.adultaa
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
; generate at Thu 2022-12-29 20:57:23 WIB by grab_cereal.sh v8.5
; generate at Sat 2022-12-31 10:16:43 WIB by grab_cereal.sh v8.6
; rpz.adultaa
$TTL 3600
$ORIGIN adultaa.domain.
@ SOA adultaa.domain. rpz.adultaa.domain. (2022122903 3600 3600 86400 3600)
@ SOA adultaa.domain. rpz.adultaa.domain. (2022123101 3600 3600 86400 3600)
@ NS adultaa.domain.
@ IN A 127.0.0.17
;
Expand Down
4 changes: 2 additions & 2 deletions zones-rpz/rpz.adultab
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
; generate at Thu 2022-12-29 20:57:23 WIB by grab_cereal.sh v8.5
; generate at Sat 2022-12-31 10:16:43 WIB by grab_cereal.sh v8.6
; rpz.adultab
$TTL 3600
$ORIGIN adultab.domain.
@ SOA adultab.domain. rpz.adultab.domain. (2022122903 3600 3600 86400 3600)
@ SOA adultab.domain. rpz.adultab.domain. (2022123101 3600 3600 86400 3600)
@ NS adultab.domain.
@ IN A 127.0.0.18
;
Expand Down
4 changes: 2 additions & 2 deletions zones-rpz/rpz.adultac
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
; generate at Thu 2022-12-29 20:57:23 WIB by grab_cereal.sh v8.5
; generate at Sat 2022-12-31 10:16:43 WIB by grab_cereal.sh v8.6
; rpz.adultac
$TTL 3600
$ORIGIN adultac.domain.
@ SOA adultac.domain. rpz.adultac.domain. (2022122903 3600 3600 86400 3600)
@ SOA adultac.domain. rpz.adultac.domain. (2022123101 3600 3600 86400 3600)
@ NS adultac.domain.
@ IN A 127.0.0.19
;
Expand Down
4 changes: 2 additions & 2 deletions zones-rpz/rpz.adultad
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
; generate at Thu 2022-12-29 20:57:23 WIB by grab_cereal.sh v8.5
; generate at Sat 2022-12-31 10:16:43 WIB by grab_cereal.sh v8.6
; rpz.adultad
$TTL 3600
$ORIGIN adultad.domain.
@ SOA adultad.domain. rpz.adultad.domain. (2022122903 3600 3600 86400 3600)
@ SOA adultad.domain. rpz.adultad.domain. (2022123101 3600 3600 86400 3600)
@ NS adultad.domain.
@ IN A 127.0.0.20
;
Expand Down
4 changes: 2 additions & 2 deletions zones-rpz/rpz.adultae
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
; generate at Thu 2022-12-29 20:57:23 WIB by grab_cereal.sh v8.5
; generate at Sat 2022-12-31 10:16:43 WIB by grab_cereal.sh v8.6
; rpz.adultae
$TTL 3600
$ORIGIN adultae.domain.
@ SOA adultae.domain. rpz.adultae.domain. (2022122903 3600 3600 86400 3600)
@ SOA adultae.domain. rpz.adultae.domain. (2022123101 3600 3600 86400 3600)
@ NS adultae.domain.
@ IN A 127.0.0.21
;
Expand Down
4 changes: 2 additions & 2 deletions zones-rpz/rpz.adultaf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
; generate at Thu 2022-12-29 20:57:23 WIB by grab_cereal.sh v8.5
; generate at Sat 2022-12-31 10:16:43 WIB by grab_cereal.sh v8.6
; rpz.adultaf
$TTL 3600
$ORIGIN adultaf.domain.
@ SOA adultaf.domain. rpz.adultaf.domain. (2022122903 3600 3600 86400 3600)
@ SOA adultaf.domain. rpz.adultaf.domain. (2022123101 3600 3600 86400 3600)
@ NS adultaf.domain.
@ IN A 127.0.0.22
;
Expand Down
Loading

0 comments on commit 0bd7550

Please sign in to comment.