Paradoxis / StegCracker

Steganography brute-force utility to uncover hidden data inside files
https://blog.paradoxis.nl/stegcracker-2-released-f03771ba855b
MIT License
551 stars 106 forks source link

Input Validation #3

Closed sicinthemind closed 6 years ago

sicinthemind commented 6 years ago

Stegcracker will execute and give false-positive checking on a file that doesn't exist.

sicinthemind commented 6 years ago

Recommended Add line 13+

if [ ! -f $1 ]; then
   echo -e "\e[31mError:\e[0m File '$1' does not exist!"
   exit 1
fi
Paradoxis commented 6 years ago

Added in commit e2a5059, thanks for the help :)