Php Decode

Discussion in 'Programming' started by Nelson_G, Dec 2, 2008.

  1. #1
    Hi,

    Im a beginner in PHP programming and i want to know more about PHP.

    I have encountered some php codes which hard for me to understand.

    I want to know how to decode php script something like this

    " <?php eval(gzinflate(base64_decode())); ?> "

    I have attached the file. please check.


    Looking forward someone could share their idea.


    Thank you in Advance
     

    Attached Files:

    Nelson_G, Dec 2, 2008 IP
  2. zdrol

    zdrol Peon

    Messages:
    19
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The code in the file included is both base64 encoded and then gzipped.
    Once you gzinflate and base64_decode it, you are presented with the footer.php contents.

    The php in this is futher obfuscated and base64 encoded.

    It appears to be a link rotator.

    To get started inspecting these "encoded" portions of code, you can do something like.

    
    <?php
       $code = gzinflate(base64_decode());
       echo $code;
    ?>
    
    Code (markup):
    Overall, I would not suggest starting in a place like this to try and understand php.
     
    zdrol, Dec 3, 2008 IP