Last active
January 31, 2024 08:17
-
-
Save lund133369/8c636d6d1969c4a1d9a087dd1287d8ce to your computer and use it in GitHub Desktop.
hackmyvm challenges 021 reversing , script brute force for binari , analize with ghydra
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#crunch 6 6 -t P8%%%% -o words.txt | |
for i in $(cat ./words.txt); do | |
#res=$(echo $i | ./dowload.elf ) | |
#echo $res | |
echo "probando la password $i" | |
correct=$(timeout 1s echo $i | ./dowload.elf | cut -f3 -d ' ') | |
if [ "$correct" == "Correct" ]; then | |
echo $i | |
break | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment