PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

PostPosted: Tue Apr 27, 2004 5:32 pm Reply with quote Back to top

base_64 encode any perl or php file.
Here is a cool tool I ran accross while browsing the php manual comments.

This is of most interest if you are wanting to encode you config.php from prying eyes. In fact you could encode an entire script if you wanted. Requires Zlib on the webserver.

One online version and one for download.
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

PostPosted: Tue Apr 27, 2004 5:35 pm Reply with quote Back to top

I should add the compression ain't shabby either one default config.php
before 4.02 KB
after 2.26 KB

Edit:
mainfile.php (I put a few extra lines in it).
before 42.8 KB
after 14.8 KB
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Tue Apr 27, 2004 7:21 pm Reply with quote Back to top

Just imagine you've come home late or gotten up early and your brain hasn't kicked in yet. You decide to make a change in config. php. You open up your editor and you see the base64_encoded file. You breathe heavily. You then reach over and just unplug your computer, hoping that when you try it later it will be well. Laughing
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
darksied
Hangin' Around


Joined: Jan 27, 2004
Posts: 25
Location: New Jersey

PostPosted: Fri Jan 28, 2005 12:20 am Reply with quote Back to top

Ok does this mean that we can use this as a way to protect our config.php files or is it a bad thing i tried it and i can still use my site. i made a backup copy of course of the config.php i really wanted to move the config file but cant seem to find any about that but i did read something once about how to move it out side of the public_html folder
View user's profile Send private message Visit poster's website AIM Address
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

PostPosted: Fri Jan 28, 2005 7:30 am Reply with quote Back to top

You can try moving it but once in a while there are problems with addons that look for it to grab the DB info ect...

encoding this way is reversable as pointed out in several other threads. But it does make it one more step

You can put it above the webroot someplace like
/usr/home/username/safe/config.ini
If your website is in /usr/home/username/public_html
Then in your webroot config.php put
<?php include("../safe/config.ini"); ?>

Really if the file is 0644 or 0600 it shouldn't be read unless there is some larger problem already.
View user's profile Send private message
darksied
Hangin' Around


Joined: Jan 27, 2004
Posts: 25
Location: New Jersey

PostPosted: Fri Jan 28, 2005 10:04 am Reply with quote Back to top

Tried moving it but got errors i will settle for 0600 and base 64 for now till you smarter people can come up with something else or better.
thanks for the help.
View user's profile Send private message Visit poster's website AIM Address
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

PostPosted: Fri Jan 28, 2005 10:15 am Reply with quote Back to top

Like PHreekie said in another thread don't use the same usename and password for your DB as you do for your CPanel, FTP, Webmail ect... because somehow someday someone will see it especially on a shared server environment.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum