Skip to content

Instantly share code, notes, and snippets.

@stevehenderson
Created February 2, 2023 04:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevehenderson/22e87f4a7bcd0d1a6430dc603d153fde to your computer and use it in GitHub Desktop.
Save stevehenderson/22e87f4a7bcd0d1a6430dc603d153fde to your computer and use it in GitHub Desktop.
Entropy Walker - get entropy of all files in a directory
#!/bin/bash
#
# A simple entropy walker.
# Requirements: apt install ent
#
echo 0,File-bytes,Entropy,Chi-square,Mean,Monte-Carlo-Pi,Serial-Correlation
for i in *;
do echo $i $(ent "$i" -t | tail -n1);
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment