Windows Thread, How do I extract usernames and Passwords from AD to make a CSV file ? in Technical; How do I extract usernames and Passwords from AD to make a CSV file ?...
-
26th September 2008, 12:23 AM #1 How do I extract usernames and Passwords from AD to make a CSV file ?
How do I extract usernames and Passwords from AD to make a CSV file ?
-
-
IDG Tech News
-
26th September 2008, 06:53 AM #2 I don't think that there is going to be any way to list passwords from AD - I certainly hope not. A few years ago you could have used something called L0phtcrack from @Stake, but that doesn't work with modern systems. Think of the security risks.
You CAN use an Active Directory Migration Tool to move accounts from one AD to another though if you like.
http://www.microsoft.com/downloads/d...displaylang=en
What do you want this information for?
-
-
26th September 2008, 07:02 AM #3 We asked ourselves this very question some years ago when we moved to AD. - We then decided that rather than let AD dictate what the data was, we supplied the data to AD so we always have a record which comes in ever so useful when some xyz software wishes the users to "log onto it".
To answer your question, I too doubt you can without considerable effort.
Have a look here for some information.
-
-
26th September 2008, 09:46 AM #4 I was asked about this at Friday's Northants IT Managers' meeting ... but from the point of testing the complexity of passwords used.
There is a possible hypothetical scenario that has some major caveats ... and I do mean major.
Should you wish to perform a brute force attack using some of the tools previously mentioned or other more interesting tools (rainbow hash, etc rather than brute force) then to protect yourself, your network and your users I was always told to do certain things (not that I have ever tried!!! erm ... )
First, you need to use these tools on a closed network. You are performing this on a machine that has no connections to anything at all!!!! It is a machine that has been set up specifically for this purpose and will be securely wiped as soon as you are happy with it. Any files you remove from it (csv or otherwise) will be scanned with every possible AV and anti-spyware scanner possible. Not all tools (or copies of tools) that you pull down to do the password attack are done by white hat / grey hat coders ... some that you pull down will have backdoors that will then send you info to a remote box and you could be leaving yourself open to attack.
Second ... the machine that you are running this on, you can now separate it a lot easier than a few years ago by using virtualisation tools. Build a server on VMWare, make it a DC (global catalogue, etc) and make sure everything is hunky dory with it on the network. Then shut it down, clone the image of it, move the image onto a machine that will be away for the network. The Original VMWare box can now be demoted from being a DC and then removed from the domain. Make sure it is completeley removed just in case. If possible also change the admin password too. (it is not paranioa ... it is being safe!)
So ... we have this VMWare image of a working DC that has all the info on it.
Make sure that you are not sharing the network or have an shared folders between the image and the host machine. Once you are confident that *nothing* can get from the guest to the host then you can start.
I would recommend 3 weeks for a brute force attack, and other attacks can be completed a lot sooner (according to information I have read!)
There are other ways of doing things but the above is the safest I can find / think of.
Remember that I do not advocate anyone using any form of cracking, hacking, man-in-the-middle or other forms of attack to get information out of systems that is encrypted or protected in anyway, even if it is your network and you need to get the info to complete a body of work.
All of these attacks rely on physical access (or remote administrator access) to start and complete. Protect your systems by keeping machines secure and patched.
-
-
26th September 2008, 11:04 AM #5 
Originally Posted by
GrumbleDook
I was asked about this at Friday's Northants IT Managers' meeting ... but from the point of testing the complexity of passwords used.
There is a possible hypothetical scenario that has some major caveats ... and I do mean major.
Should you wish to perform a brute force attack using some of the tools previously mentioned or other more interesting tools (rainbow hash, etc rather than brute force) then to protect yourself, your network and your users I was always told to do certain things (not that I have ever tried!!! erm ... )
First, you need to use these tools on a closed network. You are performing this on a machine that has no connections to anything at all!!!! It is a machine that has been set up specifically for this purpose and will be securely wiped as soon as you are happy with it. Any files you remove from it (csv or otherwise) will be scanned with every possible AV and anti-spyware scanner possible. Not all tools (or copies of tools) that you pull down to do the password attack are done by white hat / grey hat coders ... some that you pull down will have backdoors that will then send you info to a remote box and you could be leaving yourself open to attack.
Second ... the machine that you are running this on, you can now separate it a lot easier than a few years ago by using virtualisation tools. Build a server on VMWare, make it a DC (global catalogue, etc) and make sure everything is hunky dory with it on the network. Then shut it down, clone the image of it, move the image onto a machine that will be away for the network. The Original VMWare box can now be demoted from being a DC and then removed from the domain. Make sure it is completeley removed just in case. If possible also change the admin password too. (it is not paranioa ... it is being safe!)
So ... we have this VMWare image of a working DC that has all the info on it.
Make sure that you are not sharing the network or have an shared folders between the image and the host machine. Once you are confident that *nothing* can get from the guest to the host then you can start.
I would recommend 3 weeks for a brute force attack, and other attacks can be completed a lot sooner (according to information I have read!)
There are other ways of doing things but the above is the safest I can find / think of.
Remember that I do not advocate anyone using any form of cracking, hacking, man-in-the-middle or other forms of attack to get information out of systems that is encrypted or protected in anyway, even if it is your network and you need to get the info to complete a body of work.
All of these attacks rely on physical access (or remote administrator access) to start and complete. Protect your systems by keeping machines secure and patched.
I just need it to populate Mylittlehelpdesk..... Ozan asaid that he had a way of doing it but he seems to have vanished just before we go live leaving us up the creek...
-
-
26th September 2008, 11:15 AM #6 
Originally Posted by
Grommit
I just need it to populate Mylittlehelpdesk..... Ozan asaid that he had a way of doing it but he seems to have vanished just before we go live leaving us up the creek...
Ah ... you are talking about the AD integration? Pretty sure there are a few members that have it set up already for that. I think Plexor does ...
-
-
26th September 2008, 11:43 AM #7 
Originally Posted by
Grommit
I just need it to populate Mylittlehelpdesk..... Ozan asaid that he had a way of doing it but he seems to have vanished just before we go live leaving us up the creek...
OP Software Support Site - Bulk Adding of New Users
and / or
OP Software Support Site - NTLM setup for seamless login
is what you are after I think.
-
-
28th September 2008, 12:40 AM #8 
Originally Posted by
GrumbleDook
Ah ... you are talking about the AD integration? Pretty sure there are a few members that have it set up already for that. I think Plexor does ...

