Thursday, February 17, 2011

Entropy of a gzip file #1

$ java ByteEntropy -c -r 512 -w 200 -o elf.5.gz.ent -f /usr/share/man/man5/elf.5.gz

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



$ java ByteEntropy -c -r 512 -w 200 -o hosts.5.gz.ent -f /usr/share/man/man5/hosts.5.gz

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


$ java ByteEntropy -c -r 512 -w 200 -o motd.5.gz.ent -f /usr/share/man/man5/motd.5.gz

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


$ java ByteEntropy -c -r 512 -w 200 -o passwd.5.gz.ent -f /usr/share/man/man5/passwd.5.gz

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


$ java ByteEntropy -c -r 512 -w 200 -o proc.5.gz.ent -f /usr/share/man/man5/proc.5.gz

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


$ java ByteEntropy -c -r 512 -w 200 -o resolv.conf.5.gz.ent -f /usr/share/man/man5/resolv.conf.5.gz

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

 

$ java ByteEntropy -c -r 512 -w 200 -o securetty.5.gz.ent -f /usr/share/man/man5/securetty.5.gz

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



$ java ByteEntropy -c -r 512 -w 200 -o services.5.gz.ent -f /usr/share/man/man5/services.5.gz

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

No comments:

Post a Comment