Linux cyberpanel 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
LiteSpeed
: 160.191.175.3 | : 216.73.216.114
Cant Read [ /etc/named.conf ]
8.2.29
aodai6801
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
libgeoip-dev /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
Makefile.am
1.1
KB
-rw-r--r--
Makefile.in
39.3
KB
-rw-r--r--
Makefile.vc
553
B
-rw-r--r--
benchmark.c
5.6
KB
-rw-r--r--
city_test.txt
86
B
-rw-r--r--
country_test.txt
1.22
KB
-rw-r--r--
country_test2.txt
1006
B
-rw-r--r--
country_test_name.txt
13
B
-rw-r--r--
fail_test.txt
18
B
-rw-r--r--
proxy_test.txt
261
B
-rw-r--r--
region_test.txt
492
B
-rw-r--r--
test-geoip-asnum.c
1.59
KB
-rw-r--r--
test-geoip-city.c
2.53
KB
-rw-r--r--
test-geoip-domain.c
1.94
KB
-rw-r--r--
test-geoip-invalid-file.c
823
B
-rw-r--r--
test-geoip-isp.c
1.6
KB
-rw-r--r--
test-geoip-netspeed.c
1.84
KB
-rw-r--r--
test-geoip-org.c
1.93
KB
-rw-r--r--
test-geoip-region.c
3.53
KB
-rw-r--r--
test-geoip.c
5.34
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : test-geoip-domain.c
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */ /* test-geoip-org.c * * Copyright (C) 2016 MaxMind, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "GeoIP.h" static const char *_mk_NA(const char *p) { return p ? p : "N/A"; } int main(int argc, char *argv[]) { FILE *f; GeoIP *gi; char *domain; char host[50]; char **ret; gi = GeoIP_open("../data/GeoIPDomain.dat", GEOIP_INDEX_CACHE); if (gi == NULL) { fprintf(stderr, "Error opening database\n"); exit(1); } f = fopen("domain_test.txt", "r"); if (f == NULL) { fprintf(stderr, "Error opening domain_test.txt\n"); exit(1); } printf("IP\tdomain\tnetmask\tbeginIp\tendIp\n"); while (fscanf(f, "%s", host) != EOF) { domain = GeoIP_name_by_name(gi, (const char *)host); if (domain != NULL) { ret = GeoIP_range_by_ip(gi, (const char *)host); printf("%s\t%s\t%d\t%s\t%s\n", host, _mk_NA(domain), GeoIP_last_netmask(gi), ret[0], ret[1]); GeoIP_range_by_ip_delete(ret); free(domain); } } fclose(f); GeoIP_delete(gi); return 0; }
Close