Peter South
Active Member
Code:
#! /bin/bash
# /usr/local/bin/fucker.sh v13.1.15
# Echos 4 random integers into all files of a directory which scrambles their checksum hash values.
touch ./'$filename';
for filename in ./*
do
if [ "$filename" != "$0" ]
then
echo $RANDOM >> "$filename";
fi
done;
To verify the md5 checksum hash value of a file has been changed you can use the command:
Code:
md5sum exampleFileName.rar;
Furthermore, this script has been tested and proven to not impact the integrity of all types of video files as well as RAR files (even ones split into parts)
For more of my scripts see: Index of various Bash Script Threads contributed by Eddie Johnson.
Last edited: