LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Closed Thread
  Search this Thread
Old 03-16-2010, 03:13 AM   #1
k_oudom
Member
 
Registered: Aug 2009
Posts: 293

Rep: Reputation: 30
Decode PHP Code


Please anyone decode this PHP code for me.

Link Removed

Last edited by k_oudom; 03-16-2010 at 07:50 PM.
 
Old 03-16-2010, 07:12 AM   #2
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 572

Rep: Reputation: 120Reputation: 120
decode it?
 
Old 03-16-2010, 07:47 AM   #3
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
I got one of the files and it said this:

Code:
<?PHP
/* WARNING: This script is protected. Any attempt to reverse engineer, debug or de-code this file or its dependent files is strictly prohibited */
$codelock_file="content.php"; $codelock_filed=dirname(__FILE__); include("codelock.php"); return; ?>
PD9waHANCmlu$(x1ZGUgKCIuL(x)bmd1$WdlL(x)bmd1$WdlLnBocCIpOw0KaW5jbHVkZSAoIi4vaW5jbHVkZXMv$(9tbW9uLnBocCIpOw0KaW5jbHVkZSAoIi4vaW5jbHVkZXMv$(9tbW9uX3NlbG$ucG)wIik7DQoNCnNlc3Npb(5fc3R)cnQoKTsNCg0KJGJGaWxlTmFtZSA9ICJjb(50ZW50LnBocCI7DQok$lRwbE5)bWUgID0gImNvbnRlbnQudHBsIjsNCg0KJHRwbCA9IG5ldyBUZW1wbGF0ZSgk$XBwX3B)dGgpOw0KJHRwbC0+bG9)ZF9maWxlKCRiVHBsTmFtZSwgIm1)aW4iKTsNCg0KJGJNZXNz$WdlID0gIiI7DQoNCiRiVXNlclJpZ()0ID0gZ(V0X3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QgPSBDQVQu$(F0ZWdvcnlfaWQgV0)FUkUgaXNfc(VydmljZSBJTiAoMCwgMikgQU5EIGlu$WN0aXZlID0gMCIgLiAiIEFORCB0b3R)bF9zdG9jayA8PSBvcmRlcl9wb(ludCAiOw0KCSRiQ(91bnQgPSBnZXRfc3FsX3Z)bHVlKCRvX(Nvbm4sICRiU1FMKTsJDQoJaW$gKCRiQ(91bnQpICRiTWVzc(FnZSAuPSAk$k1zSW5(ZW50b3J5Ow0KCS8vIEVuZCBJbnZlbnRvcnkNCgkNCn0gLy8gRW5kIGlmIEFsZXJ0IA0KKi8NCmlmIC)zdHJjbXAoJGJNZXNz$WdlICwgIiIpICE9ICIiKQ0KCSR0cGwtPnNldF9($XIoIlJlbWluZGVyIiAsICJSZW1pbmRlcignJGJNZXNz$WdlJykiKTsNCg0KJHRwbC0+cGFyc(UoIkZvcm0iLCBm$WxzZSk7DQokdHBsLT5wcGFyc(UoIm1)aW4iLCBm$WxzZSk7IC8vIEVuZCBTdGF0ZW1lbnQNCj8+
Note the part I highlighted in bold.
 
Old 03-16-2010, 07:52 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
k oudom;
In the light of the comment from MTK*, please explain what you are trying to do.
 
Old 03-16-2010, 10:58 AM   #5
k_oudom
Member
 
Registered: Aug 2009
Posts: 293

Original Poster
Rep: Reputation: 30
I want to make some update logo. And check connection to the mysql database. Because I don't know the password. Why you ask me that much? Is it possible to decode this php code?
 
Old 03-16-2010, 11:06 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by k_oudom View Post
Because I don't know the password. Why you ask me that much?
I asked you that because of the information in the post by MTK*. I thought the concern was obvious: The file state--in effect--that you are not allowed to try and crack into it, get in without a password, etc. If that is what you need to do, then LQ cannot help.

If you will clarify some things, we might be able to help:
1. What exactly is the file in question?
2. Is it proprietary?
3. When you say "decode", do you mean "run without a password"
 
Old 03-16-2010, 11:12 AM   #7
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
The part that I highlighted states that it is illegal to decode the file to a human-readable format, or to understand how it works.

(Proprietary software bastards!)
 
Old 03-16-2010, 11:23 AM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Ahem: Last I checked, there was no law against proprietary SW---in fact, I use it regularly and I also believe that proprietary and opensource can co-exist.

The only evil in proprietary is if the consumer is put in a position where they have no choice.
 
Old 03-16-2010, 11:51 AM   #9
k_oudom
Member
 
Registered: Aug 2009
Posts: 293

Original Poster
Rep: Reputation: 30
Well, it's kind of accounting system of my company. Yesterday, the accountant come to me and said that she want to delete some records in a table but she can't do it because some kind of error. So I try to go direct into database to delete those records but I don't know the password and the accountant said that she didn't know mysql password either because it was already setup for her to use.
 
Old 03-16-2010, 01:38 PM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,659

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by k_oudom View Post
Well, it's kind of accounting system of my company. Yesterday, the accountant come to me and said that she want to delete some records in a table but she can't do it because some kind of error. So I try to go direct into database to delete those records but I don't know the password and the accountant said that she didn't know mysql password either because it was already setup for her to use.
If this is code someone wrote for you, tell them what you want to do, and what error(s) you're getting.

If this is someone elses code that you're using, then if they say you're not allowed to reverse-engineer it, you're NOT. Respect the rights of the author, as you'd like yours respected.
 
Old 03-16-2010, 01:46 PM   #11
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Regardless of any legal or ethical issues, when you are in a corporate environment, DO NOT start tampering with the SW that is put in place for you to use.

You and the accountant need to sit down with the people responsible for the relevant systems, software, etc.---i.e.: Work this through the established company channels--not under the table. (I'm assuming that you want to keep your job.....)
 
Old 03-16-2010, 07:49 PM   #12
k_oudom
Member
 
Registered: Aug 2009
Posts: 293

Original Poster
Rep: Reputation: 30
We need to pay for them to come and fix it. Well, I'm getting tired. If you guys don't help me. Just delete this thread.
 
Old 03-16-2010, 08:05 PM   #13
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by k_oudom View Post
If you guys don't help me.
We're not helping because it would be illegal do decode that PHP code to a human-readable format.
 
Old 03-16-2010, 08:12 PM   #14
k_oudom
Member
 
Registered: Aug 2009
Posts: 293

Original Poster
Rep: Reputation: 30
This is our system which already paid. It isn't illegal we change it to use for our company. We are responsible for licensing, not you.
 
Old 03-16-2010, 08:33 PM   #15
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
k_oudom;
Please know that we will do everything possible to help members with problems. In this case, I'm not sure that we are totally understanding each other with respect to what LQ can and cannot do.
Please contact me by private e-mail to discuss further. In the interim, I'm closing this.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Yesterday PHP worked just fine and today it wants to serve up the php code. orsty9001 Linux - Server 10 12-12-2008 10:48 AM
php page displaying text that is supposed to be part of php code DragonM15 Programming 9 07-31-2008 04:58 PM
Postfixadmin PHP setup file - only displays PHP code davidmbecker Linux - Software 3 04-17-2008 10:33 AM
PHP Mail Header decode =?iso-8859-2?B?QmFs4XpzIEJvZPM=?= vargadanis Programming 5 03-25-2007 11:11 AM
merge ASP code with PHP code.. possible ?? ALInux Programming 7 12-30-2005 08:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration