This repository has been archived on 2020-05-08. You can view files and clone it, but cannot push or open issues or pull requests.
audible-getkey/entrypoint.sh
Simon Bruder 77da53f68b
All checks were successful
continuous-integration/drone/push Build is passing
Init
2020-05-08 19:33:25 +02:00

13 lines
265 B
Bash
Executable file

#!/bin/sh
set -e
if [ -z "$1" ]; then
echo "please provide a sample aax file"
exit 1
fi
CHECKSUM=$(ffprobe $1 2>&1 | grep -oP '\[aax\] file checksum == \K([0-9]|[a-f])*')
echo "Getting key for checksum ${CHECKSUM}"
cd /opt/rainbowcrack/
./rcrack . -h $CHECKSUM