tracker-control-android icon indicating copy to clipboard operation
tracker-control-android copied to clipboard

Add new exodus lines

Open asakura42 opened this issue 3 years ago • 3 comments

Why not to add more exodus lines? It can be obtained easily with these super shitty lines.

exodus=$(curl -Ls https://reports.exodus-privacy.eu.org/en/trackers/ |
                  grep "/trackers/" |
                  grep "link black" |
                  awk -F'/' '{print $4}' |
                  sort -hu)

while IFS= read -r line ; do
                ex=$(curl -Ls "https://reports.exodus-privacy.eu.org/en/trackers/$line")
                echo "$ex" | grep -A1 '<h1 class="main-title">' | tail -n1 | sed 's/^[[:blank:]]\+//'
                echo "$ex" | grep "Network detection rule" | grep -o "<code>.*</code>" |
                    sed 's/<\/\?code>//g;s/^NC$//;s/\\\././g;s/[[:blank:]]\+\?|[[:blank:]]\+\?/\n/g' |
                    grep "[[:alnum:]]\.[[:alnum:]]" |
                    sed 's/\\-/-/g;s/\[.*\]//g;s/\*//g;s/^\.//' >> /tmp/exodus
done <<< "$exodus"
sed -i '/^[[:blank:]]\+\?$/d' /tmp/exodus
sort -u /tmp/exodus -o /tmp/exodus

echo "Done"

asakura42 avatar Jun 16 '22 19:06 asakura42

What are more exodus 'lines'?

kasnder avatar Jun 17 '22 14:06 kasnder

As inbuilt hosts, I thought. Nevermind, i digged deeper into your program and I see that I can do it manually. Anyway this idea can be helpful for users to get new hosts lines.

asakura42 avatar Jun 24 '22 14:06 asakura42

@kasnder the exodus project is a privacy oriented project that aims to detect and extract tracker information from android apps:

https://exodus-privacy.eu.org/en/page/what/

karolyi avatar Feb 22 '24 16:02 karolyi