Skip to content

Instantly share code, notes, and snippets.

@sergiolopes
Created November 20, 2010 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergiolopes/707875 to your computer and use it in GitHub Desktop.
Save sergiolopes/707875 to your computer and use it in GitHub Desktop.
Descobre a senha de uma fatura do cartão do Banco Real por força bruta. Tem que ter o pdftk instalado na máquina
#!/bin/bash
i=$1
while true; do
echo
echo
echo Tentando $i
pdftk Fatura_10_SERGIO_1288_Visa_0001969284.pdf input_pw $i output saida.txt
if [ "$?" = "0" ]; then
echo SENHA = $i
break
fi
i=$((i + 1))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment