Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

help!


ghost's Avatar
0 0

need help what is the password in this codse:

<SCRIPT LANGUAGE="JavaScript"> function pw() { var d1, Eingabe; d1=window.document.linkColor;

Eingabe=prompt (&quot;Please enter password&quot;);
if (Eingabe==d1)
{

window.location.href=String.fromCharCode(65,66,67)+&quot;.htm&quot;;
}
else
{
window.location.href=&quot;denied.htm&quot;;
}

} </SCRIPT> <p><a href="javascript:pw()" onFocus="this.blur()"><img src="enter.gif" border=0></a></p> <IMG SRC="http://counter.digits.com/wc/-d/4/-h/zwei" ALIGN=middle WIDTH=60 HEIGHT=20 BORDER=0 HSPACE=4 VSPACE=2>


Mr_Cheese's Avatar
0 1

from a quick look, try entering the "link colour" of that page.

So basically, whatever colour the links are, enter that colour into the password box.


ghost's Avatar
0 0

d1=window.document.linkColor;

Eingabe=prompt ("Please enter password"; if (Eingabe==d1)

That's all you need. The d1 equals the document's link color and the Eingabe, which is the password prompt, only accepts that variable. Although, there are other ways of completing this, this is probably the quickest way. Also, i seen this somewhere beforeā€¦


ghost's Avatar
0 0

Something I've found useful when dealing with javascript security is to look for the variable that holds what your input should equal. Then, instead of reversing the whole thing (trust me, this CAN be a hassle), I just copy the script's source, then take out all the checking/prompting part and throw in a

document.write(pass_variable);

Run the page and it'll print the password out for you ;)


ghost's Avatar
0 0

Xero wrote: Something I've found useful when dealing with javascript security is to look for the variable that holds what your input should equal. Then, instead of reversing the whole thing (trust me, this CAN be a hassle), I just copy the script's source, then take out all the checking/prompting part and throw in a

document.write(pass_variable);

Run the page and it'll print the password out for you ;) Another thing that works is:

alert(pass_variable);