!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/apache/   drwxr-xr-x
Free 28.64 GB of 117.98 GB (24.28%)
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 (1.13 KB)      -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 './apache-lib.pl';
&ReadParse();
$access{'global'} || &error($text{'htaccess_ecannot'});
&allowed_auth_file($in{'file'}) ||
    &error($text{'htindex_ecannot'});
$hconf = &get_htaccess_config($in{'file'});
$d = $hconf->[$in{'idx'}];
&lock_file($d->{'file'});
&before_changing();

if ($in{'delete'}) {
    # deleting a directive
    &save_directive_struct($d, undef, $hconf, $hconf);
    }
else {
    # changing a directive
    if ($in{'regexp'}) {
        if ($httpd_modules{'core'} >= 1.3) {
            $d->{'name'} = 'FilesMatch';
            $d->{'value'} = "\"$in{'path'}\"";
            }
        else {
            $d->{'name'} = 'Files';
            $d->{'value'} = "~ \"$in{'path'}\"";
            }
        }
    else {
        $d->{'name'} = 'Files';
        $d->{'value'} = "\"$in{'path'}\"";
        }
    &save_directive_struct($d, $d, $hconf, $hconf, 1);
    }
&flush_file_lines();
&unlock_file($d->{'file'});
&update_last_config_change();

&after_changing();
&format_config_file($d->{'file'});

&webmin_log("files", $in{'delete'} ? 'delete' : 'save',
        "$in{'file'}:$d->{'words'}->[0]", \%in);
&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.0066 ]--