JavaScript
Exploits!
So much of the web is written in JavaScript, and JavaScript runs in YOUR browser, so NOTHING can stop you from changing the rules and having some fun!
Last semester we FAILED at hacking cookie clicker (from the outside), but this semester we succeed by writing our own code in our browser!
Is it possible to get 1000 cookie clicks per second?????
Cut and paste the following code to notepad or your editor:
function click_cookie( )
{
document.getElementById("goldenCookie").click( );
document.getElementById("bigCookie").click( );
}
setInterval("click_cookie( )", 1);
Next, in Chrome, go to Cookie clicker:
http://orteil.dashnet.org/cookieclicker/
Right click on the screen (or use Ctrl-Shift-J) and select the “Console” tab.
After the last entry, paste in your code from below, hit “Enter” and see what happens???
Can you change the rate?
Can you see how to create other JavaScript exploits????