Wednesday, March 31, 2010

Hacking a facebook app in 30 seconds , yup its right !!!!!

Recently, I saw one of facebook updates from my friend Arko, It said something like "It said 'I clicked 513 times in 30 seconds' Think you can beat your friend ??".  ( the app can be found at http://apps.facebook.com/myclickchallenge/)


I thought about the app for a while and this is what I got for you all.
Here is the trick to write virtually anything (a negative number , string , a 100 billion clicks ...whatever u like) instead of your number of clicks.


1. Open Firefox
2. Download and install Firebug ( http://.getfirebug.com/).Its a plugin for mozilla. It may be already present if you are a web developer.
3. Open the apps link http://apps.facebook.com/myclickchallenge
4. Right click on the page Click--- This Frame >>Open in new tab. This will open the app part of the page in new tab.
5. Now in this newly opened tab, click the firebug icon in bottom right of firefox to view the source code and scripts of the app.
6. You will find a variety of options there. On the top left of firebug you will get 'Console'. Click on it.
7. In the console write       vclick = 99999999999         or any value for vclick you want as the final value and press enter.
8. If you know just a bit of programming or javascript, you will find number of global variables like start, vtime etc. to tweak with.
9. After tweaking just start the game any wait for the time to finish by , then publish your hacked score.




Comment here if you face problems (although I doubt you will face one.) You may tweak other apps with this. I would be glad to know about your experiences here.


Abhishek