Jump to content

Adding code to obfuscated file...


CodeDog

Recommended Posts

I purchased some addon modules for the PrestaShop shopping cart system.  All module files have been obfuscated (single line obfuscation).  I don't know what system was used to obfuscate the code.

 

I'm trying to add a class to one of the files, but it isn't working.  Is it possible to add standard code to a file that has been obfuscated?  Seems like I should be able to just add the class code above or below the obfuscated line, but apparently not.

 

Anyone have any ideas?  Thanks...

Link to comment
Share on other sites

Purchased files that are obfuscated means the developer doesn't want anyone monkey'in with their work.  You could go back to the purchased place and ask them to do it for you.  Adding a class to any file would work, it is tying it into the system, that you have no idea about, that is difficult.

Link to comment
Share on other sites

Thanks jc.  I've seen obfuscated code injected into standard code files quite often, so I figured it shouldn't be an issue to 'inject' some standard code into a file with a line of obfuscated code.  Guess it doesn't work that way.  Appreciate the reply...

Link to comment
Share on other sites

You can add extra code above or below the existing code without a problem, ie:

<?php
//your new code here
include 'someclass.php';

//The existing code
?>
You wouldn't be able to modify anything in the middle of the existing code without undoing the obfuscation though. Without being able to modify the existing code, adding a class to the file seems kind of pointless as it wouldn't be used by the code. Edited by kicken
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.