Sunday, January 10, 2010

HotFile.com Download Wait Timer Hack

You will need:

Mozilla Firefox ( 3.x or newer)-
http://www.mozilla.com/en-US/

Firebug (Firefox Addon) -
https://addons.mozilla.org/en-US/firefox/addon/1843


Firebug in the Firefox addon tray.

With Firefox configured with Firebug, you are armed with the tools necessary to modify JavaScript as it executes real time from your system memory.

HotFile.com ’s download timer is written in pure client side JavaScript. A quick glance through the script shows there are multiple points of vulnerability, thus multiple methods of hacking the java script running in your web browser. The only question now is “Trick or Treat”?

Method 1: Trick It

This method initializes all built in script functions which actually are preventing immediate download, however once it is initialized, the second variable definition actually satisfies the timer function by telling the mathematical timer that the time waited is greater than what is required, thus forcing the script to continue and present us with the option to execute the document.forms.f.submit(); function.

starttimer(); var timerend=30001;

Method 2: Treat It

Skipping the above form, you can actually just call the summit form straight away. This is the most efficient method of skipping the timer, as it literally bypasses all timer functions and posts the download form which is hidden and out of site.

document.forms.f.submit();

Choose Wisely

To take advantage of these JavaScript hacks, in Firebug, switch to the console. If it is not enabled, click on Firebug’s console menu to enable it, which will reload the page with the console enabled. The console has two sections to it. One for displaying events as they happen, and a second, for manually inputting commands to the page loaded in memory in real time.

The input console will be prefixed with “>>>” indicating that it is the location for putting your commands in.

JavaScript console in Firebug for Mozilla Firefox.

Once you have decided which method you want to use, simply paste in your modified code.

If you are wanting to play with the timer’s numbers, Please take note that the time is represented in milliseconds. When specifying time in milliseconds, 1000 equals one second, 10,000 equals ten seconds, etc. In the below code example, the “timerend” is equal to thirty seconds, and one thousandth of a second.

var timerend=30001;

No comments:

Post a Comment