Seeing encrypted code in php

This is a discussion on Seeing encrypted code in php within the PHP Language forums, part of the PHP Programming Forums category; I have some files with encrypted code. I am trying to edit the pages and believe the encrypted portion has ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-28-2008
Bacchus
 
Posts: n/a
Default Seeing encrypted code in php

I have some files with encrypted code.
I am trying to edit the pages and believe
the encrypted portion has some code I need to edit.

Is there a way to print out the code to see the
raw code without the encryption or any other way to
view the code??

thanks

Reply With Quote
  #2 (permalink)  
Old 04-28-2008
Ivan Marsh
 
Posts: n/a
Default Re: Seeing encrypted code in php

On Mon, 28 Apr 2008 19:01:39 +0000, Bacchus wrote:

> I have some files with encrypted code.
> I am trying to edit the pages and believe
> the encrypted portion has some code I need to edit.
>
> Is there a way to print out the code to see the
> raw code without the encryption or any other way to
> view the code??


Forgive me for thinking that if the code is encrypted, keeping you from
editing it is exactly why it's encrypted... and I'm guessing encrypting it
from the original source code is how it got that way. If there's some easy
way to decrypt it and edit it I'd be surprised.

--
"Remain calm, we're here to protect you!"

Reply With Quote
  #3 (permalink)  
Old 04-28-2008
Piotr
 
Posts: n/a
Default Re: Seeing encrypted code in php

Bacchus wrote:
> I have some files with encrypted code.
> I am trying to edit the pages and believe
> the encrypted portion has some code I need to edit.
>
> Is there a way to print out the code to see the
> raw code without the encryption or any other way to
> view the code??


It depends on the way it's coded.
If it's coded with IonCube encoder, then it's not possible to
convert it back to PHP. You should contact original developer of the
code and ask him to change it or you could write your own code (or ask
someone to) that would suit your needs.

ionCube 'compiles' PHP scripts to intermediate state (called 'opcode')
and then encrypts it. There is no easy way to revert the process.

best regards
Piotr N
Reply With Quote
  #4 (permalink)  
Old 04-29-2008
Twayne
 
Posts: n/a
Default Re: Seeing encrypted code in php

> I have some files with encrypted code.
> I am trying to edit the pages and believe
> the encrypted portion has some code I need to edit.
>
> Is there a way to print out the code to see the
> raw code without the encryption or any other way to
> view the code??
>
> thanks


Unencrypt it. But unless you encrypted it, you're not likelyh to be
able to. That's why it's encrypted; duhh!
--
Regards,

Twayne

Open Office isn't just for wimps anymore;
OOo is a GREAT MS Office replacement
www.openoffice.org



Reply With Quote
  #5 (permalink)  
Old 04-29-2008
C. (http://symcbean.blogspot.com/)
 
Posts: n/a
Default Re: Seeing encrypted code in php

On 29 Apr, 01:11, "Twayne" <nob...@devnull.spamcop.net> wrote:
> > I have some files with encrypted code.
> > I am trying to edit the pages and believe
> > the encrypted portion has some code I need to edit.

>
> > Is there a way to print out the code to see the
> > raw code without the encryption or any other way to
> > view the code??

>
> > thanks

>
> Unencrypt it. But unless you encrypted it, you're not likelyh to be
> able to. That's why it's encrypted; duhh!
> --
> Regards,


A client asked me to install some code he had purchased - I said I
would if it met our security guidelines after a code examinition at £1/
source line. He agreed. The code arrived - it was encrypted - which
meant ti immediately failed. But it included the PHP decryptor:

eval(str_rot13(base64_decode("................

Once our 1337 team of uber-hackers (;) reverse-engineered this we
found the PHP source code reflected the quality of the encryption
algorithm.

But like Piotr said - if the encryption has been done properly then
its not worth the effort.

C.
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:17 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0