Skip to content

Instantly share code, notes, and snippets.

View binarymutant's full-sized avatar

Christopher Lunsford binarymutant

View GitHub Profile
@binarymutant
binarymutant / rapidshare-dl
Created August 26, 2009 11:01
premium rapidshare downloader
#!/usr/bin/env ruby
username = "example"
password = "test"
`wget --save-cookies ~/.rapidshare --post-data "login=#{username}&password=#{password}" -O - https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi > /dev/null`
if ARGV[0] =~ /http*/
`wget -c --load-cookies ~/.rapidshare #{ARGV[0]}`
elsif ARGV[0] = "-f"
`wget -c --load-cookies ~/.rapidshare -i #{ARGV[1]}`