HdRen is a very simple tool I built for my own use some months ago, but since it may be useful
to others, I decided to put it online.
Its only purpose is to rename files using the hexdump of their first bytes, thus providing a
quick way to group files by their types, or spot suspicious files with a quick look,
just by sorting them alphabetically.
It's coded in plain Python 2.x using only
standard modules, so it should work right away on just about any platform.
For example, here's a small list of files, supposedly Office's documents and some photos:
This way, either at the command prompt or in any files manager, it's easy to spot
the two indruders.
It's possible to recurse subdirs and specify the lenght of the header to be added:
HdRen - hexdump file renamer v1.02 - (C) 2015 By M.Pontello
usage: hdren.py [-h] [-v] [-l n] [-r] filenames [filenames ...]
Rename a number of files adding their n bytes header hexdump.
positional arguments:
filenames Files to scan (can include path & wildcards)
optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-l n, --len n header's lenght
-r, --recurse recurse subdirs