!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/virtual-server/   drwxrwxr-x
Free 28.6 GB of 117.98 GB (24.24%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     edit_ffile.cgi (2.16 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# edit_ffile.cgi
# Allow editing of a filter config file

require './virtual-server-lib.pl';
&ReadParse();
$d = &get_domain($in{'dom'});
&can_edit_domain($d) || &error($text{'aliases_ecannot'});
&can_edit_afiles() || &error($text{'ffile_ecannot'});

&ui_print_header(undef, $text{'ffile_title'}, "");

if (-e $in{'file'}) {
    &open_readfile_as_domain_user($d, FILE, $in{'file'}) ||
        &error(&text('ffile_eread', $in{'file'}, $d->{'user'}, $!));
    while(<FILE>) {
        s/\r|\n//g;
        if (/^(\S+)\s+(\S+)\s+(\S+)\s+(.*)$/) {
            push(@filter, [ $1, $2, $3, $4 ]);
            }
        elsif (/^(2)\s+(\S+)$/) {
            $other = $2;
            }
        }
    &close_readfile_as_domain_user($d, FILE);
    }

print "<b>",&text('ffile_desc', "<tt>$in{'file'}</tt>"),"</b><p>\n";

$what = $in{'alias'} ? 'alias' : 'user';
print "<form action=save_ffile.cgi method=post enctype=multipart/form-data>\n";
print "<input type=hidden name=file value=\"$in{'file'}\">\n";
print "<input type=hidden name=$what value=\"",$in{$what},"\">\n";
print "<input type=hidden name=dom value=\"$in{'dom'}\">\n";

$i = 0;
foreach $f (@filter, [ 1, '', '', '' ],
             [ 1, '', '', '' ],
             [ 1, '', '', '' ],
             [ 1, '', '', '' ],
             [ 1, '', '', '' ]) {
    $field = "<select name=field_$i>\n";
    foreach $ft ('', 'from', 'to', 'subject', 'cc', 'body') {
        $field .= sprintf "<option value='%s' %s>%s\n",
            $ft, $f->[2] eq $ft ? "selected" : "",
            $ft ? $text{"ffile_$ft"} : "&nbsp";
        }
    $field .= "</select>\n";

    $what = "<select name=what_$i>\n";
    $what .= sprintf "<option value=0 %s>%s\n",
        $f->[0] == 0 ? "selected" : "", $text{"ffile_what0"};
    $what .= sprintf "<option value=1 %s>%s\n",
        $f->[0] == 1 ? "selected" : "", $text{"ffile_what1"};
    $what .= "</select>\n";

    $match = "<input name=match_$i size=20 value='$f->[3]'>\n";

    $action = "<input name=action_$i size=30 value='$f->[1]'>\n";

    print &text('ffile_line', $field, $what, $match, $action),"<br>\n";
    $i++;
    }
print &text('ffile_other',
        "<input name=other size=30 value='$other'>"),"<br>\n";

print "<input type=submit value=\"$text{'save'}\">\n";
print "</form>\n";

&ui_print_footer("edit_$what.cgi?dom=$in{'dom'}&$what=$in{$what}&unix=1",
         $text{$what.'_return'});


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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