944,124 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 17116
  • Java RSS
Jun 21st, 2005
0

Getting windows authentication

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
grajeshmsc is offline Offline
13 posts
since Mar 2005
Jun 24th, 2005
0

Re: Getting windows authentication

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
Reputation Points: 10
Solved Threads: 1
Light Poster
darklordsatan is offline Offline
26 posts
since Jun 2005
Jun 27th, 2005
0

Re: Getting windows authentication

Quote 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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
grajeshmsc is offline Offline
13 posts
since Mar 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: JTables
Next Thread in Java Forum Timeline: detecting usb signals with java





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC