Can anybody decode this code?

Discussion in 'PHP' started by web_master, Jul 31, 2008.

  1. #1
    Hi guys
    <?php function d($s,$k=''){if($k==''){for($i=0;$i<strlen($s);$i){$d.=chr(hexdec(substr($s,$i,2)));$i=(float)($i)+2;}return $d;}else{$r='';$f=d('6261736536345f6465636f6465');$u=$f('Z3ppbmZsYXRl');$s=$u($f($s));for($i=0;$i<strlen($s);$i++){$c=substr($s,$i,1);$kc=substr($k,($i%strlen($k))-1,1);$c=chr(ord($c)-ord($kc));$r.=$c;}return $r;}}eval(d("XZBbb9owAIX/16SVAVWfEVMwXsRllKSoZRu5wS68TV0fuj1AljZ2bCeQOHbihKL+wiHtqX0+R9+nc5J40GdlGdWjgYLa19vvUH+yPxljcHsPPrJUEjUcqIlm/fwBPtTuMtrsSjKaPFMWDIb3bF9C6YtElDCptETkKiKKoc7jEdgYVEWxI+5Wx3IXCws/YR6ADi0IWfo6zQphGbPDsRoSwpGMmBhKamRMBeCzhTw7zkXRCfOUKzcA72fXV6a9OEXr6TojOcV7y6RcqJU1evQcA3vj4c0zwUwC3RqhpHYDri86rSZBuxyC+TRKqpUvwI123oxILLWu1Z9ewvXdt2utTErGsepMpt5WQFd72/jPOZufOD2SYpnaPiwO6GTfcGjB8zb2aQ76rTtZBYJEvegIz+YPIJaMLjddqlTumLNKVEaIymovUW1gnpsKp1lVIHb15TIssnSre38wwVkoM1IzRsAvVZey3IcJp56Jnd8ptHsXTRaGGYANz6Qsd3zed8FFIwjjvKc7M4SU52e6DVtvMI45hN70L6tfrtgwYIN2mxAaa/Bdw1sWNNEOIohzWQRiNLbgcvWi8wq4zaLj6zNjlXIvSLuLfw==",950577697));
     ?>
    PHP:
    Please decode this code, i need to change the value.
    Rep will be given
    Thanks
     
    web_master, Jul 31, 2008 IP
  2. Pos1tron

    Pos1tron Peon

    Messages:
    95
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <?php 
    function d($s,$k='') {
    if ($k=='') {
    for($i=0;$i<strlen($s);$i) {
    $d .=chr(hexdec(substr($s,$i,2)));
    $i=(float)($i)+2;
    }
    return $d;
    } else {
    $r='';
    $f=base64_decode;
    $u=$f('Z3ppbmZsYXRl');
    $s=$u($f($s));
    for($i=0;$i<strlen($s);$i++) {
    $c=substr($s,$i,1);
    $kc=substr($k,($i%strlen($k))-1,1);
    $c=chr(ord($c)-ord($kc));
    $r.=$c;
    }
    return $r;
    }
    }
    eval('</div>
    </div>
    <!-- END: sitenav -->
    	<div class="sub">
    	Powered by 	<a href="http://www.acquisix.com/resource06.html">Telemarketing Outsourcing</a>
    	</div>
    </div>
    </div>
    
    		<?php wp_footer(); ?>
    
    </body>
    </html>
    if((isset($v) AND $v==0) OR (isset($t) AND $t==false)) {
    die('This script is protected by <a style=\"color:cyan\" href=\"http://www.gencoder.sf.net\"><b><font color=\"#330099\">G-Encoder</font></b></a>');
    }
    echo "</div>\n"; 
    echo "</div>\n"; 
    echo "<!-- END: sitenav -->\n"; 
    echo "	<div class=\"sub\">\n"; 
    echo "	Powered by 	<a href=\"http://www.acquisix.com/resource06.html\">Telemarketing Outsourcing</a>\n"; 
    echo "	</div>\n"; 
    echo "</div>\n"; 
    echo "</div>\n"; 
    echo "\n"; 
    echo "		<?php wp_footer(); ?>\n"; 
    echo "\n"; 
    echo "</body>\n"; 
    echo "</html>\n";);';
    ?>
    PHP:
    Got most of the way there, but not all I don't think (need to go).
     
    Pos1tron, Jul 31, 2008 IP
    web_master likes this.
  3. zerxer

    zerxer Peon

    Messages:
    368
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I just posted this in that other thread but I'll post it here too..

     
    zerxer, Jul 31, 2008 IP
  4. live-cms_com

    live-cms_com Notable Member

    Messages:
    3,128
    Likes Received:
    112
    Best Answers:
    0
    Trophy Points:
    205
    Digital Goods:
    1
    #4
    It seems G-Encoder fails...

    But in their own words - "unlike Zend Encoder, this script won't solve your problem from hiding the source code from advance programmer but at least you're one step closer to making your code tougher for people to steal."
     
    live-cms_com, Jul 31, 2008 IP
  5. zerxer

    zerxer Peon

    Messages:
    368
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yea but if it's an advanced programmer, they're usually capable of making the script themselves or smart enough not to steal someone else's work like that.

    It's when people who don't have a clue how to decode files start asking others to do it for them and then those people actually do it that's bad.
     
    zerxer, Jul 31, 2008 IP
  6. Dollar

    Dollar Active Member

    Messages:
    2,598
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    90
    #6
    Thats not much of a encoding. It just a base64 string. Thats probably as bad as trying to hide your html with javascript escape()
     
    Dollar, Aug 1, 2008 IP
  7. live-cms_com

    live-cms_com Notable Member

    Messages:
    3,128
    Likes Received:
    112
    Best Answers:
    0
    Trophy Points:
    205
    Digital Goods:
    1
    #7
    I threw it into a base64 decoder at first and got rubbish characters back. I think there's more to it than base64 encoding.
     
    live-cms_com, Aug 1, 2008 IP
  8. web_master

    web_master Well-Known Member

    Messages:
    649
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    130
    #8
    Hi guys again,
    i ve done it already, it was too hard for me but somebody from another forum done it in less than a minute.
    Thanks everybody anyway.
     
    web_master, Aug 1, 2008 IP