Thứ Tư, 14 tháng 9, 2011

Angry Birds Game for Chrome Already Hacked

On May 11th, 2011 Rovio’s CEO, Peter Vesterbacka, announced that Angry Birds game was released to the web to play for free. Another big step for both Rovio and Google. Although Angry Birds game was already available for almost all mobile platforms it is now available on practically any device that has internet capabilities.
Now on to the main reason for this post. Just hours after the release of Angry Birds Chrome the game has already been hacked. A Web developer from Toronoto who specializes in HTML5 and Javascript figured out how to unlock all levels including the new exclusive Chrome levels. He was able to take advantage of the unencrypted local storage that the game uses to save your progress. He then posted his cheat on his website for all to see.
All you have to do is load the game in your browser and then copy paste the following line of code in your browsers address bar and press enter or click Go and all levels will be unlocked: javascript: var i = 0; while (i<=69) { localStorage.setItem(‘level_star_’+i,’3′); i++; } window.location.reload();
If you want to reverse the cheat and lock all the levels again, just place the following code: javascript: var i = 1; while (i<=69) { localStorage.setItem(‘level_star_’+i,’-1′); i++; } window.location.reload();
So for those who don’t want to replay all the mobile levels and just get to the Chrome levels or if you’re just lazy this cheat code hack will definately come in handy.
For a little programming insight, here is why this hack works. When Rovio announced the Angry Birds game for Chrome at the Google Conference they mentioned that they are using HTML5 LocalStorage. LocalStorage is unencrypted and unprotected locally. Looking at the code through Chrome’s Web Inspector you can see that your score and stars are saved using LocalStorage. And so lucky for us, that allows us to use setitem() function to set all levels to three and thus unlock them all. What is this world coming to when a little game like Angry Birds game is not even safe from hacking!?

Không có nhận xét nào:

Đăng nhận xét