Advertisement
Guest User

PSNripper.sh

a guest
Jan 30th, 2017
1,714
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. #/bin/bash
  2. # welcome to psnripper.sh
  3.  
  4. IDPS="youridps"
  5. USER="youremail@gmail.com"
  6. PASS="yourpassword"
  7.  
  8. # get account history
  9. # version=8&username=$USER&password=$PASS&consoleId=$IDPS
  10. echo "getting session cookie for listing content";
  11. curl --user-agent "PS3Application libhttp/4.3.1-000 (CellOS)" \
  12. --header "X-MediaInformation: PS3/1920x1080" \
  13. -d "version=8&username=$USER&password=$PASS&consoleId=$IDPS" \
  14. -c cookiejar.txt \
  15. --basic \
  16. -u "final:MrD9KuTQ" \
  17. --insecure \
  18. https://native.np.ac.playstation.net/native/store/crSess.action
  19.  
  20. echo "getting history...";
  21. curl --user-agent "PS3Application libhttp/4.3.1-000 (CellOS)" \
  22. --header "X-MediaInformation: PS3/1920x1080" \
  23. -d "startPosition=0&maxCountOfResults=500&drmContentType=0" \
  24. -b cookiejar.txt \
  25. --basic \
  26. -u "final:MrD9KuTQ" \
  27. --output $IDPS.hist \
  28. --insecure \
  29. https://native.np.ac.playstation.net/native/store/getDrm.action
  30.  
  31. echo "ripping urls ..."
  32. cat *.hist | grep -o --binary-files=text  'http:\/\/[a-z]*.[a-z]*.[a-z]*.[a-z]*\/[a-z]*\/[a-zA-Z0-9]*\/[a-zA-Z0-9]*_[a-zA-Z0-9]*\/[A-Za-z0-9_-]*.pkg' > downloads.txt
  33.  
  34. echo "ripping titleids ..."
  35. cat *.hist | grep -o --binary-files=text  '[A-Z0-9]\{6\}\-[A-Z0-9]\{9\}\_[A-Z0-9]\{2\}\-[A-Z0-9]\{16\}' > titles.txt
  36.  
  37. echo "downloading pkg ..."
  38. while read DOWNFILE
  39. do
  40. curl -O $DOWNFILE
  41. done < "downloads.txt"
  42.  
  43. # get the act.dat
  44. echo "getting act.dat";
  45. curl --user-agent "Legium pro Britania" \
  46. --header "X-I-5-DRM-Version: 1.0" \
  47. --output act.dat \
  48. -d "loginid=$USER&password=$PASS&consoleid=$IDPS&acttype=4" \
  49. --insecure \
  50. https://commerce.np.ac.playstation.net/cap.m
  51.  
  52. # get the rifs
  53. while read BLES
  54. do
  55. echo "dumping rif for $BLES"
  56. echo "loginid=$USER&password=$PASS&consoleid=$IDPS&productid=$BLES"
  57. curl --user-agent "Legium pro Britania" \
  58. --header "X-I-5-DRM-Version: 1.0" \
  59. --header "Accept-Encoding: identity" \
  60. --output $BLES.rif \
  61. -d "loginid=$USER&password=$PASS&consoleid=$IDPS&productid=$BLES" \
  62. --insecure \
  63. https://commerce.np.ac.playstation.net/kdp.m
  64. done < "titles.txt"
  65.  
  66. echo "done!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement