LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-03-2004, 02:23 AM   #1
Kahless
Member
 
Registered: Jul 2003
Location: Pennsylvainia
Distribution: Slackware / Debian / *Ubuntu / Opensuse / Solaris uname: Brian Cooney
Posts: 503

Rep: Reputation: 30
php hacking help?


Ok... im trying to do somthing that I dont quite know enough to hack.... and I was hoping one of you crazy hackers could help out (because I know you pwn )


Heres what I have, and what I am trying to do.


I am using a hacked up guestbook script to run a signup list for a Lanparty event. The script is called egbook and can be downloaded from http://ekstreme.com/phplabs/egbook.php




Basically, I modified the script to look like a signup page rather than a guestbook, and to fit into the pages layout. No big deal. The problem is this: Some of the signup info is stuff that I dont want to be visible to the entire world. Phone numbers and Email addresses.... I want to be the only one able to see them..... I dont want 100 people contact info to be available at a glance to unauthorized individuals.


I have looked at a few other scripts on google to try to find a php script that I can do this with with no sucess.... and most of the cgi stuff isnt customizable enough (and is much harder to edit)


I see there as being two possible ways to fix my little problem that would be acceptable, and was hoping one of you would have an idea of how how to implement it.


Meathod one: Fixing the script to add a varible that makes certain fields simply not display on the site. I can still see them by going to the data directory.... but they dont disply on the page that shows signups. This would probally be the better way... but I dont really know where to start. I am looking at the code... but I just dont know nearly enough php.


Meathod two: some kind of shell script (i have ssh acess to the server) that will read all of the files, copy new file contents to a single contact info file, and deleate the sensitive lines from the origional files so they dont display on the site. It would be ok if this script only ran a few times a day... i can deal with temporary displays... i just dont want the entire list sitting there.



Possible Problems:
1 my nibishness
2 the script saves the data files as write protected, so any script that modifes them would have to deal with that
3 I have never played around with cron... so I guess im going to have to learn that too if we go the script route. Guess its about time for me to get into that if we do it that way anyway.


Anything you can do to help me... I ask that it be well enough documented that I may actually learn enough to do similar things next time.


The page this is running on is here:
http://www.mt.asyserver.com/lanpa/signup.php
I have temporarily removed the include for the list until we get this straitened out.

I hope that im not asking too much, and that one of you has time to work with me on this. Thank you in advance

Last edited by Kahless; 04-03-2004 at 02:26 AM.
 
Old 04-04-2004, 12:46 AM   #2
Kahless
Member
 
Registered: Jul 2003
Location: Pennsylvainia
Distribution: Slackware / Debian / *Ubuntu / Opensuse / Solaris uname: Brian Cooney
Posts: 503

Original Poster
Rep: Reputation: 30
Problem solved.


We found a section on the displayentries page that intercepts the email to make it a link before it is printed... and modified that to not show it, and followed the same syntax to hack out the phone number as well.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hacking Exposed Wireless Hacking Chapter prompt Linux - Wireless Networking 0 05-08-2004 02:44 PM
hacking narendra_i Linux - Security 2 11-15-2003 02:53 AM
hacking moeminhtun General 1 01-09-2003 04:39 AM
Hacking... TimDimman Linux - Newbie 5 02-12-2002 03:11 PM
in how many was hacking is done ashis Linux - Security 5 06-15-2001 05:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:45 PM.

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