MadMakz
/
Misc-Tools
Archived
1
0
Fork 0
This repository has been archived on 2022-05-13. You can view files and clone it, but cannot push or open issues or pull requests.
Misc-Tools/BASH/wget-rapidshare.sh

12 lines
415 B
Bash
Raw Normal View History

2012-10-14 16:01:56 +02:00
#!/bin/bash
###
## Usage: ./<script> <user> <login> <downloadlist>
##
## Note: Requires RS User account and setting "Direct Downloads" set to yes.
###
rapidshare_cookie=`wget -q -O - --post-data="sub=getaccountdetails&withcookie=1&login=$1&password=$2" https://api.rapidshare.com/cgi-bin/rsapi.cgi | grep cookie | cut -d= -f2`
for i in $( cat $3); do
wget --header="Cookie: enc=$rapidshare_cookie" $i
done