pintcat

Crack Audible's DRM encryption with rainbowcrack

Apr 23rd, 2021 (edited)
1,340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.63 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. printf "Cracking Audible's DRM encryption... "
  4.  
  5. HASH=$(ffprobe $1 2>&1 | grep 'file checksum == ' | awk -F ' == ' '{print $2}')
  6.  
  7. cd ~/rainbowcrack
  8. unzip -q tables.zip -d /media/ramdisk/
  9. ./rcrack /media/ramdisk/ -h $HASH | grep 'hex:' | awk -F ':' '{print $2}' | xargs -0 printf "Your activation code is: \033[0;31m%s\033[0m"
  10. rm -drf /media/ramdisk/tables
  11.  
  12.  
  13. # Simple command line to remux DRM protected Audible files and remove DRM-protection (XXXXXXXX must be replaced with the given activation code):
  14. # ffmpeg -y -activation_bytes XXXXXXXX -i infile.aax -map_metadata 0 -id3v2_version 3 -codec:a copy -vn outfile.m4b
  15.  
  16.  
Add Comment
Please, Sign In to add comment