473,372 Members | 905 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 software developers and data experts.

PHP Obfuscator?

Does anyone know of a good, reliable PHP obfuscator, preferably one that
doesn't cost an arm and a leg? I tried Mike's gzen encoder, however I had
problems with included files. (e.g. I have a file vars.inc.php that includes
sql_connect.inc.php, in which a connection to mysql is made, and then in the
top-level files I do mysql_query($query, $MySQL_Link) [$MySQL_Link is the
connection made in sql_connect.inc.php], and I get an error about 'invalid
link resource' after using the gzen obfuscator...)

I've tried about a dozen that I found on google (yes, i tried pobs, but the
resultant code had syntax errors, and god knows I'm not going to dig through
*that* to find syntax errors!), so now I'm turning to others for help ^-^

I'd like not to have to buy the Zend encoder... ack...

Thanks in advance.
Jul 17 '05 #1
19 10502
OK, you will be happy to know (at least I am) that I found the problem with
the encoder series, I will be making adjustments to them in the next few
days, This also solves the problem with encoder so.

--
Mike Bradley
http://gzen.myhq.info -- free online php tools
Jul 17 '05 #2
"Agelmar" <if**********@comcast.net> wrote in message
news:bs************@ID-30799.news.uni-berlin.de...
Does anyone know of a good, reliable PHP obfuscator, preferably one that
doesn't cost an arm and a leg? I tried Mike's gzen encoder, however I had
problems with included files. (e.g. I have a file vars.inc.php that includes sql_connect.inc.php, in which a connection to mysql is made, and then in the top-level files I do mysql_query($query, $MySQL_Link) [$MySQL_Link is the
connection made in sql_connect.inc.php], and I get an error about 'invalid
link resource' after using the gzen obfuscator...)

I've tried about a dozen that I found on google (yes, i tried pobs, but the resultant code had syntax errors, and god knows I'm not going to dig through *that* to find syntax errors!), so now I'm turning to others for help ^-^

I'd like not to have to buy the Zend encoder... ack...

Thanks in advance.


Funny you should mention that, I was working on the binary decoder tonight,
and ran across the problem of include files, then it hit me, does the gZen
encoder have the same problems, yep it does, so I am going to try and solve
those first before I do the binary decoder.

--
Mike Bradley
http://gzen.myhq.info -- free online php tools
Jul 17 '05 #3
http://turck-mmcache.sourceforge.net/

Can encode files and generally do that which Zend Encoder does.

It can also load it's "loader library" at run time using the dl() command.

Jamie.

"Agelmar" <if**********@comcast.net> wrote in message
news:bs************@ID-30799.news.uni-berlin.de...
Does anyone know of a good, reliable PHP obfuscator, preferably one that
doesn't cost an arm and a leg? I tried Mike's gzen encoder, however I had
problems with included files. (e.g. I have a file vars.inc.php that includes sql_connect.inc.php, in which a connection to mysql is made, and then in the top-level files I do mysql_query($query, $MySQL_Link) [$MySQL_Link is the
connection made in sql_connect.inc.php], and I get an error about 'invalid
link resource' after using the gzen obfuscator...)

I've tried about a dozen that I found on google (yes, i tried pobs, but the resultant code had syntax errors, and god knows I'm not going to dig through *that* to find syntax errors!), so now I'm turning to others for help ^-^

I'd like not to have to buy the Zend encoder... ack...

Thanks in advance.

Jul 17 '05 #4
On Wed, 31 Dec 2003 02:38:32 -0500, "Agelmar"
<if**********@comcast.net> wrote:
Does anyone know of a good, reliable PHP obfuscator, preferably one that
doesn't cost an arm and a leg?


have you already tried POBS?

http://pobs.mywalhalla.net/

Regards

Marian
--
Internet-Dienstleistungen - von der Webseite bis zum Online-Shop
http://www.heddesheimer.de mailto:ma****@heddesheimer.de
Jul 17 '05 #5
de******************@spamgourmet.com idiotically stated:
On Wed, 31 Dec 2003 02:38:32 -0500, "Agelmar"
<if**********@comcast.net> wrote:
Does anyone know of a good, reliable PHP obfuscator, preferably one
that doesn't cost an arm and a leg?


have you already tried POBS?

http://pobs.mywalhalla.net/


Can you read?

--
brian ... brian@cc
www.brianculler.com
Jul 17 '05 #6
Jamie Burns wrote:
http://turck-mmcache.sourceforge.net/

Can encode files and generally do that which Zend Encoder does.

It can also load it's "loader library" at run time using the dl()
command.

Jamie.


Thanks, but the client is using a shared server with PHP running as CGI in
safe mode, hence that's a no go :(
Jul 17 '05 #7
"Agelmar" <if**********@comcast.net> wrote in message
news:bs************@ID-30799.news.uni-berlin.de...
Does anyone know of a good, reliable PHP obfuscator, preferably one that
doesn't cost an arm and a leg? I tried Mike's gzen encoder, however I had
problems with included files. (e.g. I have a file vars.inc.php that includes sql_connect.inc.php, in which a connection to mysql is made, and then in the top-level files I do mysql_query($query, $MySQL_Link) [$MySQL_Link is the
connection made in sql_connect.inc.php], and I get an error about 'invalid
link resource' after using the gzen obfuscator...)

Hello, its me again,

I rewrote my encoder, it should work, if not, well I tried, sorry. But I
will keep on working on it, it is turning into a pet project. :)

So far just the gZen Encoder is using the new core, and it spits back a zip
file, so no more copy & paste.

--
Mike Bradley
http://gzen.myhq.info -- free online php tools


Jul 17 '05 #8
CountScubula wrote:
"Agelmar" <if**********@comcast.net> wrote in message
news:bs************@ID-30799.news.uni-berlin.de...
Does anyone know of a good, reliable PHP obfuscator, preferably one
that doesn't cost an arm and a leg? I tried Mike's gzen encoder,
however I had problems with included files. (e.g. I have a file
vars.inc.php that includes sql_connect.inc.php, in which a
connection to mysql is made, and then in the top-level files I do
mysql_query($query, $MySQL_Link) [$MySQL_Link is the connection made
in sql_connect.inc.php], and I get an error about 'invalid link
resource' after using the gzen obfuscator...)

Hello, its me again,

I rewrote my encoder, it should work, if not, well I tried, sorry.
But I will keep on working on it, it is turning into a pet project. :)

So far just the gZen Encoder is using the new core, and it spits back
a zip file, so no more copy & paste.


I will give it a try and let you know how it works :-)
Jul 17 '05 #9
Agelmar wrote:
<snip>
Hello, its me again,

I rewrote my encoder, it should work, if not, well I tried, sorry.
But I will keep on working on it, it is turning into a pet project.
:)

So far just the gZen Encoder is using the new core, and it spits back
a zip file, so no more copy & paste.


I will give it a try and let you know how it works :-)


Wow... I'm most impressed. I encoded one page, vars.inc.php, and
sql_connect.inc.php, and it all still works. Even pages which are not
encoded can still include the encoded vars.inc.php and not have a problem.
Nice going.

- Ian
Jul 17 '05 #10
On Thu, 1 Jan 2004 10:23:25 -0500, "Agelmar"
<if**********@comcast.net> brought forth from the murky depths:
Agelmar wrote:
<snip>
Hello, its me again,

I rewrote my encoder, it should work, if not, well I tried, sorry.
But I will keep on working on it, it is turning into a pet project.
:)

So far just the gZen Encoder is using the new core, and it spits back
a zip file, so no more copy & paste.


I will give it a try and let you know how it works :-)


Wow... I'm most impressed. I encoded one page, vars.inc.php, and
sql_connect.inc.php, and it all still works. Even pages which are not
encoded can still include the encoded vars.inc.php and not have a problem.
Nice going.


What is the reason behind obfuscation/encoding? Is it to protect
your code from potential login/password viewing on a shared
server, or to somewhat copyright your code, or what?
----------------------------------------------------------
Please return Stewardess to her original upright position.
--------------------------------------
http://www.diversify.com Tagline-based T-shirts!
Jul 17 '05 #11

"Agelmar" <if**********@comcast.net> wrote in message
news:bt************@ID-30799.news.uni-berlin.de...
Agelmar wrote:
<snip>
Hello, its me again,

I rewrote my encoder, it should work, if not, well I tried, sorry.
But I will keep on working on it, it is turning into a pet project.
:)

So far just the gZen Encoder is using the new core, and it spits back
a zip file, so no more copy & paste.


I will give it a try and let you know how it works :-)


Wow... I'm most impressed. I encoded one page, vars.inc.php, and
sql_connect.inc.php, and it all still works. Even pages which are not
encoded can still include the encoded vars.inc.php and not have a problem.
Nice going.

- Ian


Having fun replying to yourself? ;-)
You forgot to change your user name/nick.
Jul 17 '05 #12
<> wrote:
"Agelmar" <if**********@comcast.net> wrote in message
news:bt************@ID-30799.news.uni-berlin.de...
Agelmar wrote:
<snip>
Hello, its me again,

I rewrote my encoder, it should work, if not, well I tried, sorry.
But I will keep on working on it, it is turning into a pet project.
:)

So far just the gZen Encoder is using the new core, and it spits
back a zip file, so no more copy & paste.

I will give it a try and let you know how it works :-)


Wow... I'm most impressed. I encoded one page, vars.inc.php, and
sql_connect.inc.php, and it all still works. Even pages which are not
encoded can still include the encoded vars.inc.php and not have a
problem. Nice going.

- Ian


Having fun replying to yourself? ;-)
You forgot to change your user name/nick.


Not trying to appear as two different people. On this group I always post as
"Agelmar" and sign as "Ian" or "Ian Fette", simply because on all the other
groups I follow I post as "Agelmar", and I'm too darned lazy to change it
all the time back and forth :P
Jul 17 '05 #13
Larry Jaques wrote:
On Thu, 1 Jan 2004 10:23:25 -0500, "Agelmar"
<if**********@comcast.net> brought forth from the murky depths:
Agelmar wrote:
<snip>
Hello, its me again,

I rewrote my encoder, it should work, if not, well I tried, sorry.
But I will keep on working on it, it is turning into a pet project.
:)

So far just the gZen Encoder is using the new core, and it spits
back a zip file, so no more copy & paste.

I will give it a try and let you know how it works :-)


Wow... I'm most impressed. I encoded one page, vars.inc.php, and
sql_connect.inc.php, and it all still works. Even pages which are not
encoded can still include the encoded vars.inc.php and not have a
problem. Nice going.


What is the reason behind obfuscation/encoding? Is it to protect
your code from potential login/password viewing on a shared
server, or to somewhat copyright your code, or what?


Not really either. I mean with Mike's (CountScubula) encoder, all it does is
do a base64 decode, gzuncompress, and then eval it, so it's not that hard to
spit the original source code back out of an encoded file. (I did it in one
line of code.) Rather, it's to prevent someone who *thinks* they know PHP
because the code "looks easy enough" from changing anything. The vast
majority of my clients should *not* be changing anything in my code, because
they do not know what they are doing. They could do something as simple as
shove in a return in one of the files, and cause holy hell with the headers
I need to send, etc. If they see something that came out of an obfuscator,
it looks scary as hell, and they are much less likely to touch anything (and
if they do touch anything, they know enough to de-obfsucate it, and I'm less
worried about them screwing anything up.)

That's the main reason...
Jul 17 '05 #14
> > What is the reason behind obfuscation/encoding? Is it to protect
your code from potential login/password viewing on a shared
server, or to somewhat copyright your code, or what?

Not really either. I mean with Mike's (CountScubula) encoder, all it does

is do a base64 decode, gzuncompress, and then eval it, so it's not that hard to spit the original source code back out of an encoded file. (I did it in one line of code.) Rather, it's to prevent someone who *thinks* they know PHP
because the code "looks easy enough" from changing anything. The vast
majority of my clients should *not* be changing anything in my code, because they do not know what they are doing. They could do something as simple as
shove in a return in one of the files, and cause holy hell with the headers I need to send, etc. If they see something that came out of an obfuscator,
it looks scary as hell, and they are much less likely to touch anything (and if they do touch anything, they know enough to de-obfsucate it, and I'm less worried about them screwing anything up.)

That's the main reason...


Hey, that is a great explanation, may I quote you on my site?

--
Mike Bradley
http://gzen.myhq.info -- free online php tools


Jul 17 '05 #15
"Agelmar" <if**********@comcast.net> wrote in message
news:bt************@ID-30799.news.uni-berlin.de...
.....
.....
I will give it a try and let you know how it works :-)


Wow... I'm most impressed. I encoded one page, vars.inc.php, and
sql_connect.inc.php, and it all still works. Even pages which are not
encoded can still include the encoded vars.inc.php and not have a problem.
Nice going.

- Ian

Thank you,

Did you notice the new decoder stub?
$d = eval(gzuncompress(base64_decode("eJxT......0Q==")) );

I wrapped the decoder in the decoder.

I am still working on the function map, this way if someone does decode it,
it will still be a pain in the ****, however it needs to work with files
that are no encoded, got the concept down, having trouble in the second pass
of the code.

You are right in your other post, this is to fend off the PIP's, (Php Insta
Programmer) [ok, i made that up]
--
Mike Bradley
http://gzen.myhq.info -- free online php tools
Jul 17 '05 #16
> Agelmar wrote:
Wow... I'm most impressed. I encoded one page, vars.inc.php, and
sql_connect.inc.php, and it all still works. Even pages which are not
encoded can still include the encoded vars.inc.php and not have a problem.
Nice going.

- Ian


Ok, I got to point 2.1,

weill it sounds like you got an involved script, would you mind trying v2.1?
I added function Obfuscator/Mapping, and strip comments/white spaces

Well, I am going to my friends office, I am going to help him desing a
network tonight, its a simple
realestate office with 3 branch stores. I will be back later tonight.

--
Mike Bradley
http://gzen.myhq.info -- free online php tools
Jul 17 '05 #17
On Thu, 1 Jan 2004 12:22:32 -0500, "Agelmar"
<if**********@comcast.net> brought forth from the murky depths:
Larry Jaques wrote:
What is the reason behind obfuscation/encoding?
-snip-I need to send, etc. If they see something that came out of an obfuscator,
it looks scary as hell, and they are much less likely to touch anything (and
if they do touch anything, they know enough to de-obfsucate it, and I'm less
worried about them screwing anything up.)
OK. ;)

That's the main reason...


Ah, that reminds me about all the GIs who got computers in the early
80's. I fixed so MANY autoexec.bat and config.sys files which they
had modified with WordPerfect that it wasn't funny. MS DOS, Word
Perfect, and the US military sent lots of business to me in those
early years. <g>

You may be throwing away money. (Just remember to always use YOUR
copy of the file when you do mods or you'll be troubleshooting
their problems as well as your own.) DAMHIKT
---
After they make styrofoam, what do they ship it in? --Steven Wright
http://diversify.com Comprehensive Website Development
Jul 17 '05 #18
"Agelmar" <if**********@comcast.net> wrote in message
news:bs************@ID-30799.news.uni-berlin.de...
Does anyone know of a good, reliable PHP obfuscator, preferably one that
doesn't cost an arm and a leg? I tried Mike's gzen encoder, however I had
problems with included files. (e.g. I have a file vars.inc.php that includes sql_connect.inc.php, in which a connection to mysql is made, and then in the top-level files I do mysql_query($query, $MySQL_Link) [$MySQL_Link is the
connection made in sql_connect.inc.php], and I get an error about 'invalid
link resource' after using the gzen obfuscator...)

I've tried about a dozen that I found on google (yes, i tried pobs, but the resultant code had syntax errors, and god knows I'm not going to dig through *that* to find syntax errors!), so now I'm turning to others for help ^-^

