403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Old Sites/ict/wp-content/plugins/smart-slider-3/Nextend/Framework/Misc/Base64/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Old Sites/ict/wp-content/plugins/smart-slider-3/Nextend/Framework/Misc/Base64/Encoder.php
<?php


namespace Nextend\Framework\Misc\Base64;

class Encoder {

    public static function encode($data) {

        if (function_exists('base64_encode')) {
            return base64_encode($data);
        }

        return self::encodeShim($data);
    }

    private static function encodeShim($data) {
        $b64     = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
        $o1      = $o2 = $o3 = $h1 = $h2 = $h3 = $h4 = $bits = $i = 0;
        $ac      = 0;
        $enc     = '';
        $tmp_arr = array();
        if (!$data) {
            return $data;
        }
        do {
            // pack three octets into four hexets
            $o1   = self::charCodeAt($data, $i++);
            $o2   = self::charCodeAt($data, $i++);
            $o3   = self::charCodeAt($data, $i++);
            $bits = $o1 << 16 | $o2 << 8 | $o3;
            $h1   = $bits >> 18 & 0x3f;
            $h2   = $bits >> 12 & 0x3f;
            $h3   = $bits >> 6 & 0x3f;
            $h4   = $bits & 0x3f;
            // use hexets to index into b64, and append result to encoded string
            $tmp_arr[$ac++] = self::charAt($b64, $h1) . self::charAt($b64, $h2) . self::charAt($b64, $h3) . self::charAt($b64, $h4);
        } while ($i < strlen($data));
        $enc = implode('', $tmp_arr);
        $r   = (strlen($data) % 3);

        return ($r ? substr($enc, 0, ($r - 3)) . substr('===', $r) : $enc);
    }

    private static function charCodeAt($data, $char) {
        return ord(substr($data, $char, 1));
    }

    private static function charAt($data, $char) {
        return substr($data, $char, 1);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit