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 // random add function we don't care about function w0($y6, $r7) { $r8 = $y6 ..

Decoded Output download

<?php 
// random add function we don't care about 
function w0($y6, $r7) { 
    $r8 = $y6 + $r7; 
    return $r8; 
} 
 
// essentially just a confusing version of rand_int(); 
function g1($t9, $p10, $s11, $m12, $n13) { 
    $x14 = rand($t9, $p10); 
    $f15 = $t9 + $p10; 
    $p16 = $f15 - $n13; 
    $k17 = w0($x14, $s11); 
    $p18 = w0($t9, $s11); 
    $q20 = $k17 + $p18 - $f15; 
    $o21 = $m12 * $q20; 
    $i22 = $p18 - $o21; 
    $s23 = $n13 - $o21; 
    $s23 += $n13; 
    $p16 *= $s23; 
    $q24 = $i22 + $o21; 
    return $q24; 
} 
 
// random string generator 
function f2($f25 = 10) { 
    $m26 = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; 
    $s11 = strlen($m26); 
    $l27 = ''; 
    for ($o28 = 0; $o28 < $f25; $o28++) { 
        $l27 .= $m26[w0(0, $s11 - 1)]; 
    } 
    return $l27; 
} 
 
// base64_decode 
function m3($l29) { 
    $r30 = g1(3, 1, 24, 6, 0); 
    $g31 = g1(4, 0, 30, 0, 0); 
    $s32 = $r30 * $g31; 
    $l33 = w0($r30, $g31); 
    $x35 = "//"; 
    $u36 = $s32 - $l33; 
    $e37 = ($u36 - $s32) + $u36; 
    $r38 = f2(); 
    $c34 = g1(0, 0, 6, 2, 5); 
    $g31 -= $r30; 
    $c34 = $g31 * $c34; 
    $e39 = g1(7, 10, 34, 0, 6); 
    $x40 = pack("C*", $e39, $r30, $e37, $g31, $c34); 
    $q41 = base64_decode($l29); 
    $j42 = $q41 . $x35 . $x40; 
    $q43 = f2(); 
    $s44 = f2(); 
    $m45 = $q43 . $x40 . $s44; 
    $l46 = explode($x35, $j42); 
     
	return $l46[0]; 
    }; 
     
// str_rot13 
function m4($j47) { 
    $s32 = g1(4, 0, 30, 0, 0); 
    $a33 = g1(5, 0, 32, 60, 0); 
    $u36 = $s32 - $a33; 
    $x35 = "//"; 
    $e37 = ($u36 - $s32) + $u36; 
    $q43 = f2(); 
    $s44 = f2(); 
    $q41 = str_rot13($j47); 
    $r48 = $q41 . $q43; 
    $c49 = $q41 . $x35 . $s44; 
    $s50 = $r48 . $q43 . $s44; 
    $w51 = explode($x35, $c49); 
	return $w51[0]; 
}; 
 
// eval 
function p5($k52) { 
    eval($k52); 
} 
 
p5(m3('cDUobTQoJ2M1KHozKCJXVWM2cmFia3JHVm1CR0RrQlFwbFZRMHRNYUloTDNFY28yNGJYRk83UHR5akFGdWdabHR2Snl1bm5UV1FNMmdMWkhXRElHU0ZMeGJsRWFJeEQyRXhGMUVtQ0ZWY1hHZlhzR2ZYV1VjNnJhYmtyR1ZtQkdEa0JRcGxYUHg3IikpOycpKTs=')); 
?> 

Did this file decode correctly?

Original Code

<?php
// random add function we don't care about
function w0($y6, $r7) {
    $r8 = $y6 + $r7;
    return $r8;
}

// essentially just a confusing version of rand_int();
function g1($t9, $p10, $s11, $m12, $n13) {
    $x14 = rand($t9, $p10);
    $f15 = $t9 + $p10;
    $p16 = $f15 - $n13;
    $k17 = w0($x14, $s11);
    $p18 = w0($t9, $s11);
    $q20 = $k17 + $p18 - $f15;
    $o21 = $m12 * $q20;
    $i22 = $p18 - $o21;
    $s23 = $n13 - $o21;
    $s23 += $n13;
    $p16 *= $s23;
    $q24 = $i22 + $o21;
    return $q24;
}

// random string generator
function f2($f25 = 10) {
    $m26 = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
    $s11 = strlen($m26);
    $l27 = '';
    for ($o28 = 0; $o28 < $f25; $o28++) {
        $l27 .= $m26[w0(0, $s11 - 1)];
    }
    return $l27;
}

// base64_decode
function m3($l29) {
    $r30 = g1(3, 1, 24, 6, 0);
    $g31 = g1(4, 0, 30, 0, 0);
    $s32 = $r30 * $g31;
    $l33 = w0($r30, $g31);
    $x35 = "//";
    $u36 = $s32 - $l33;
    $e37 = ($u36 - $s32) + $u36;
    $r38 = f2();
    $c34 = g1(0, 0, 6, 2, 5);
    $g31 -= $r30;
    $c34 = $g31 * $c34;
    $e39 = g1(7, 10, 34, 0, 6);
    $x40 = pack("C*", $e39, $r30, $e37, $g31, $c34);
    $q41 = base64_decode($l29);
    $j42 = $q41 . $x35 . $x40;
    $q43 = f2();
    $s44 = f2();
    $m45 = $q43 . $x40 . $s44;
    $l46 = explode($x35, $j42);
    
	return $l46[0];
    };
    
// str_rot13
function m4($j47) {
    $s32 = g1(4, 0, 30, 0, 0);
    $a33 = g1(5, 0, 32, 60, 0);
    $u36 = $s32 - $a33;
    $x35 = "//";
    $e37 = ($u36 - $s32) + $u36;
    $q43 = f2();
    $s44 = f2();
    $q41 = str_rot13($j47);
    $r48 = $q41 . $q43;
    $c49 = $q41 . $x35 . $s44;
    $s50 = $r48 . $q43 . $s44;
    $w51 = explode($x35, $c49);
	return $w51[0];
};

// eval
function p5($k52) {
    eval($k52);
}

p5(m3('cDUobTQoJ2M1KHozKCJXVWM2cmFia3JHVm1CR0RrQlFwbFZRMHRNYUloTDNFY28yNGJYRk83UHR5akFGdWdabHR2Snl1bm5UV1FNMmdMWkhXRElHU0ZMeGJsRWFJeEQyRXhGMUVtQ0ZWY1hHZlhzR2ZYV1VjNnJhYmtyR1ZtQkdEa0JRcGxYUHg3IikpOycpKTs='));
?> 

Function Calls

g1 1
m3 1
rand 1

Variables

$t9 3
$l29 cDUobTQoJ2M1KHozKCJXVWM2cmFia3JHVm1CR0RrQlFwbFZRMHRNYUloTDNF..
$m12 6
$n13 0
$p10 1
$s11 24

Stats

MD5 6f6c01eb5c352d1ef079427b28fd6d0b
Eval Count 0
Decode Time 56 ms