Linux server.nvwebsoft.co.in 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
Apache
: 162.240.12.249 | : 3.145.103.119
202 Domain
8.1.31
nbspublicschool
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 /
GeoIP-1.5.0 /
[ HOME SHELL ]
Name
Size
Permission
Action
AUTHORS
35
B
-rw-r--r--
COPYING
25.98
KB
-rw-r--r--
ChangeLog
32.8
KB
-rw-r--r--
LICENSE.txt
1.87
KB
-rw-r--r--
README
7.76
KB
-rw-r--r--
TODO
2.5
KB
-rw-r--r--
fetch-geoipdata-city.pl
1.04
KB
-rw-r--r--
fetch-geoipdata.pl
1.04
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : fetch-geoipdata.pl
#!/usr/bin/perl use strict; use warnings; use POSIX; use LWP::Simple; use File::Copy; use Carp; my $ipdb = 'GeoIP.dat'; my $datadir = '/usr/share/GeoIP/'; my $fullpath = $datadir . $ipdb; my $url = 'http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz'; my $date = strftime '%Y%m%d', localtime; # Do we have an existing IP database? if ( -e $fullpath ) { print "Fetching " . $ipdb . " from " . $url . "\r\n"; if ( is_success( getstore( $url, $datadir . 'GeoIP.dat.gz' ) ) ) { move( $fullpath, $datadir . $ipdb . '.' . $date ) || croak "Can't move the old database aside\r\n"; system 'gzip', '-d', $datadir . 'GeoIP.dat.gz'; if ( $? ne 0 ) { croak "Could not uncompress database - exited $?\r\n"; } print "GeoIP database updated. Old copy is at " . $ipdb . "." . $date . "\r\n"; } else { croak "Fetch failed - try again later?\r\n"; } } else { croak "You don't appear to have a valid GeoIP database installed..\r\n"; }
Close