Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-01-2003, 03:30 AM   #1
flashfreak
Confirmed User
 
Industry Role:
Join Date: Jun 2002
Location: cloud number 9
Posts: 4,396
php coders : need a little help

How can I retrieve the username : password from a paysite members area in PHP?
I want to make a protection script, pls help.

Thanks!
__________________
SEO Mogul | ICQ: 163671223
flashfreak is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-01-2003, 03:33 AM   #2
Libertine
sex dwarf
 
Libertine's Avatar
 
Join Date: May 2002
Posts: 17,860
Ehm... what exactly do you mean by retrieve?
Retrieve it from the .htpasswd file, from a database or from the user?
__________________
/(bb|[^b]{2})/
Libertine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-01-2003, 03:44 AM   #3
nuclei
old school fart
 
Industry Role:
Join Date: May 2001
Location: Florida
Posts: 1,015
in php $_SERVER[PHP_AUTH_USER] will get you the username. You then would have to open the password file to get the "encrupted" password. If the password is stored in mysql somewhere then you can retrieve the unencrypted pass from there using the username you now have.
__________________
The next generation of SEO
nuclei is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-01-2003, 03:44 AM   #4
nuclei
old school fart
 
Industry Role:
Join Date: May 2001
Location: Florida
Posts: 1,015
Quote:
Originally posted by nuclei
in php $_SERVER[PHP_AUTH_USER] will get you the username. You then would have to open the password file to get the "encrypted" password. If the password is stored in mysql somewhere then you can retrieve the unencrypted pass from there using the username you now have.
__________________
The next generation of SEO
nuclei is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-01-2003, 03:45 AM   #5
nuclei
old school fart
 
Industry Role:
Join Date: May 2001
Location: Florida
Posts: 1,015
well hell, that was sposed to be an Edit to change encrupted to encrypted....


must be getting early or late
__________________
The next generation of SEO
nuclei is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-01-2003, 09:07 AM   #6
flashfreak
Confirmed User
 
Industry Role:
Join Date: Jun 2002
Location: cloud number 9
Posts: 4,396
Quote:
Originally posted by punkworld
Ehm... what exactly do you mean by retrieve?
Retrieve it from the .htpasswd file, from a database or from the user?
if that helps: the members area is ccbill protected.. I don't know how they store the username : password...
__________________
SEO Mogul | ICQ: 163671223
flashfreak is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-01-2003, 09:11 AM   #7
flashfreak
Confirmed User
 
Industry Role:
Join Date: Jun 2002
Location: cloud number 9
Posts: 4,396
Quote:
Originally posted by nuclei
in php $_SERVER[PHP_AUTH_USER] will get you the username. You then would have to open the password file to get the "encrupted" password. If the password is stored in mysql somewhere then you can retrieve the unencrypted pass from there using the username you now have.
thanks, I'l try that.. after all I don't need the password, since usernames are unique. I'm trying to protect the members area from password listing sites, so the user doesn't log from 3 different IPs in 3 hours... stuff like this...
__________________
SEO Mogul | ICQ: 163671223

Last edited by flashfreak; 04-01-2003 at 09:15 AM..
flashfreak is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-01-2003, 09:31 AM   #8
sneaker
So Fucking Banned
 
Join Date: Dec 2002
Posts: 251
Look for a htaccess auth class module for php, there are a few out there try www.phpclasses.org
sneaker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-01-2003, 09:33 AM   #9
nuclei
old school fart
 
Industry Role:
Join Date: May 2001
Location: Florida
Posts: 1,015
Quote:
Originally posted by flashfreak

thanks, I'l try that.. after all I don't need the password, since usernames are unique. I'm trying to protect the members area from password listing sites, so the user doesn't log from 3 different IPs in 3 hours... stuff like this...

welcome.
__________________
The next generation of SEO
nuclei is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.