Originally Posted by
ninjabeaver
Thanks for the advise..
But not really he is hosting it so it wouldn't be cahtting to my DC AD...,
Thanks for the Lonks.. I can add bulk users but what I need is the passwords from AD
-
-
28th September 2008, 08:04 PM #9 Why not just set the passwords yourself and then ask staff to change them when they login? Problem solved.
-
-
28th September 2008, 11:01 PM #10 
Originally Posted by
Grommit
I can add bulk users but what I need is the passwords from AD
User passwords are stored in Active Directory using one-way encryption, - ie. you can't reverse the process (without resorting to a brute-force approach which could take a while!). There is a security policy option to change this, but it's not a recommended approach (I'm also not sure what it'll do to existing passwords).
Stephen
-
-
29th September 2008, 08:50 AM #11 I'd set it to the same as their username or their usename with MLH prefixed and give them the option to change it after they log in.
In this day and age with personal details being lost by all kinds of companies, giving out a CSV of your school's access details is a recipe for disaster.
-
-
29th September 2008, 09:34 AM #12 You can do this by using csvde to get an export of usernames.
forgot all the switches and so on but i'm sure a quick google will bring something up.
-
-
29th September 2008, 10:41 AM #13 
Originally Posted by
Gibbo
In this day and age with personal details being lost by all kinds of companies, giving out a CSV of your school's access details is a recipe for disaster.
Well said, sir 
Another data loss:
BBC NEWS | England | West Midlands | Teachers' details on missing disk
Teachers' details on missing disk
A computer disk containing the names and addresses of more than 11,000 teachers has gone missing in the post.
-
-
29th September 2008, 10:51 AM #14 
Originally Posted by
Gibbo
FTA: "The GTC said the information had been encrypted"
-
-
29th September 2008, 10:57 AM #15 
Originally Posted by
eejit
I don't think that there is going to be any way to list passwords from AD - I certainly hope not. A few years ago you could have used something called L0phtcrack from @Stake, but that doesn't work with modern systems. Think of the security risks.
You CAN use an Active Directory Migration Tool to move accounts from one AD to another though if you like.
http://www.microsoft.com/downloads/d...displaylang=en
What do you want this information for?
Because he has the administrator password and system access this would not be to difficult with either l0pthcrack also known as LC5, (Symantec who owns the code no longer provide sale or support) or pwdump.
-
SHARE:
Similar Threads
-
Replies: 4
Last Post: 2nd April 2009, 02:50 PM
-
By speckytecky in forum How do you do....it?
Replies: 3
Last Post: 5th July 2008, 11:33 AM
-
By Wiseman82 in forum Scripts
Replies: 6
Last Post: 29th February 2008, 01:03 AM
-
By projector1 in forum MIS Systems
Replies: 2
Last Post: 10th December 2007, 11:30 AM
-
By russdev in forum Windows
Replies: 2
Last Post: 1st November 2006, 07:22 AM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules