Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #/bin/bash
- # welcome to psnripper.sh
- IDPS="youridps"
- USER="youremail@gmail.com"
- PASS="yourpassword"
- # get account history
- # version=8&username=$USER&password=$PASS&consoleId=$IDPS
- echo "getting session cookie for listing content";
- curl --user-agent "PS3Application libhttp/4.3.1-000 (CellOS)" \
- --header "X-MediaInformation: PS3/1920x1080" \
- -d "version=8&username=$USER&password=$PASS&consoleId=$IDPS" \
- -c cookiejar.txt \
- --basic \
- -u "final:MrD9KuTQ" \
- --insecure \
- https://native.np.ac.playstation.net/native/store/crSess.action
- echo "getting history...";
- curl --user-agent "PS3Application libhttp/4.3.1-000 (CellOS)" \
- --header "X-MediaInformation: PS3/1920x1080" \
- -d "startPosition=0&maxCountOfResults=500&drmContentType=0" \
- -b cookiejar.txt \
- --basic \
- -u "final:MrD9KuTQ" \
- --output $IDPS.hist \
- --insecure \
- https://native.np.ac.playstation.net/native/store/getDrm.action
- echo "ripping urls ..."
- 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
- echo "ripping titleids ..."
- 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
- echo "downloading pkg ..."
- while read DOWNFILE
- do
- curl -O $DOWNFILE
- done < "downloads.txt"
- # get the act.dat
- echo "getting act.dat";
- curl --user-agent "Legium pro Britania" \
- --header "X-I-5-DRM-Version: 1.0" \
- --output act.dat \
- -d "loginid=$USER&password=$PASS&consoleid=$IDPS&acttype=4" \
- --insecure \
- https://commerce.np.ac.playstation.net/cap.m
- # get the rifs
- while read BLES
- do
- echo "dumping rif for $BLES"
- echo "loginid=$USER&password=$PASS&consoleid=$IDPS&productid=$BLES"
- curl --user-agent "Legium pro Britania" \
- --header "X-I-5-DRM-Version: 1.0" \
- --header "Accept-Encoding: identity" \
- --output $BLES.rif \
- -d "loginid=$USER&password=$PASS&consoleid=$IDPS&productid=$BLES" \
- --insecure \
- https://commerce.np.ac.playstation.net/kdp.m
- done < "titles.txt"
- echo "done!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement