Getting windows authentication

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Mar 2005
Posts: 13
Reputation: grajeshmsc is an unknown quantity at this point 
Solved Threads: 0
grajeshmsc grajeshmsc is offline Offline
Newbie Poster

Getting windows authentication

 
0
  #1
Jun 21st, 2005
I'm working on a project that requires users logging on using windows authentication. How do I go about this. This application is JSP-Struts.i can able to get the user name by System.getProperty("user.name"); But i can i get the password.PLz help.Thanks in advance.
with luv
Rajesh G
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 26
Reputation: darklordsatan is an unknown quantity at this point 
Solved Threads: 1
darklordsatan's Avatar
darklordsatan darklordsatan is offline Offline
Light Poster

Re: Getting windows authentication

 
0
  #2
Jun 24th, 2005
Im afraid my friend, you cant get the password, if you could, then thousands of "password recovery aka password stealing" apps in java would be floating around the internet...

Windows password are stored in a file, cant recall the name, and they are encrypted, so you need
1. Read windows partition from Linux or DOS
2. Take the password file
3. Use a brute-force password recovery app, to TRY to find some of the passwords

As you can see, theres no way to read these passwords from Java or any other language, even If you could read the file on real time (you cant, windows blocks it, thats the reason of step 1 mentioned before), you would still have to try and find the password through brute force, which is, time/resources consuming, you could spend 24 hours in a row trying to get a password and either succeed or not, depending on the complexity of the password (aka, lenght, different characters, and so on..)

Hope thats clear

cheers
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 13
Reputation: grajeshmsc is an unknown quantity at this point 
Solved Threads: 0
grajeshmsc grajeshmsc is offline Offline
Newbie Poster

Re: Getting windows authentication

 
0
  #3
Jun 27th, 2005
Originally Posted by darklordsatan
Im afraid my friend, you cant get the password, if you could, then thousands of "password recovery aka password stealing" apps in java would be floating around the internet...

Windows password are stored in a file, cant recall the name, and they are encrypted, so you need
1. Read windows partition from Linux or DOS
2. Take the password file
3. Use a brute-force password recovery app, to TRY to find some of the passwords

As you can see, theres no way to read these passwords from Java or any other language, even If you could read the file on real time (you cant, windows blocks it, thats the reason of step 1 mentioned before), you would still have to try and find the password through brute force, which is, time/resources consuming, you could spend 24 hours in a row trying to get a password and either succeed or not, depending on the complexity of the password (aka, lenght, different characters, and so on..)

Hope thats clear

cheers


Thank you very much darklordsatan.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum


Views: 11412 | Replies: 2
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC