Skip to content

Instantly share code, notes, and snippets.

@lund133369
Last active January 31, 2024 08:17
Show Gist options
  • Save lund133369/8c636d6d1969c4a1d9a087dd1287d8ce to your computer and use it in GitHub Desktop.
Save lund133369/8c636d6d1969c4a1d9a087dd1287d8ce to your computer and use it in GitHub Desktop.
hackmyvm challenges 021 reversing , script brute force for binari , analize with ghydra
#!/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