I'd like not to have to buy the Zend encoder... ack...

Thanks in advance.


Ok we are at 2.2, in case anyone cares. most stuf fixed and looks cooler

Also, can you define an arm and a leg? Is this like a tall mans arm/leg, or
a short mans arm/leg.
I was thinking of making a version of the tools available on CD with a
windows GUI to them, but was thinking about $19.95- $24.95 (after I get a
few more tools online) is that too much?

--
Mike Bradley
http://gzen.myhq.info -- free online php tools
Jul 17 '05 #19
"CountScubula" <me@scantek.hotmail.com> wrote in message news:<FJ*****************@newssvr27.news.prodigy.c om>...
"Agelmar" <if**********@comcast.net> wrote in message
news:bs************@ID-30799.news.uni-berlin.de...
Does anyone know of a good, reliable PHP obfuscator, preferably one that
doesn't cost an arm and a leg? I tried Mike's gzen encoder, ...and I get an error I've tried about a dozen that I found on google
(yes, i tried pobs, but the resultant code had syntax errors,
and god knows I'm not going to dig through *that* ...


Check out http://www.semanticdesigns.com/Produ...bfuscator.html.

It obfuscates more that POBS, but doesn't product syntax errors.
It is based on a full PHP parser, so it understands the syntax
up front.

I don't know if it qualifies as costing an arm or a leg;
that seems to be a pretty personal judgement.
Given the energy you've spent on trying lots of these,
perhaps optimizing on cheap isn't what you need.

-- IDB
Jul 17 '05 #20

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: SR | last post by:
Looking for a Obfuscator that provides advanced Obfuscation like string encryption. Purchasing one is fine. It would be nice to hear from developers what products do the job. The price range...
5
by: Sargo | last post by:
Im about done with my coding on my latest project and want to use a Obfuscator to protect it. What suggestions can everyone offer for one. My project is done as a hobby and I would prefer one...
2
by: venky | last post by:
We are looking to obfuscate our code and other assembles. I just want to which obfuscator to use and does anyone knows any site or article which compares different obfuscator including pricing...
10
by: John | last post by:
Hi Does the obfuscator in vs.net 2003 automatically works when a project is compiled or does it need to be turned on explicitly somehow? Basically I want my app to be the safest in terms of...
6
by: Carlo | last post by:
Good morning someone used the built-in Dotfuscator Community Edition and can give me some suggestions and impressions? Someone knows a good free/opensource obfuscator? TIA Carlo
6
by: cool2005 | last post by:
I have been trying several JS obfuscator but none of them work with a set of JS files. There are references between files so it will never work if the JS obfuscator process each file...
7
by: John T. | last post by:
Hi all I'm seeking for an obfuscator at a reasonable price. Generally, obfuscators are very expensive. It is difficult for me, a single programmer, to bear the cost of an obfuscator. Therefore,...
1
by: kashifwk | last post by:
I am evaluating Obfuscator to secure the source code in .Net assembilies.I am considering following obfuscators: 1) XenoCode (http://www.xenocode.com) 2) Spices.Obfuscator...
3
by: Edhy Rijo | last post by:
Hi, Can anybody recommend a good, not expensive Obfuscator program for VB.NET 2005 other than the expensive solution from PreEmptive which comes with VS2005? Thanks! -- Edhy
11
by: =?iso-8859-1?q?Martin_M=FCcke?= | last post by:
Hi, I am looking for a good javascript obfuscator - I found several on the web, but I am looking for one that can also handle javascript in jsp, html and java files - so I need a javascript...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.