Thursday, October 25, 2007

Yet another Rapidshare hack

A few weeks after I published my Rapidshare Linux hack (which removes the delay between two consecutive downloads by changing the MAC and the IP addresses) and probably completely unrelated to this Rapidshare introduced another annoying "feature" - up to 1 minute delay before the first download.

It turns out that there is a trivial hack for this too (but only for these who are smartlucky to use Firefox). First you will have to install Greasemonkey Firefox addon and after that my Rapidshare delay removal script.

Enjoy!

P.S. This Javascript hack is not exactly new, I just automated it using Greasemonkey.
P.P.S. Here is the script source code:

window.addEventListener(
'load',
function() { this.c = 0},
true);

It simply changes the value of "c" variable to 0 after the page finishes loading. This variable is used by Rapidshare Javascript delay function, so my script just sets this delay to 0.

Update: Apparently this does not work anymore as they check the time delay on the server too.

Labels: , , , , ,

Tuesday, October 09, 2007

Rapidshare hack for Linux

As it turns out it's unbelievably easy to overcome annoying time delay between downloads of the free Rapidshare account. And it's even easier if you happen to run Linux.

Rapidshare "remembers" the IP address you used to download, so all you have to do is to change it between subsequent downloads by restarting DHCP client. In order to ensure that you will not get the same IP address (Linux DHCP client tries to get the same IP by first issuing the DHCP REQUEST and only if it fails - DHCP DISCOVER; and most DHCP servers will try to lease the same IP address for the same MAC address) you have to change... right, the MAC address. And, as I mentioned above, this is yet another example of Linux being much more user-oriented OS than the other one - changing MAC address on Linux is a breeze.

#!/bin/sh
ifdown eth0
let "rnum = $RANDOM % 255"
d=`printf "%02X\n" $rnum`
ifconfig eth0 hw ether 00:0F:EA:37:9F:$d
rm /var/lib/dhclient/dhclient-eth0.leases
ifup eth0


Remember to change the MAC address of the correct interface, i.e. the one on which you get the normal (routable) IP address.

Labels: , , , ,