HBH Newsletter |
| | HBH News | | WebWars | | Hacking News | | Hacking Skills | | Newsletter Article | | Interview | | Latest Exploits | | Credits | |
|
New Skills Section: How To Get A Passwd File WHAT: It's easy to get a passwd (password) file, but it’s harder to get a “Good One” Yes, a good one, there is only one “Good One”. HOW: The oldest method I know is the FTP://server.com. *Note: To do this ftp the server from your browser, not sum ftp progz or anything like that.* Then you will ftp the server anonymously and you will see something like this:
FTP Dir on server.com So we click on --= etc
FTP Dir /ect on server.com We see something like this:
root:x:0:1:Super-User:/:/sbin/bash It's a shadowed passwd file, very hard to crack but there is way to do it, using a program called Deshadow Deshadow would do the work they say, but deshadow is only to be run on your own unix box.
root:x:0:1:Super-User:/:/sbin/bash The "x" is called a token on some systems it is replaced by a "$" or "#" or sometimes even the user name. **** So now that the passwd file is useless, we are disappointed and just for the fun of it all we will take a look at the ---=group. we see something like this:
root::0:root Sometimes you will find a file called pwd.db in the /etc dir. Okay our attempt failed to retrieve a good passwd file, so now we are going to get the “Good One”. * Note: On windows the passwd file is called .pwl * You can do the old FTP method on many servers, but lets talk about the Good passwd file. We use the same example as above:
root:Npge08pfz4wuk:0:1:Super-User:/:/sbin/bash Actually it is not encrypted but encoded. -------PASSWD Encoded info--------- The passwd is to be encoded with randomly generated value called Salt. There are 4096 salt values. So if you want to do a Dictionary Attack u will have to try all the values. So the Npge08pfz4wuk, the Np is the salt and the ge08pfz4wuk is the encoded passwd. ********************************************************************** Right about now u would want to download Jack the Ripper Great article on how to use it.... http://hellboundhackers.org/readarticle.php?article_id=45 "Its primary purpose is to detect weak UNIX passwords" And use the Ripper to crack the passwd file. When it is cracked u will have access to the server. ---------------------------------------------------------------------- Of course I only showed one method of getting a passwd file. To get a passwd file the other way, you first need to find a hole in the services running at various ports of the host. By:Hack4u |
Html Format by Anarcho-Hippie - HBHNewsletter 01 |