|
3 months ago | |
---|---|---|
cmd/friller | 3 months ago | |
testdata | 3 months ago | |
third_party | 5 months ago | |
.gitignore | 4 months ago | |
LICENSE | 4 months ago | |
Makefile | 4 months ago | |
README.md | 3 months ago | |
download.go | 5 months ago | |
entropy.go | 4 months ago | |
err.go | 5 months ago | |
friller.1 | 3 months ago | |
go.mod | 4 months ago | |
go.sum | 4 months ago | |
hash.go | 5 months ago | |
hash_test.go | 4 months ago | |
process.go | 3 months ago | |
process_bench.go | 4 months ago | |
process_test.go | 3 months ago | |
pronom.sig | 4 months ago | |
redis.go | 4 months ago | |
siegfried.go | 3 months ago | |
types.go | 4 months ago | |
uuid.go | 4 months ago |
filedriller walks a directory tree and identifies all regular files by type with siegfried. Furthermore it creates UUIDv4s, hash sums (md5, sha1, sha256, sha512 or blake2b-512) and filedriller can check if the file is in the NSRL.
The NSRL check expects a Redis server that serves NSRL SHA-1 hashes. You can use my docker image
v1.0-BETA
For issues see the issue tab.
Binary release
Download the file for your platform and execute it. The executables are named friller.
Note: If the build badge above is green and says passing, it is a good idea to install from source.
From source
go get codeberg.org/steffenfritz/filedriller/cmd/friller
Download signature file
friller -download
Optional NSRL:
- docker pull ampoffcom/nslredis:032020
- docker images
- docker run -p 6379:6379 $IMAGEID
When you pass the -redisserv flag, friller sends a SHA-1 hash to the specified server.
Fetch the pronom.sig file
friller -download
Without Redis / NSRL
friller -in SOMEDIRECTORY
With Redis / NSRL
friller -in SOMEDIRECTORY -redisserv localhost
With alternate output file
friller -in SOMEDIRECTORY -output foo.csv
The output is written to a CSV file. Schema of the file:
Filename, SizeInByte, Registry, PUID, Name, Version, MIME, ByteMatch, IdentificationNote, HashSum, UUID, inNSRL, Entropy
Usage of ./friller:
-download
Download siegfried's signature file
-entropy
Calculate the entropy of files. Limited to file sizes up to 1GB
-hash string
The hash algorithm to use: md5, sha1, sha256, sha512, blake2b-512 (default "sha256")
-in string
Root directory to work on
-output string
Output file (default "info.csv")
-redisport string
Redis port number for a NSRL database (default "6379")
-redisserv string
Redis server address for a NSRL database
-version
Print version and build info