How Can Decode This Code ?!?

Discussion in 'PHP' started by Hamad, Nov 3, 2007.

  1. #1
    Hi ,,

    I need To Decode This code

    function e($m){$k = "fc38ecf7b7a1b2281b07aecd42948feb";$x = $y = 0;$s = range(0, 255);
    foreach( range(0, 255) as $x ){$y=(ord($k[$x%strlen($k)])+$s[$x]+$y)%256;$tmp = $s[$x];
    $s[$x] = $s[$y];$s[$y] = $tmp;}$y = $x = 0;for($i = 0; $i < strlen($m); $i++){$x++;if($x>255)
    $x=0;$y+=$s[$x];if($y>255)$y-=256;$tmp = $s[$x];$s[$x] = $s[$y];$s[$y] = $tmp;$cipher .= 
    chr(ord($m[$i])^$s[($s[$x]+$s[$y])%256]);}return $cipher;}function i(){$i="dnKJ2NgKJIM/1BWX8H".
    "Ii3hcY5Aiy/bJcbt6lfymST7AxmjCAb8UgbuytDLL5TiyzmKPElOrBVAPQl2BB4KDSImfnLaoUkZK/0sEcgRw4HwbymK33".
    "ovHhKnMuWvk4nsPJmiOCe5dILEUeJaewGlNZzo/5GDw/+4lFK1DnXwx3ilfRSk0zsV02HNvuxVyMBgGjNWbj3Qy/";
    eval(e(base64_decode($i)));}function Format(&$d){$x="dn6UwplBedNlmBum+nJqkxcQq0G15r5bZpmVSAngb".
    "pwPrTe6XuIFXdDCNoj+emj427TZh+7LB0edq1ZqwZO3BFmyCJcuoLme8vxoi2wqBway07CriNnKFwslQuwkg8jPmCG1".
    "f59IfwtTKb6lHU5TmsS0aD8h/Z5OPBXBBkokmVfMS0114xF+TMu+kB3PCFTvfnTny0Stth6NDL3A4KU0VjJbXtPZCyb2T".
    "gqg+bTRrangz9k1SPoUlVcKK8ay5Tdt8RmeEt/B0n52oYG+Q3HqVOVTEEt1kJmTzyd6L2t7MIXdGArFb4YW0uIqgCpB".
    "9pCSsoqAj5dSEgAO3PMYgN1gFnUUDHqD0QYTvWIWVzteYkBetr4pBTWQdf8p18qzHqA3iudtK/PzdZkN6HhHIMN63P5qlH".
    "dnfU08FlfpD5ckVBBtLAtLFje25U8gfGQEVNvC7R7YIb/9Wy5bFv2Pa0BQj7O74qXCLNnj76EJi5OHmHhu7csCJPH7H".
    "SjwXHo24sKzDJkPvUbPAuhYceiiwIIpHhpZ2udc0IE+k6XXy69RAkJQjX0yQCICuIT7MotZfSLoOWdO";
    eval(e(base64_decode($x)));}
    PHP:
    And Encode agin

    Thanks Alot:D
     
    Hamad, Nov 3, 2007 IP
  2. crazyryan

    crazyryan Well-Known Member

    Messages:
    3,087
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    175
  3. Fash

    Fash Peon

    Messages:
    37
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    $d='alaqwa.com';if(isset($_SERVER['HTTP_HOST'])&&strpos($_SERVER['HTTP_HOST'],$d)===FALSE){print "This software is licensed for use on $d only";exit;}
    
    $h = '<!-- Removing this code will result in immediate license termination --><div align="center" class="jmbfoot">Powered By <a href="http://www.jmbsoft.com/" target="_blank" class="jmblink">AutoRank PHP</a></div>'; if( preg_match("/%%Powered_By%%/i", $d) != 0 ) { $d = preg_replace("/%%Powered_By%%/i", $h, $d); } else if( preg_match("/<\/body>/i", $d) != 0 ) { $d = preg_replace("/<\/body>/i", "$h </body>", $d); } else { $d .= $h; }
    PHP:
    Somehow I get the feeling you are not allowed to modify or remove this.. In fact, I would be willing to bet that somewhere near the top of this file, there is something along the lines of "YOU MAY NOT REVERSE ENGINEER ANY PART OF THIS FILE". Oh, well. Too late now..
     
    Fash, Nov 3, 2007 IP
  4. exodus

    exodus Well-Known Member

    Messages:
    1,900
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    165
    #4
    Hamad: It is not nice to decode commercial software packages. I would hate for any of my packages to be decoded. It can be done, but I do not think you should do this. I think you should contact the creator for support instead.
     
    exodus, Nov 4, 2007 IP
  5. Krownet

    Krownet Peon

    Messages:
    42
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Haha!

    That is awesome encoding, and the encoding on the script is ultimatley useless. Would have been better to use Zend or Ioncube to hide what it does.

    Anyways, I'm with exodus on this, wouldn't want my stuff to be hacked and reused. Btw, who is alaqwa. Oh, looks like a Powered By statement. Hrm.

    Anyways, have fun.
     
    Krownet, Nov 4, 2007 IP
  6. Hamad

    Hamad Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thank you man ,,

    But How Ican Encode the code Again
     
    Hamad, Nov 4, 2007 IP
  7. cullenstrategy

    cullenstrategy Banned

    Messages:
    62
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    search google for: base64 encode
     
    cullenstrategy, Nov 4, 2007 IP
  8. Fash

    Fash Peon

    Messages:
    37
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I'm not going to help you circumvent a copyright measure which you don't have the authority to remove.
     
    Fash, Nov 4, 2007 IP