Welcome, guest | Sign In | My Account | Store | Cart

This is script coded for FUN. You can get information in the hidden fields of web pages.

JavaScript, 11 lines
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
// First type somthing in password field.
// Now without signing in or hitting enter.
// Copy and paste corresponding codes in address bar.
// HIT ENTER.
// Enjoy the magik ;)

//gmail:
javascript:alert(document.getElementById('Passwd').value)

//yahoomail:
javascript:alert(document.getElementById('passwd').value)

3 comments

Marius Ghita 11 years, 7 months ago  # | flag

You could have written at least something more generic. Par example: enumerate through all the form fields and their children, check if type is set (for input fields) and if type password, then alert it.

(function(){
  // number of forms
  fl = document.forms.length;
  for(var i = 0; i < fl; i++) {
    tform = document.forms[i];
    sfl = tform.length;
    for(var j = 0; j < sfl; j++) {
      // check if type attribute is set
      if(typeof tform[j].type != "undefined") {
        // if so check if type password
        if(tform[j].type.toLowerCase() == "password") {
          alert('password: '+tform[j].value);
        }
      }
    }
  }
})();
TheMachineCharmer (author) 11 years, 6 months ago  # | flag

@Marius Ghita. Thanks for the comment and code. But I wanted to keep it very very simple.

devika 11 years, 4 months ago  # | flag

i dont no how to know yahoomail passsword

Created by TheMachineCharmer on Sun, 26 Oct 2008 (MIT)
JavaScript recipes (69)
TheMachineCharmer's recipes (4)

Required Modules

  • (none specified)

Other Information and Tasks