Commit be2b56c3 authored by System Administrator's avatar System Administrator

add all .sh

parent 910bed71
#!/bin/sh
SETNAME=rkz
SETNAME6=rkz-ipv6
arg=$1
. ./functions
for ip in $(get_ipv4_list $arg); do
echo "del $ip"
ipset del $SETNAME $ip || exit
done
for ip in $(get_ipv6_list $arg); do
echo "del $ip"
ipset del $SETNAME6 $ip || exit
done
#/!bin/sh
. ./functions
get_domains()
{
#curl --silent https://gitlab.eterfund.ru/eterfund/egw-route/raw/master/egw.list || exit 1
cat g_manual.list
}
get_cidr()
{
whois "$1" | grep "CIDR:" | sed -e "s|.* ||"
}
if [ -n "$1" ] ; then
get_ipv4_list "$1"
exit
fi
for domain in $(get_domains | grep -v "^#") ; do
echo
if is_ipv4 $domain ; then
echo "$domain"
get_cidr "$domain"
continue
fi
echo "# $domain"
for i in $(get_ipv4_list $domain) ; do
get_cidr "$i"
done
done
#!/bin/sh
SETNAME=egw
SETNAME6=egw-ipv6
arg=$1
. ./functions
for ip in $(get_ipv4_list $arg); do
echo "add $ip"
ipset add $SETNAME $ip
done
for ip in $(get_ipv6_list $arg); do
echo "add $ip"
ipset add $SETNAME6 $ip
done
#!/bin/sh
SETNAME=egw
SETNAME6=egw-ipv6
arg=$1
. ./functions
for ip in $(get_ipv4_list $arg); do
echo "del $ip"
ipset del $SETNAME $ip || exit
done
for ip in $(get_ipv6_list $arg); do
echo "del $ip"
ipset del $SETNAME6 $ip || exit
done
#!/bin/sh
cd /root/antifilter/ || exit
#curl --silent https://antifilter.download/list/allyouneed.lst
for i in https://community.antifilter.download/list/community.lst \
https://antifilter.download/list/ipresolve.lst \
https://antifilter.download/list/subnet.lst ; do
epm tool eget --timestamping $i
done
#!/bin/sh
cd /root/egw-route/ || exit
git pull
#!/bin/sh
. ./functions
get_domains()
{
curl --silent https://gitlab.eterfund.ru/eterfund/egw-route/raw/master/egw.list || exit 1
cat a_manual.list
}
if [ -n "$1" ] ; then
get_ipv6_list "$1"
exit
fi
for domain in $(get_domains | grep -v "^#") ; do
echo
echo "# $domain"
get_ipv6_list $domain
done
#!/bin/sh
ftmp=$0.list
eget -q -O $ftmp https://reestr.rublacklist.net/api/v3/ips || exit 1
cat $ftmp | sed -e 's|, |\n|g' -e 's|\"||g' -e 's|\[||g' -e 's|\]||g' | grep ":"
. ./functions
get_domains()
{
ftmp=$0.list
if eget -q -O $ftmp https://reestr.rublacklist.net/api/v3/dpi ; then
epm --inscript tool json -b <2.list | grep "domains" | sed -e 's|"$||' -e 's|.*"||'
fi
curl --silent https://gitlab.eterfund.ru/eterfund/egw-route/raw/master/workaround.list || exit 1
cat a_workaround_manual.list
}
for domain in $(get_domains | grep -v "^#") ; do
echo
echo "# $domain"
get_ipv6_list $domain
done
rm $ftmp
#!/bin/sh
. ./functions
get_domains()
{
#curl --silent https://gitlab.eterfund.ru/eterfund/egw-route/raw/master/egw.list || exit 1
#cat a_egw_manual.list
./fetch_lists.sh >/dev/null
cat_expanded /root/egw-route/egw.list || exit 1
}
if [ -n "$1" ] ; then
get_ipv4_list "$1"
exit
fi
get_domains | grep -v "^#" | get_ipv4_list_bulk
exit 0
for domain in $(get_domains | grep -v "^#") ; do
echo
if is_ipv4 $domain ; then
echo "$domain"
continue
fi
echo "# $domain"
get_ipv4_list $domain
done
exit 0
\ No newline at end of file
...@@ -7,10 +7,12 @@ ...@@ -7,10 +7,12 @@
# https://antifilter.download/ # https://antifilter.download/
# Нужно переделать на маршруты через Северен? Как-то продетектить, какие адреса через него доступны, какие нет? # Нужно переделать на маршруты через Северен? Как-то продетектить, какие адреса через него доступны, какие нет?
curl --silent https://community.antifilter.download/list/community.lst || exit 1 #curl --silent https://community.antifilter.download/list/community.lst || exit 1
#curl --silent https://antifilter.download/list/allyouneed.lst #curl --silent https://antifilter.download/list/allyouneed.lst
curl --silent https://antifilter.download/list/ipresolve.lst || exit 1 #curl --silent https://antifilter.download/list/ipresolve.lst || exit 1
curl --silent https://antifilter.download/list/subnet.lst || exit 1 #curl --silent https://antifilter.download/list/subnet.lst || exit 1
./fetch_antifilter.sh >/dev/null
cat /root/antifilter/community.lst /root/antifilter/ipresolve.lst /root/antifilter/subnet.lst
#curl --silent https://raw.githubusercontent.com/zapret-info/z-i/master/dump.csv | cut -d";" -f1 | tr '|' '\n' | tr -d ' ' | grep -v Updated #curl --silent https://raw.githubusercontent.com/zapret-info/z-i/master/dump.csv | cut -d";" -f1 | tr '|' '\n' | tr -d ' ' | grep -v Updated
#cat a_manual.list | grep -v "^#" #cat a_manual.list | grep -v "^#"
......
#!/bin/sh
SETNAME=rkz
SETNAME6=rkz-ipv6
arg=$1
. ./functions
for ip in $(get_ipv4_list $arg); do
echo "del $ip"
ipset del $SETNAME $ip || exit
done
for ip in $(get_ipv6_list $arg); do
echo "del $ip"
ipset del $SETNAME6 $ip || exit
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment