Discovery Linux

Hashing

 

1.     Create MD5 Hash of given directory path

find /home/kali/Documents/hashing_demo -type f -exec md5sum {} >> md5sums.txt \;

cat md5sums.txt

A computer screen shot of a program

Description automatically generated

2.     Check for changes

find /home/kali/Documents/hashing_demo -type f -exec md5sum {} >> new_md5sums.txt \;

diff md5sums.txt new_md5sums.txt

A computer screen shot of a computer code

Description automatically generated

3.     Hash entire file system

md5deep -rs / > md5sums.txt