Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:




pen-test logo Penetration Testing mailing list archives

Re: PWDUMP Parser
From: Chris Brenton <cbrenton () chrisbrenton org>
Date: Tue, 06 Jul 2004 21:12:48 -0400

On Tue, 2004-07-06 at 12:00, Mike Anderson wrote:

I have a rather large pwdump file (over 3000 accounts)
that I am working with.  I need to extract
approximately 200 user names/hash pairs from it. 
Other than using notepad/word to do a find/search then
copy and paste, does anyone know of a "pwdump parser"
that is out there? I envision inputting a user name
(or list of user names) and then having it return the
user name and hash pair in a text file.

Grep is your friend. You can download a free copy for Windows from
multiple places on the net. Something like:

grep -i jsmith pwdump_output.txt >> parsed.txt

should do the trick. Then just run the command over and over replacing
the account name as appropriate. 

I'm not sure of the exact syntax on the Windows side, but on UNIX you
could automate this with a simple shell script. Create a file that has
one user account per line in a file, and assuming the file is named
user.lst, just do a:

while read USERS ; do
grep -i $USERS pwdump_output.txt >> parsed.txt
done < user.lst

HTH,
Chris



  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]