!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/sites/node_modules/aws-sdk/scripts/region-checker/   drwxr-xr-x
Free 13.15 GB of 57.97 GB (22.69%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     index.js (2.11 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
var fs = require('fs');
var path = require('path');
var allowlist = require('./allowlist').allowlist;

function checkFile(location) {
    var file = fs.readFileSync(location);
    var code = file.toString();
    var lines = code.split('\n');
    var regionMatches = [];

    lines.forEach(function(line, idx) {
        var matches = line.match(/(us|eu|ap|sa|ca)-\w+-\d+/g);
        if (matches) {
            regionMatches.push({
                file: location,
                line: idx,
                code: line
            });
        }
    });

    return regionMatches;
}

function recursiveGetFilesIn(directory, extensions) {
    var filenames = [];

    var keys = fs.readdirSync(directory);

    for (var i = 0, iLen = keys.length; i < iLen; i++) {
        // check if it is a file
        var keyPath = path.join(directory, keys[i]);
        var stats = fs.statSync(keyPath);
        if (stats.isDirectory()) {
            filenames = filenames.concat(
                recursiveGetFilesIn(keyPath, extensions)
            );
            continue;
        }
        if (extensions.indexOf(path.extname(keyPath)) >= 0) {
            filenames.push(path.join(keyPath));
        }
    }

    return filenames;
}

function checkForRegions() {
    var libPath = path.join(__dirname, '..', '..', 'lib');
    var filePaths = recursiveGetFilesIn(libPath, ['.js']);
    var regionMatches = [];
    var warnings = [];

    filePaths.forEach(function(filePath) {
        regionMatches = regionMatches.concat(checkFile(filePath));
    });

    regionMatches.forEach(function(match) {
        var normalizedPath = match.file.substring(libPath.length);
        if (allowlist[normalizedPath] && allowlist[normalizedPath].indexOf(match.line) >= 0) {
            return;
        }
        warnings.push('File: ' + normalizedPath + '\tLine ' + match.line + ':\t' + match.code.trim());
    });

    if (warnings.length) {
        console.error('Hard-coded regions detected. This should only be done if absolutely certain!');
        warnings.forEach(function(warning) {
            console.error(warning);
        });
        process.exit(1);
    }
}

checkForRegions();

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