JFIF ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/vidoe.top/lib/jsencode/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/vidoe.top/lib/jsencode/AAEncoder.php
<?php
/**
 * Class AAEncoder
 * @author Andrey Izman <izmanw@gmail.com>
 * @link https://github.com/mervick/php-aaencoder
 * @license MIT
 */

/**
 * Class AAEncoder
 */
class AAEncoder
{
    /**
     * Encode any JavaScript program to Japanese style emoticons (^_^)
     * @param string $js
     * @param int $level [optional]
     * @return string
     */
    public static function encode($js, $level=0)
    {
        $result = "゚ω゚ノ= /`m´)ノ ~┻━┻   //*´∇`*/ ['_']; o=(゚ー゚)  =_=3; c=(゚Θ゚) =(゚ー゚)-(゚ー゚); " .
            "(゚Д゚) =(゚Θ゚)= (o^_^o)/ (o^_^o);" .
            "(゚Д゚)={゚Θ゚: '_' ,゚ω゚ノ : ((゚ω゚ノ==3) +'_') [゚Θ゚] " .
            ",゚ー゚ノ :(゚ω゚ノ+ '_')[o^_^o -(゚Θ゚)] " .
            ",゚Д゚ノ:((゚ー゚==3) +'_')[゚ー゚] }; (゚Д゚) [゚Θ゚] =((゚ω゚ノ==3) +'_') [c^_^o];" .
            "(゚Д゚) ['c'] = ((゚Д゚)+'_') [ (゚ー゚)+(゚ー゚)-(゚Θ゚) ];" .
            "(゚Д゚) ['o'] = ((゚Д゚)+'_') [゚Θ゚];" .
            "(゚o゚)=(゚Д゚) ['c']+(゚Д゚) ['o']+(゚ω゚ノ +'_')[゚Θ゚]+ ((゚ω゚ノ==3) +'_') [゚ー゚] + " .
            "((゚Д゚) +'_') [(゚ー゚)+(゚ー゚)]+ ((゚ー゚==3) +'_') [゚Θ゚]+" .
            "((゚ー゚==3) +'_') [(゚ー゚) - (゚Θ゚)]+(゚Д゚) ['c']+" .
            "((゚Д゚)+'_') [(゚ー゚)+(゚ー゚)]+ (゚Д゚) ['o']+" .
            "((゚ー゚==3) +'_') [゚Θ゚];(゚Д゚) ['_'] =(o^_^o) [゚o゚] [゚o゚];" .
            "(゚ε゚)=((゚ー゚==3) +'_') [゚Θ゚]+ (゚Д゚) .゚Д゚ノ+" .
            "((゚Д゚)+'_') [(゚ー゚) + (゚ー゚)]+((゚ー゚==3) +'_') [o^_^o -゚Θ゚]+" .
            "((゚ー゚==3) +'_') [゚Θ゚]+ (゚ω゚ノ +'_') [゚Θ゚]; " .
            "(゚ー゚)+=(゚Θ゚); (゚Д゚)[゚ε゚]='\\\\'; " .
            "(゚Д゚).゚Θ゚ノ=(゚Д゚+ ゚ー゚)[o^_^o -(゚Θ゚)];" .
            "(o゚ー゚o)=(゚ω゚ノ +'_')[c^_^o];" .
            "(゚Д゚) [゚o゚]='\\\"';" .
            "(゚Д゚) ['_'] ( (゚Д゚) ['_'] (゚ε゚+" .
            "/*´∇`*/(゚Д゚)[゚o゚]+ ";

        for ($i = 0, $len = mb_strlen($js); $i < $len; $i++) {
            $code = unpack('N', mb_convert_encoding(mb_substr($js, $i, 1, 'UTF-8'), 'UCS-4BE', 'UTF-8'))[1];
            $text = '(゚Д゚)[゚ε゚]+';
            if ($code <= 127) {
                $text .= preg_replace_callback('/([0-7])/', function($match) use ($level) {
                    $byte = intval($match[1]);
                    return ($level ? self::randomize($byte, $level) : self::$bytes[$byte]) . '+';
                }, decoct($code));
            }
            else {
                $hex = str_split(substr('000' . dechex($code), -4));
                $text .= "(o゚ー゚o)+ ";
                for ($i = 0, $len = count($hex); $i < $len; $i++) {
                    $text .= self::$bytes[hexdec($hex[$i])] . '+ ';
                }
            }
            $result .=  $text;

        }
        $result .= "(゚Д゚)[゚o゚]) (゚Θ゚)) ('_');";
        return $result;
    }

    /**
     * @var array
     */
    protected static $bytes = [
        "(c^_^o)",
        "(゚Θ゚)",
        "((o^_^o) - (゚Θ゚))",
        "(o^_^o)",
        "(゚ー゚)",
        "((゚ー゚) + (゚Θ゚))",
        "((o^_^o) +(o^_^o))",
        "((゚ー゚) + (o^_^o))",
        "((゚ー゚) + (゚ー゚))",
        "((゚ー゚) + (゚ー゚) + (゚Θ゚))",
        "(゚Д゚) .゚ω゚ノ",
        "(゚Д゚) .゚Θ゚ノ",
        "(゚Д゚) ['c']",
        "(゚Д゚) .゚ー゚ノ",
        "(゚Д゚) .゚Д゚ノ",
        "(゚Д゚) [゚Θ゚]",
    ];

    /**
     * @param int $byte
     * @param int $level
     * @return string
     */
    protected static function randomize($byte, $level)
    {
        $random = [
            0 => [['+0', '-0'], ['+1', '-1'], ['+3', '-3'], ['+4', '-4']],
            1 => [['+1', '-0'], ['+3', '-1', '-1'], ['+4', '-3']],
            2 => [['+3', '-1'], ['+4', '-3', '+1'], ['+3', '+3', '-4']],
            3 => [['+3', '-0'], ['+4', '-3', '+1', '+1']],
            4 => [['+4', '+0'], ['+1', '+3'], ['+4', '-0']],
            5 => [['+3', '+1', '+1'], ['+4', '+1'], ['+3', '+3', '-1']],
            6 => [['+3', '+3'], ['+4', '+1', '+1'], ['+4', '+3', '-1']],
            7 => [['+3', '+4'], ['+3', '+3', '+1'], ['+4', '+4', '-1']],
        ];
        while ($level--) {
            $byte = preg_replace_callback('/[0-7]/', function($match) use ($random) {
                $numbers = $random[$match[0]][mt_rand(0, count($random[$match[0]]) - 1)];
                shuffle($numbers);
                $byte = ltrim(implode('', $numbers), '+');
                return "($byte)";
            }, $byte);
        }
        $byte = str_replace('+-', '-', $byte);
        return str_replace(array_keys(self::$bytes), self::$bytes, $byte);
    }
}

ZeroDay Forums Mini