Tool to obtain information and statistics about files inside a directory.
fcano@debian:~/tools/forensic-stats$ python forensic-stats.py testdir/
Generic Statistics
==================
Number of files: 712
Smallest file: /var/www/myproject/framework/pay.php Size: 0
Biggest file: /var/www/myproject/lib/mygeo.dat Size: 1238050
File Command Statistics
=======================
1 Web Open Font Format, flavor 65536, length 27632, version 1.0
1 assembler source, ASCII text
3 SVG Scalable Vector Graphics image
6 PNG image data, 32 x 32, 8-bit/color RGBA, non-interlaced
2 assembler source, UTF-8 Unicode text
2 PNG image data, 100 x 100, 8-bit/color RGBA, non-interlaced
9 PHP script, UTF-8 Unicode text, with very long lines, with CRLF line terminators
1 PHP script, UTF-8 Unicode text, with CR line terminators
2 Microsoft OOXML
5 PHP script, ASCII text
160 HTML document, ASCII text
1 PHP script, ASCII text, with no line terminators
1 Emacs v18 byte-compiled Lisp data
2 Embedded OpenType (EOT)
11 PHP script, UTF-8 Unicode text
30 PHP script, UTF-8 Unicode text, with CRLF line terminators
1 PNG image data, 980 x 422, 8-bit/color RGBA, non-interlaced
1 Win32
2 floppy with old FAT filesystem 320k, Media descriptor 0xff
1 GNU message catalog (little endian), revision 0.0, 1 messages
1 GIF image data, version 89a, 86 x 50
16 PNG image data, 32 x 32, 8-bit colormap, non-interlaced
File Extension Statistics
=========================
1 gz
16 jpg
1 rar
1 txt
3 ttf
6 xml
1 container
2 zip
1 iml
16 gif
222 html
1 tif
2 prefs
2 po
17 css
3 woff
74 js
1 dat
1 jpeg
83 php
238 png
2 name
1 DS_Store
3 svg
2 mo
1 manifest
8 htaccess
3 eot
Full path: /var/www/myapp/lib/Cake/Console/Command/Project/ViewProject.php
Relative path: /var/www/myapp/lib/Cake/Console/Command/Task/ViewProject.php
Filename: ViewProject.php
Last data access: Thu Apr 24 21:38:24 2014
Last data modification: Tue Mar 18 16:05:45 2014
File status last change: Wed Mar 26 10:50:22 2014
File size: 14564
File command result: PHP script, ASCII text
File extension: php
MD5 hash: b6ba9efa24eea2fb267a84f7112cb198
SHA256 hash: 8a486a0924cc4ee74a7d05981e0e915397ffcbd92585ef68c0fca0b2d6c3b771