Click to See Complete Forum and Search --> : can u crack this javascript


NoObIe
09-10-2003, 02:45 PM
can u carck this for me plz im so confused with this script

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var params=new Array(4);
var alpha="ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHI";
function check(form) {
which=form.memlist.selectedIndex;
choice = form.memlist.options[which].value+"|";

if (choice=="x|") {
alert("Please Select Your Name From The List");
return;
}
p=0;
for (i=0;i<3;i++)
{
a=choice.indexOf("|",p);
params[i]=choice.substring(a,p);
p=a+1;
}
h1=makehash(form.pass.value,3);
h2=makehash(form.pass.value,10)+" ";

if (h1!=params[1]) {
alert("Incorrect Password!"); return; };
var page="";

for (var i=0;i<8;i++) {
letter=params[2].substring(i,i+1)
ul=letter.toUpperCase();
a=alpha.indexOf(ul,0);
a-=(h2.substring(i,i+1)*1);

if (a<0) a+=26;
page+=alpha.substring(a,a+1); };
top.location=page.toLowerCase()+".cgi";
}
function makehash(pw,mult) {
pass=pw.toUpperCase();
hash=0;
for (i=0;i<8;i++) {
letter=pass.substring(i,i+1);
c=alpha.indexOf(letter,0)+1;
hash=hash*mult+c;
}
return(hash);
}
// End -->
</script>

what is the password and user name?

brendandonhue
09-10-2003, 04:28 PM
Why would I give you a password to something that quite clearly, you aren't supposed to have access to? Would you give anyone who asked for it your passwords?

NoObIe
09-10-2003, 05:18 PM
this source is not to crack any websites its is a security challange that i need help with (www.blind-dice.com javascript challange 3)

pyro
09-10-2003, 09:07 PM
From the site you linked to:

The challenges will range from easy to difficult in each section. As you complete each challenge your points and rank will increase.Hmm...

NoObIe
09-13-2003, 10:34 AM
???

pyro
09-13-2003, 10:36 AM
What I am saying is why would we help you crack the code, if it is for a contest designed for participants to accumulate points? Seems a bit unfair to me...

NoObIe
09-13-2003, 10:39 AM
y does everthing have to be fair i just want to see how one challange is done so i know how to do the others

AdamGundry
09-13-2003, 10:49 AM
i just want to see how one challange is doneIt's easy - you learn Javascript, then you can crack it. Cheating isn't going to help you learn.

Adam

NoObIe
09-13-2003, 10:53 AM
where can i learn javascript for these types of stuff?

AdamGundry
09-13-2003, 10:59 AM
Bear in mind learning this level of JS takes quite a while. You might try some of these links to get started:

http://www.javascriptmall.com/learn/contents.htm
http://www.w3schools.com/js/default.asp
http://devedge.netscape.com/central/javascript/

Adam

pyro
09-13-2003, 11:00 AM
It's not "for these types of stuff." It's just learn it, and once you know the language, you'll be amayzed at what you can do. Anyway, "JavaScript, The Definitive Guide" by David Flanagan is an excellent book on JavaScript and http://devedge.netscape.com/library/manuals/2000/javascript/1.5/reference/ is a great site.