!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/usermin/htaccess/   drwxr-xr-x
Free 28.58 GB of 117.98 GB (24.23%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     change_files.cgi (976 B)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# change_files.cgi
# Modify or delete a <Files> clause in a .htaccess file

require './htaccess-lib.pl';
&ReadParse();
$hconf = &get_htaccess_config($in{'file'});
$d = $hconf->[$in{'idx'}];
$lref = &read_file_lines($d->{'file'});

if ($in{'delete'}) {
    # deleting a directive
    $gap = $d->{'eline'} - $d->{'line'} + 1;
    splice(@$lref, $d->{'line'}, $d->{'eline'} - $d->{'line'} + 1);
    splice(@$hconf, $in{'idx'}, 1);
    &renumber($hconf, $d->{'line'}, $d->{'file'}, -$gap);
    }
else {
    # changing a directive
    if ($in{'regexp'}) {
        if ($httpd_modules{'core'} >= 1.3) {
            $newdir = "<FilesMatch \"$in{'path'}\">";
            $enddir = "</FilesMatch>";
            }
        else {
            $newdir = "<Files ~ \"$in{'path'}\">";
            $enddir = "</Files>";
            }
        }
    else {
        $newdir = "<Files \"$in{'path'}\">";
        $enddir = "</Files>";
        }
    $lref->[$d->{'line'}] = $newdir;
    $lref->[$d->{'eline'}] = $enddir;
    }
&flush_file_lines();
&redirect("htaccess_index.cgi?file=".&urlize($in{'file'}));


:: 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.0068 ]--