Friday, February 18, 2011

Entropy of an encrypted (with GPG) file #1

$ gpg -o elf.5.gz.gpg -c /usr/share/man/man5/elf.5.gz

$ java ByteEntropy -c -r 512 -w 200 -o elf.5.gz.gpg.ent -f elf.5.gz.gpg

$ awk -F',' '{s+=$1} END {printf "Entropy average: %s\n", s/NR}' elf.5.gz.gpg.ent
Entropy average: 137.792



$ gpg -o motd.5.gz.gpg -c /usr/share/man/man5/motd.5.gz

$ java ByteEntropy -c -r 512 -w 200 -o motd.5.gz.gpg.ent -f motd.5.gz.gpg

$ awk -F',' '{s+=$1} END {printf "Entropy average: %s\n", s/NR}' motd.5.gz.gpg.ent
Entropy average: 137



$ gpg -o stdlib.h.gpg -c /usr/include/stdlib.h

$ java ByteEntropy -c -r 512 -w 200 -o stdlib.h.gpg.ent -f stdlib.h.gpg

$ awk -F',' '{s+=$1} END {printf "Entropy average: %s\n", s/NR}' stdlib.h.gpg.ent
Entropy average: 139.062


$ gpg -o elf.h.gpg -c /usr/include/elf.h

$ java ByteEntropy -c -r 512 -w 200 -o elf.h.gpg.ent -f elf.h.gpg

$ awk -F',' '{s+=$1} END {printf "Entropy average: %s\n", s/NR}' elf.h.gpg.ent
Entropy average: 138.357



$ gpg -o find.gpg -c /usr/bin/find

$ java ByteEntropy -c -r 512 -w 200 -o find.gpg.ent -f find.gpg

$ awk -F',' '{s+=$1} END {printf "Entropy average: %s\n", s/NR}' find.gpg.ent
Entropy average: 138.414



$ gpg -o strip.gpg -c /usr/bin/strip

$ java ByteEntropy -c -r 512 -w 200 -o strip.gpg.ent -f strip.gpg

$ awk -F',' '{s+=$1} END {printf "Entropy average: %s\n", s/NR}' strip.gpg.ent
Entropy average: 138.416

No comments:

Post a Comment