help to decode php file

Discussion in 'PHP' started by hasan mohammad, Aug 17, 2010.

  1. #1
    hi

    can someone decode this file for me :D



    and what is that encode
     

    Attached Files:

    hasan mohammad, Aug 17, 2010 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    
     
     
    ${"GLOBALS"}["epzuxqtve"]="params";
    ${"GLOBALS"}["jdsclwrhlkv"]="method";
    ${"GLOBALS"}["ybdmctc"]="package";
     
    class CUBE extends JObject
    {
    	function _($type)
    	{
    		$uipmfd="params";
    		${"GLOBALS"}["gwfngwq"]="type";
    		$inxnrqzv="class";
    		${"GLOBALS"}["ieeohmj"]="params";
    		$gykjhm="package";
    		${"GLOBALS"}["pucporv"]="class";
    		$gpiemkqhqy="method";
    		
    		list(${$gykjhm},${${"GLOBALS"}["jdsclwrhlkv"]})=explode(".",${${"GLOBALS"}["gwfngwq"]});
    		${$inxnrqzv}="CUBE".ucfirst(${${"GLOBALS"}["ybdmctc"]});
    		require_once(JPATH_PLUGINS.DS."cube".DS."packages".DS.${${"GLOBALS"}["ybdmctc"]}.".php");
    		${$uipmfd}=func_get_args();
    		array_shift(${${"GLOBALS"}["ieeohmj"]});
    		
    		return call_user_func_array(array(${${"GLOBALS"}["pucporv"]},${$gpiemkqhqy}),${${"GLOBALS"}["epzuxqtve"]});
    		}
    	}
    	
    	defined("_JEXEC")or die("Restricted Access");
    	JHTML::stylesheet("cube.css","plugins/cube/assets/");
    	JHTML::script("cube.js","plugins/cube/assets/");
    	${"GLOBALS"}["fucpxkfk"]="ch";
    	JPlugin::loadLanguage("plg_cube",JPATH_ADMINISTRATOR);
    	
    	if(in_array("curl",get_loaded_extensions()))
    	{
    		$xsyvqwz="ch";
    		${$xsyvqwz}=curl_init();
    		curl_setopt(${${"GLOBALS"}["fucpxkfk"]},CURLOPT_URL,"http://www.jooforge.com/guard.php?d=".$_SERVER["HTTP_HOST"]);
    		curl_setopt(${${"GLOBALS"}["fucpxkfk"]},CURLOPT_RETURNTRANSFER,1);
    		$lwpdrbkj="ch";
    		curl_setopt(${$lwpdrbkj},CURLOPT_CONNECTTIMEOUT,5);
    		
    		if(!(boolean)curl_exec(${${"GLOBALS"}["fucpxkfk"]}))
    		{
    			JError::raiseError(0,"YOUR VERSION IS BLOCKED");
    		}
    		
    		curl_close(${${"GLOBALS"}["fucpxkfk"]});
    	}
    	
    ?>
    
    PHP:
     
    nico_swd, Aug 18, 2010 IP
  3. hasan mohammad

    hasan mohammad Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    man u rock thank you very much .


    how i can decode this type of encode plz ?



    *sorry for my bad English .
     
    hasan mohammad, Aug 18, 2010 IP
  4. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #4
    Put the code into a string.

    
    $str = "... code here ...";
    
    PHP:
    ... escape all double quotes and dollar signs.
    
    $str = "... \$... \".... ";
    
    PHP:
    ... then echo it.
     
    nico_swd, Aug 18, 2010 IP
    mcfox likes this.
  5. yohanip

    yohanip Well-Known Member

    Messages:
    350
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #5
    That is a very neat trick to encode php file, do you by any chance know any other form of encoding that is more powerful?
     
    yohanip, Aug 18, 2010 IP
  6. ThomasTwen

    ThomasTwen Peon

    Messages:
    113
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    edit: see above.
     
    ThomasTwen, Aug 18, 2010 IP
  7. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #7
    There are some others that use base64, rot13, and what not. But in the end they're easy to decode most of the times. It's really more of obfuscation rather than "encoding".
     
    nico_swd, Aug 18, 2010 IP
  8. sarahk

    sarahk iTamer Staff

    Messages:
    28,901
    Likes Received:
    4,555
    Best Answers:
    123
    Trophy Points:
    665
    #8
    And consider that the developer is trying to protect his/her intellectual property. There is so much for free on the net, and writing new code isn't hard... do you really have to steal?
     
    sarahk, Aug 18, 2010 IP
  9. hasan mohammad

    hasan mohammad Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    thank you nico_swd

    sorry sarahk i have to (steal) .

    it isn't easy to me write a code because i don't know anything about writing codes .

    now i am 17 years old now, after college i will start write my codes .
     
    hasan mohammad, Aug 18, 2010 IP
  10. sarahk

    sarahk iTamer Staff

    Messages:
    28,901
    Likes Received:
    4,555
    Best Answers:
    123
    Trophy Points:
    665
    #10
    Oh ok, that makes it alright then... not!

    being 17 doesn't mean you can shoplift. Aren't you worried about bringing shame upon your namesake?
     
    sarahk, Aug 19, 2010 IP
  11. Rainulf

    Rainulf Active Member

    Messages:
    373
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    85
    #11
    Sometimes, encoded PHP scripts contains backdoors, spywares, etc. - which also brings the infamous issue of copyrights ("if I bought something, is it mine or not? If it is, then i can do anything I want with it" kind of issue) Thankfully, the script above only sends host info to jooforge.com

    lol college is only there to point you the way, it's up to you to walk there or not.
     
    Rainulf, Aug 19, 2010 IP
  12. yohanip

    yohanip Well-Known Member

    Messages:
    350
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #12
    Yes, i could not agree more :D, a programmer is like a doctor, he/she gives medicine through a recipe, he/she might try to 'encode' the recipe writing, but then again you could always make a copy of the recipe and then buy/use that kind of medicine again when you or anyone you know are ill with the same symptom as he/she were, but when the illness is not cured, we go to the 'doctor' again asking for new improvements :)

    a programmer sometimes do not go to sleep for days just to get the script working and hoping that the script goes fine and make some income through it, surviving on the planet earth..

    the programmer have all the rights to retain his/her intellectual property, but the customer have all the right to the script they bought as long as it does not injure the programmer right

    this, then again goes with your the primary intention, if it's the case to see if the script does not include backdoor then it's a good will, but what if the customer intention is not just that?

    IMHO sometimes not every time and not everyone, people wants to make something good out from something not good (nulling scripts) :)
     
    yohanip, Aug 19, 2010 IP
  13. Rainulf

    Rainulf Active Member

    Messages:
    373
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    85
    #13
    Yeah, but that idea is old and it simply does not work at this day and age. And really, it only encourage the vicious cycle (encoded scripts are like telling users to "plz decode us") and stops innovation. A doctor does not 'encode' his recipe, he gives a full description of it. And if the illness is not cured, it means the doctor sucks and the customer needs to see a new doctor, not the same doctor. The patient then ask the new (or better) doctor to see what's wrong with the recipe - he can either improve it or develop a new one. The old doctor then have no choice but to improve himself. Here, we see innovation.

    Same idea can be applied in programming. If a customer buy a script from me, I give him full source of it - not half, because that's what he paid for. Not only you gain reputation, you also gain the trust of your customer. And who knows, maybe he'll come back to you and ask for a custom one. This is what we call "open source" - and just so you know, open source != "Free beer". I'm a supporter of the idea and i see nothing wrong with it thus far.

    If he has bad intention with the source code is really none of my business. Removes copyright? Don't care. Resell it? I'd be selling more (a better version) by then.
     
    Rainulf, Aug 19, 2010 IP
  14. xenon2010

    xenon2010 Peon

    Messages:
    237
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #14
    dude bcompile this and you won't will be able to see anything from the real codes..
    its very hard to decode bcompiled scripts.
     
    xenon2010, Aug 22, 2010 IP