...

View Full Version : Decode PHP Base64



phpman
07-31-2007, 06:40 PM
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=='));?>

NancyJ
07-31-2007, 09:21 PM
base64_decode()

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

NancyJ
07-31-2007, 10:02 PM
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



$_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;
?>

phpman
07-31-2007, 10:27 PM
base64_decode()

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

It a PHP file that contains a php script.

NancyJ
07-31-2007, 10:30 PM
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.

rafiki
07-31-2007, 10:30 PM
It a PHP file that contains a php script.

did you read post #3?

phpman
07-31-2007, 10:34 PM
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.

NancyJ
07-31-2007, 10:35 PM
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.

phpman
07-31-2007, 10:46 PM
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

ess
07-31-2007, 11:18 PM
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.

one23
08-11-2009, 02:00 AM
here you go :



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

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

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


?>

crackdj
11-14-2009, 08:09 PM
HELLO ONE23, Please can you help me? :)

php files attached..

THANKS!! :thumbsup:

Jimbos12
03-15-2010, 09:59 PM
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


<?php
$OOO0O0O00=__FILE__;$OOO000000=urldecode('%61%68%36%73%62%65%68%71%6c%61%34%63%6f%5f%73%61%64');$OO0 0O0000=2288;$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO00000 0{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO00000 0{12}.$OOO0000O0{7}.$OOO000000{5};$O0O0000O0='OOO0000O0';eval(($$O0O0000O0('aWYoITApJE8wMDBPME8wMD1m b3BlbigkT09PME8wTzAwLCdyYicpO2ZnZXRzKCRPMDAwTzBPMDAsMTAyNCk7ZmdldHMoJE8wMDBPME8wMCw0MDk2KTskT08wME8w ME8wPShiYXNlNjRfZGVjb2RlKHN0cnRyKGZyZWFkKCRPMDAwTzBPMDAsNzI0KSwnRW50ZXJ5b3V3a2hSSFlLTldPVVRBYUJiQ2NE ZEZmR2dJaUpqTGxNbVBwUXFTc1Z2WHhaejAxMjM0NTY3ODkrLz0nLCdBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWmFiY2RlZmdo aWprbG1ub3BxcnN0dXZ3eHl6MDEyMzQ1Njc4OSsvJykpKTtldmFsKCRPTzAwTzAwTzApOw==')));return;?>
f2ipdoAPhtipF3YlftILUyOAAy9TOakBOakgaLyUA1SmA0aUaLaUb05nTAAmbULpkJCPwBaZcBfphtFPht4Qbt4pNzkPCbfiDBli dmYFRMYvdULmRtOwayOWb1YyAlcyAl9BWakTBZfTOakBOakgTLyYOUffhULpguXPholzF2a0htOgA0aU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ftXIbtfPcBlmDuW9YTwXRufpcuOPNTAXHtx0 d3E9HtxScBc0NTESF2YZd2xSCMyZFz15cbHSfo9vdokiFj15cbHSFMazDbpiCMxlNalyA1XmhTSIFMa0fbkVwociduYlKZwIDukl cj0JDoaSFt5XDuEJNLilduE8R2r+eWPktWL8R3YXCB4+eWPktWL8F3nidJnjdoyzFz0JdBypdLxpdMsrDbcpcoaZwj4YtILktWl8 eWPktWL8R3YXCB4+eWPktWL8F3nidj4YtILktWL8CUnjdoyzFz0JdBypdLxpdMSJwoiZcBC9wMYvdmOiC3OaFZ5XDuEJNLYvdmOi C3WIabH8R2r+eWPktWL8R3YXCB4+eWPktWLmK2lMwtipF0xvc2flcrlVhtLpwuS7cBYPdZEmtWLktTxzFoyVwoYSCbYzNUksCBlV TolVD0OpfMlLcbwJNI0htWLktWl8eWPktWLkNt9zFoyVNI0htWLktTxzFoyVNI0htWLktWL8CUnjdoyzFz0JdBypdLxpdMSJwoiZ cBC9wmYpc25NfbWVFoiXwj5TDBfVwr91feXvCT4YtILktWL8R3YXCB4+eWPktWLmK307cBYPdZEmtWL8R3OLNI0htTXvfuw+eWP8 R3OiCMxlNJF7



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum