⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.231
Server IP:
104.21.64.1
Server:
Linux vmi2315822.contaboserver.net 5.15.0-134-generic #145-Ubuntu SMP Wed Feb 12 20:08:39 UTC 2025 x86_64
Server Software:
LiteSpeed
PHP Version:
8.3.21
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
doc
/
libgeoip-dev
/
examples
/
View File Name :
test-geoip-invalid-file.c
#include "GeoIP.h" int main(void) { GeoIP *gi = GeoIP_open(SRCDIR "/README.md", GEOIP_MEMORY_CACHE); /* We don't detect invalid files at load, unfortunately. */ if (gi == NULL) { fprintf(stderr, "Error opening database\n"); return 1; } const char *country = GeoIP_country_code_by_addr(gi, "24.24.24.24"); if (country != NULL) { fprintf(stderr, "Received a non-NULL value on an invalid database from " "GeoIP_country_code_by_addr\n"); return 1; } country = GeoIP_country_code_by_addr_v6(gi, "24.24.24.24"); if (country != NULL) { fprintf(stderr, "Received a non-NULL value on an invalid database from " "GeoIP_country_code_by_addr_v6\n"); return 1; } return 0; }