This file is indexed.

/usr/share/eiskaltdcpp/update_geoip is in eiskaltdcpp-scripts 2.2.9-4.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash

# This is script for updating the Geo IP database for EiskaltDC++.
#
# Database in text format (GeoIPCountryWhois.csv) will be downloaded from
# official site (http://maxmind.com/) if it's required.

## Author:  Boris Pek
## License: Public Domain
## Depends: unzip, curl
## Version: 1

export LAST_MOD=$(curl -I 'http://geolite.maxmind.com/download/geoip/database/GeoIPCountryCSV.zip' 2>&1 | grep 'Last-Modified:' | sed -e "s/^.*Last-Modified: \(.*\) GMT.*$/\1/")
export NEW_VER=$(date -d "${LAST_MOD}" +%Y%m%d)

echo " "
echo "http://www.maxmind.com/app/geoip_country"
echo " "
echo "GET /download/geoip/database/GeoIPCountryCSV.zip"
echo "Last-Modified: ${LAST_MOD} GMT"
echo " "

if [ -e /usr/share/eiskaltdcpp/GeoIPCountryCSV*.zip ]; then
    export OLD_VER=$(ls /usr/share/eiskaltdcpp/GeoIPCountryCSV*.zip |
                     sed -e "s/^.*GeoIPCountryCSV-\(.*\).zip$/\1/")
    echo "OLD_VER = ${OLD_VER}"
    echo "NEW_VER = ${NEW_VER}"
fi


if [ -z "${NEW_VER}" ]; then
    echo "NEW_VER is empty!";
    exit 0;
elif [ "${NEW_VER}" = "${OLD_VER}" ]; then
    echo "Upgrading is not required.";
    exit 0;
else
    cd /usr/share/eiskaltdcpp/
    rm -f GeoIPCountryWhois.csv GeoIPCountryCSV*.zip
    wget -4 'http://geolite.maxmind.com/download/geoip/database/GeoIPCountryCSV.zip'

    if [ -e "GeoIPCountryCSV.zip" ]; then
        mv -f "GeoIPCountryCSV.zip" "GeoIPCountryCSV-${NEW_VER}.zip"
        unzip "GeoIPCountryCSV-${NEW_VER}.zip"
    else
        echo "File GeoIPCountryCSV.zip was not downloaded."
    fi
fi