home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Downloads Password/Logging

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1674
Discussions: 200,958, Posts: 2,379,511, Members: 246,328
Old April 2nd, 2007, 02:19 AM   Digg it!   #1 (permalink)
Senior Member
 
Join Date: May 2003
Location: Aus, Gold Coast :)
Posts: 802
Send a message via ICQ to exally
Downloads Password/Logging

Hey guys,

I need to create a page for my website where people have to login in using a username and password that is generic for that week in order to download the files - i also need to log there details like IP etc etc.

Any ideas how i go about this using PHP or Javascript - something like htaccess or something like that?!

Thanks
exally is offline   Reply With Quote
Old April 2nd, 2007, 02:44 AM     #2 (permalink)
SoMuchAnime-SoLittleTime
 
EXreaction's Avatar
 
Join Date: Aug 2003
Location: Plymouth, WI
Posts: 14,983
Blog Entries: 1
Send a message via MSN to EXreaction
You could look into the authentication system for phpBB2.

That would probably be the easiest.

Also, make sure you are encrypting the passwords in the database (I would use MD5). Just in case your db server gets taken over the person would not know what everyone's password is (at least not without spending a heck of a lot of time running scripts to "reverse" the MD5).
__________________
My photography: Flickr

Lithium Studios - phpBB3, PHP, and Web Development
EXreaction is offline   Reply With Quote
Old April 2nd, 2007, 03:25 AM     #3 (permalink)
Senior Member
 
Join Date: May 2003
Location: Aus, Gold Coast :)
Posts: 802
Send a message via ICQ to exally
i dont need individual password - i need a generic one that changes weekly - i was thinking of developing it myself but it will look cheap..
exally is offline   Reply With Quote
Old April 2nd, 2007, 04:01 AM     #4 (permalink)
SoMuchAnime-SoLittleTime
 
EXreaction's Avatar
 
Join Date: Aug 2003
Location: Plymouth, WI
Posts: 14,983
Blog Entries: 1
Send a message via MSN to EXreaction
I see...

In that case I would probably restrict access to the site with a .htaccess file and password protect the directory. That would be the easiest.

This might help:
http://www.javascriptkit.com/howto/htaccess3.shtml

Of course you would need to manually update the file with the password every week.
EXreaction is offline   Reply With Quote
Old April 2nd, 2007, 04:08 AM     #5 (permalink)
Senior Member
 
quickoldcar's Avatar
 
Join Date: Oct 2004
Location: NE Pennsylvania
Posts: 757
Send a message via AIM to quickoldcar
I have websites and passworded fileserver using this:

http://www.keyfocus.net/kfws/

Easier than abyss ,many options,it works,can do multiple sites and best of all it's completely free.

But then again the others gave great advice,just something thought might want to know.

Last edited by quickoldcar : April 2nd, 2007 at 04:10 AM.
quickoldcar is offline   Reply With Quote
Old April 2nd, 2007, 04:18 AM     #6 (permalink)
Ultimate Member
 
usslindstrom's Avatar
 
Join Date: Sep 2003
Location: From my house
Posts: 1,261
If you're using IIS, then just put it as the access password to that portion of the page. Change it as needed. Shouldn't be that bad.

On my WinServ2K3, I just opened up the guest account with EXTREMELY limited permissions on it, and tied that into my IIS browsing for downloading over http. If I need to adjust the password, I can just hit the guest account up. (Just make sure to disable annon. access to the portion you want to lock)
__________________
And thus it was spoken by the mighty Uss. And it was so.

Last edited by usslindstrom : April 2nd, 2007 at 04:20 AM.
usslindstrom is offline   Reply With Quote
Old April 2nd, 2007, 04:39 AM     #7 (permalink)
Banned
 
Keymaker's Avatar
 
Join Date: Jan 2005
Location: Loveland, CO
Posts: 5,492
Blog Entries: 2
Send a message via ICQ to Keymaker Send a message via Yahoo to Keymaker
Talking

Keymaker is offline   Reply With Quote
Old April 2nd, 2007, 02:00 PM     #8 (permalink)
SoMuchAnime-SoLittleTime
 
EXreaction's Avatar
 
Join Date: Aug 2003
Location: Plymouth, WI
Posts: 14,983
Blog Entries: 1
Send a message via MSN to EXreaction
I actually made a MD5 hash cracker myself once to see how easy it was...

A password up to 5 chars is not safe in MD5, 6 is decent, but the more the better. And you really need to use numbers, letters, or whatever else you can make that is not used very often.

Just looking at my keyboard there are 94 chars (I am not including the hidden ones you can make with mixtures of the CTRL button).

So if your password is 1 char it would only take 94 tries at a maximum to brute force it.
If it was 2, it would take a maximum of 8836 tries to brute force it.
At 3 it would take 830,584 tries at maximum
At 4 it would take 78,074,896 at maximum
At 5 it would take 390,374,480 tries at maximum
Here is the short term limit. I can crack any MD5 with any 1 to 5 standard character (numbers, letters, and symbols) string in about 10 - 15 seconds on a PHP based script.
At 6 it would take 36,695,201,120 tries max
7 would be 3,449,348,905,280 tries max
8 would be 324,238,797,096,320 tries max
etc, etc...

I would say 6 and 7 could be done if you had a much more efficient build and code (I was using PHP, which is not made for that kind of stuff). But it would still take many days to crack a standard character (numbers, letters, and symbols) password at 8 chars.
EXreaction is offline   Reply With Quote
Old April 2nd, 2007, 08:26 PM     #9 (permalink)
Banned
 
Keymaker's Avatar
 
Join Date: Jan 2005
Location: Loveland, CO
Posts: 5,492
Blog Entries: 2
Send a message via ICQ to Keymaker Send a message via Yahoo to Keymaker
There are many mathematical ways to scrutinize on particular variables to reduce the time it takes on a brute force method.

I also should mention the idea of a cluster of computers to reduce this time.

Very good idea to make a password at least 16 characters in length with alpha-numeric-symbols-upper and lower case. This is what I use. No character is a repeat.

You mention the CTL key, don't you mean the ALT key? Like ALT 255 for [space] or ALT 159 for ƒ, etc.

Hell, 1337 could work too. p455w0rd.
Keymaker is offline   Reply With Quote
Old April 2nd, 2007, 09:57 PM     #10 (permalink)
SoMuchAnime-SoLittleTime
 
EXreaction's Avatar
 
Join Date: Aug 2003
Location: Plymouth, WI
Posts: 14,983
Blog Entries: 1
Send a message via MSN to EXreaction
16 chars is not really needed. If any site you visit stores your password in an unencrypted or easily breakable encryption anyone can view it (you would be amazed how many places store plain text passwords).

Alt, ctrl, whatever it is to make the non-standard US chars.

"1337" wouldn't work, unless they are doing a simple dictionary attack (though with something as lame as a dictionary attack, you could record all the possible combos and save it in a database to find the real answer in a second or less).

I have no doubt that if I could write a brute forcer in assembly that I would get very fast results. But I don't think you can do that to get any MD5 sum.

Also, if the person knows you are not repeating any characters you set yourself up for a major weakness (especially since we now know it is 16 chars long). If I was enthusiastic at all right now I would get some numbers and see the possible number of combinations it would take at maximum to get your password. I don't think it would be very many. )
EXreaction is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help With logging in Killmanjaro59 Technical Support 0 March 4th, 2007 08:26 PM
Logging into other PCs chadh581 General Tech Discussion 6 December 5th, 2006 09:00 PM
logging on aidsprone Applications and Operating Systems 1 September 22nd, 2004 07:22 AM
Gotta keep logging in Bill in SD, CA Suggestion Box 27 May 21st, 2004 10:50 AM
Problem with logging in chipbgt Suggestion Box 3 April 18th, 2004 08:51 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2957)
The disrespect of Obama by Russian .. (41)
Wireless Televisions. (12)
CPU fan stops spinning randomly (9)
Regular Build (11)
windows 7 problem (7)
Laptop with wireless problem. (5)
Is the PSU I received dead? (12)
Print spooler problem (15)
windows vista security holes (11)
radeon x850xt platinum & shader.. (6)
Install XP pro and a Vista laptop ?.. (11)
Foreign voltage (10)
HIS HD5770 graphic card question (15)
Recent Discussions
Kingston Bluetooth Dongle Driver (1)
Multiple Restarts Required at Boot (3)
Open With ..... Win7 (1)
webcam (0)
upgrade for hp a6101 (0)
windows vista security holes (11)
Laptop with wireless problem. (5)
Modern Warfare 2: Who Bought It? (64)
tv not turn on-makes clicking sound (2)
CPU fan stops spinning randomly (9)
EVGA 9800 gtx help with finding a goo.. (11)
Regular Build (11)
Help with onclick and buttons (0)
Virus advise (8)
My monitor won't turn on after instal.. (1)
Internet Lost (3)
Dept. of HS: NSA 'Helped' Develop Vis.. (16)
Point and Shoot Camera Suggestions. (4)
Ideal cheap graph card for PC-Gaming? (18)
radeon x850xt platinum & shader 3 (6)
Graphics Card Upgrade Question (4)
For Sale BFG GTX285 OC2 with 10 year .. (3)
How to convert MP3's (4)
Wireless Televisions. (12)
Hp Artist Edition + Matching Bag (0)


All times are GMT -4. The time now is 08:29 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28