CHips L MINI SHELL

CHips L pro

Current Path : /proc/2/cwd/proc/self/root/proc/3/root/proc/3/root/scripts/
Upload File :
Current File : //proc/2/cwd/proc/self/root/proc/3/root/proc/3/root/scripts/unblockip

#!/usr/local/cpanel/3rdparty/bin/perl
# cpanel4 - scripts        Copyright(c) 2011 cPanel, Inc..
#                                 All rights Reserved.
# copyright@cpanel.net      http://cpanel.net
# This code is subject to the cpanel license. Unauthorized copying is prohibited
print "What ip do you want to unblock? ";
my $ip = <STDIN>;
$ip =~ s/\n//g;

open( HA, "/etc/hosts.deny" );
my @HA = <HA>;
close(HA);
open( HA, ">/etc/hosts.deny" );
foreach my $line (@HA) {
    if ( $line !~ / ${ip}$/ ) {
        print HA $line;
    }
}
close(HA);
system("/sbin/ip -4 route del $ip");

Copyright 2K16 - 2K18 Indonesian Hacker Rulez