Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 13 of 13
  1. #1
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Decode PHP Base64

    have been trying to decode using base64 but was unsucessful. What is the proper way to decode base64. Here is the file I am trying to decode.

    <?php $_F=__FILE__;$_X='P0Q+P1lUWQ0gdSoJdElySy1JeEtjWXctS31Hb3pZVFkJKnUNIElySUljdkdfSXd9S3coKTsNIA0gY0d4MX QucigndElySy1JeEtjWXctSVR9S3IuemNHeHpZVFknKTsNIA0gJC5zLUR9Li5fS31Hb2NHaigkX008TmgzJ2NCfWpyYy4nUiw2JF 9NPE5oMyd9MXN0QmMuJ1IsNiRfTTxOaDMnS31Hb0p9MXRyJ1IpOw0gDSANID9E';$_D=strrev('edoced_46esab');eval($_D ('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCd1VzVQOFZrb2xjSFFTWHkyRm0gNFJ0Cnc8MGhiM11nSmpwRT ZNZjc9VT5LTGlBR3hhMXo5WmRldltuTy5zWVRESU57Q31CcXIvJywnL0QwNTN4Mms5aVZNezdacTRHCkpddUF0T0JUNltFSHZnS1 ggUH04akw8cj15MW5jUWwuTndXVW9SSUZkYnBoPnNTWXphbUNlZicpOyRfUj1zdHJfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0 YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));?>

  • #2
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,172
    Thanks
    19
    Thanked 65 Times in 64 Posts
    base64_decode()

    what is the file and why does it look like that?

  • #3
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,172
    Thanks
    19
    Thanked 65 Times in 64 Posts
    Somone has clearly gone to a great deal of trouble to obfuscate this code - presumably to protect their IP. Even if you base64_decode it - its not going to help you much

    PHP Code:
    $_X "?D>?YTY
     u*    tIrK-IxKcYw-K}GozYTY    *u
     IrIIcvG_Iw}Kw();
     
     cGx1t.r('tIrK-IxKcYw-IT}Kr.zcGxzYTY');
     
     $.s-D}.._K}GocGj($_M<Nh3'cB}jrc.'R,6$_M<Nh3'}1stBc.'R,6$_M<Nh3'K}GoJ}1tr'R);
     
     
     ?D"
    ;

    $_X=strtr($_X,'uW5P8VkolcHQSXy2Fm 4Rtw<0hb3]gJjpE6Mf7=U>KLiAGxa1z9Zdev[nO.sYTDIN{C}Bqr/','/D053x2k9iVM{7Zq4GJ]uAtOBT6[]EHvgKX P}8jL<r=y1ncQl.NwWUoRIFdbph>sSYzamCef');
    $_R=str_replace('__FILE__',"'".$_F."'",$_X);
    eval(
    $_R);
    $_R=0;
    $_X=0;
    ?> 
    Last edited by NancyJ; 07-31-2007 at 10:05 PM.

  • #4
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by NancyJ View Post
    base64_decode()

    what is the file and why does it look like that?
    It a PHP file that contains a php script.

  • #5
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,172
    Thanks
    19
    Thanked 65 Times in 64 Posts
    yes, I can see that but that doesnt explain either why its so heavy encoded, or why you're trying to decode it.

    FWIW, you're not missing out on anything.

  • #6
    Senior Coder rafiki's Avatar
    Join Date
    Aug 2006
    Location
    Floating around somewhere...
    Posts
    2,046
    Thanks
    19
    Thanked 42 Times in 42 Posts
    Quote Originally Posted by phpman View Post
    It a PHP file that contains a php script.
    did you read post #3?

  • #7
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by NancyJ View Post
    yes, I can see that but that doesnt explain either why its so heavy encoded, or why you're trying to decode it.

    FWIW, you're not missing out on anything.
    I am trying to figure out what was used for encryption since it is heavily encypted. Almost 2 time encryption. This can be useful for my coding.

  • #8
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,172
    Thanks
    19
    Thanked 65 Times in 64 Posts
    you know what was used for encryption... well technically its not encrypted its encoded. But the encoding is base64 - which you already knew.

    ...also the likelihood that he did this manually - is pretty much zero. And the chances of you replicating it manually, is equally slim. So knowing how it was encoded will not help you in your coding.
    The only reason to decode it is to see access the real code. Which obviously the author doesnt want.
    Last edited by NancyJ; 07-31-2007 at 10:38 PM.

  • #9
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by NancyJ View Post
    you know what was used for encryption... well technically its not encrypted its encoded. But the encoding is base64 - which you already knew.

    ...also the likelihood that he did this manually - is pretty much zero. And the chances of you replicating it manually, is equally slim. So knowing how it was encoded will not help you in your coding.
    The only reason to decode it is to see access the real code. Which obviously the author doesnt want.
    I do have the original code, but that wont help me

  • #10
    ess
    ess is offline
    Regular Coder
    Join Date
    Oct 2006
    Location
    United Kingdom
    Posts
    866
    Thanks
    7
    Thanked 30 Times in 29 Posts
    There are many encoders that you can use for encoding your PHP script...some are commercial and some are free.

    Just do a google search on "PHP Script Encoders" and you should find plenty of results.

    And since you already have the original script, surely you can remember how you have encoded it. or, if the script was written by someone else, why not ask them...instead of asking others to help hack someone else's code.

  • #11
    New to the CF scene
    Join Date
    Aug 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    here you go :

    PHP Code:
    <?php
    /*    user-script-rank.php    */
    session_start();

    include(
    'user-script-shared.inc.php');

    $db->add_ranking($_POST['imageid'], $_POST['albumid'], $_POST['rankvalue']);


    ?>

  • #12
    New to the CF scene
    Join Date
    Nov 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    HELLO ONE23, Please can you help me?

    php files attached..

    THANKS!!
    Attached Files Attached Files

  • #13
    New to the CF scene
    Join Date
    Mar 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need Help Please

    I am new to this website and was told by a few from another forum about you guys so be gentle.

    Anyways I have been trying to decode this for awhile since the place I purchased the script from no longer sells it and thus no longer supports it and I need help on this one page, I have decoded the other 4 pages they did but this one is kicking my butt.

    I sure would appreciate any help from you on this and you would become my hero. thanks guys

    Code:
    <?php 
    $OOO0O0O00=__FILE__;$OOO000000=urldecode('%61%68%36%73%62%65%68%71%6c%61%34%63%6f%5f%73%61%64');$OO00O0000=2288;$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};$O0O0000O0='OOO0000O0';eval(($$O0O0000O0('aWYoITApJE8wMDBPME8wMD1mb3BlbigkT09PME8wTzAwLCdyYicpO2ZnZXRzKCRPMDAwTzBPMDAsMTAyNCk7ZmdldHMoJE8wMDBPME8wMCw0MDk2KTskT08wME8wME8wPShiYXNlNjRfZGVjb2RlKHN0cnRyKGZyZWFkKCRPMDAwTzBPMDAsNzI0KSwnRW50ZXJ5b3V3a2hSSFlLTldPVVRBYUJiQ2NEZEZmR2dJaUpqTGxNbVBwUXFTc1Z2WHhaejAxMjM0NTY3ODkrLz0nLCdBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWmFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6MDEyMzQ1Njc4OSsvJykpKTtldmFsKCRPTzAwTzAwTzApOw==')));return;?>
    f2ipdoAPhtipF3YlftILUyOAAy9TOakBOakgaLyUA1SmA0aUaLaUb05nTAAmbULpkJCPwBaZcBfphtFPht4Qbt4pNzkPCbfiDBlidmYFRMYvdULmRtOwayOWb1YyAlcyAl9BWakTBZfTOakBOakgTLyYOUffhULpguXPholzF2a0htOgA0aUaLaUBZfwayOWb0iNA1Wmb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Htx0d3E9HtxScBc0NTESF2YZd2xSCMyZFz15cbHSfo9vdokiFj15cbHSFMazDbpiCMxlNalyA1XmhTSIFMa0fbkVwociduYlKZwIDuklcj0JDoaSFt5XDuEJNLilduE8R2r+eWPktWL8R3YXCB4+eWPktWL8F3nidJnjdoyzFz0JdBypdLxpdMsrDbcpcoaZwj4YtILktWl8eWPktWL8R3YXCB4+eWPktWL8F3nidj4YtILktWL8CUnjdoyzFz0JdBypdLxpdMSJwoiZcBC9wMYvdmOiC3OaFZ5XDuEJNLYvdmOiC3WIabH8R2r+eWPktWL8R3YXCB4+eWPktWLmK2lMwtipF0xvc2flcrlVhtLpwuS7cBYPdZEmtWLktTxzFoyVwoYSCbYzNUksCBlVTolVD0OpfMlLcbwJNI0htWLktWl8eWPktWLkNt9zFoyVNI0htWLktTxzFoyVNI0htWLktWL8CUnjdoyzFz0JdBypdLxpdMSJwoiZcBC9wmYpc25NfbWVFoiXwj5TDBfVwr91feXvCT4YtILktWL8R3YXCB4+eWPktWLmK307cBYPdZEmtWL8R3OLNI0htTXvfuw+eWP8R3OiCMxlNJF7


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •