Archive for August, 2008

JavaScript Hack/view Autocomplete Password

Myspace: javascript:alert(document.forms(1).elements(3).value)
https://login.facebook.com/login.php:
javascript:alert(document.forms(0).elements(1).value)

Have you clicked to remember a password into a website like myspace and forgotten what it actually is?

Go to the website:
www.myspace.com

copy and paste this into the address bar:
javascript:alert(document.forms.length)

This will tell you how many forms are on the page:

The popup alert will tell you there are 5 forms.

javascript:alert(document.forms(0).name)
Now we find there names of the forms…

0 = srch
1 = aspnetForm (we are interested in this one)
2 =
3 = SearchFormTop
4 = srch

I then ran:

javascript:alert(document.forms(1).elements(1).name) = nextpage
javascript:alert(document.forms(1).elements(2).name) = Email
javascript:alert(document.forms(1).elements(3).name) = Password

Enter some info into the log in:

Email: billy
Password: Bob

Now run this:

javascript:alert(document.forms(1).elements(3).value)

the alert box will show Bob, so its read what is stored behind the dots!!!

ASP.net RadioButtons Text Align

Want to know how to Align you RadioButton List text so that it is in line with the button image?

Create a css file and reference it in the head:

 

 

< link rel=”stylesheet” type=”text/css” href=”media/css/reset-fonts-grids.css”>

 

 

 

Put this in a css file:

/* ——————————————-
* Flow Layout List
* RadioButtonList RepeatLayout=”Flow”
  ——————————————- */
.flowLayoutList
{
display: block;
height: 25px;
}
.flowLayoutList INPUT,
.flowLayoutList LABEL
{
line-height: 20px;
vertical-align: middle;
}
.flowLayoutList INPUT[type=”radio”]
{
float: left;
    width: 20px;
    padding: 0;
    vertical-align: middle;     }

.flowLayoutList LABEL
{
clear: right;
margin-right: 4px;   white-space: nowrap;
}

 

Set CSSClass on the Radiobutton list to: flowLayoutList

And you text will vertically align!

JD

Topgun according to Tarantino