Ethical Hacking Training at InfoSec Institute

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Computer Forensics Computer-Forensics
[Top] [All Lists]

Re: hash of directory

Subject: Re: hash of directory
Date: Wed, 24 Nov 2004 18:18:09 +0200 (IST)
On Tue, 23 Nov 2004, Geoffrey wrote:
How do you take the hash of a directory? Concatenating all files in that
directory and hash the output?
I assume we're talking unix here, if so, a directory is a file.

Although on some systems (e.g., Solaris) it is possible to sha1sum
directory (or cat directory) on others (e.g., Linux) this will produce an
error. But in any case it is possible to convert a directory into some
`hashable format', e.g., `ls -l' or Perl's `join ',', stat $filename' for
each file. You just have to make sure that your `hashable format' is
invariant of allowable transformations, e.g., if you want the hash to be
the same after restore of the directory from backup you probably need to
sort files, do not include inodes, etc.

Regards,
ASK


-----------------------------------------------------------------
This list is provided by the SecurityFocus ARIS analyzer service.
For more information on this free incident handling, management 
and tracking system please see: http://aris.securityfocus.com

<Prev in Thread] Current Thread [Next in Thread>