Nieuw lid |
|
Hallo mensen,
Ik heb dit script gevonden op een scriptsite.
Alleen ik snap er niks van hoe het werk onzovooort want dat wordt niet uitgelegt.
Weet iemand hoe het werkt of het wachtwoord want ik snap er niks van .
Het moet wel werken er zit dus geen fout in
<HTML>
<HEAD>
<TITLE>Index</TITLE>
<SCRIPT LANGUAGE="JavaScript">
changetype="DAYS";
changen=1;
codeoverride = 0;
baseurl = "http://www.*******.nl/link/";
function passEncode(form)
{
pEncode(form.password.value);
}
function pEncode(passwd)
{
var Key = getKey();
var Ret = encode (passwd, Key);
parent.location = baseurl + Ret + "/";
}
function getKey()
{
if (codeoverride == -1)
{
var months = new Array();
months[0]=31;
months[1]=28;
months[2]=31;
months[3]=30;
months[4]=31;
months[5]=30;
months[6]=31;
months[7]=31;
months[8]=30;
months[9]=31;
months[10]=30;
months[11]=31;
var dater = new Date();
var Key = 0;
for (var count = 0; count < dater.getMonth();count++)
{
Key = Key + months[count];
}
Key += dater.getDate();
if (changetype == "DAYS")
{
Key = Key / changen;
}else if (changetype == "WEEKS"){
Key = Key / 7;
Key = Key / changen;
}else{
Key = dater.getMonth() + ((dater.getYear() % 100) * 12);
Key = Key / changen;
}
dater = null;
}else{
Key = codeoverride;
}
Key = Math.floor(Key);
return (Key);
}
function encode (OrigString, CipherVal)
{
Ref="0123456789abcdefghijklmnopqrstuvwxyz._~ABCDEFGHIJKLMNOPQRSTUVWXYZ";
CipherVal = parseInt(CipherVal);
var Temp="";
for (Count=0; Count < OrigString.length; Count++)
{
var TempChar = OrigString.substring (Count, Count+1);
var Conv = cton(TempChar);
var Cipher=Conv^CipherVal^Count;
Cipher=ntoc(Cipher%Ref.length);
Temp += Cipher;
}
return (Temp);
}
function cton (Char)
{
return (Ref.indexOf(Char));
}
function ntoc (Val)
{
return (Ref.substring(Val, Val+1));
}
if ((qmark = location.search) != ""){
pEncode(qmark.substring(qmark.indexOf("=")+1,qmark.length));
}
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<H1>regel 1 <br>
regel 2</H1>
<FORM NAME="passform" ONSUBMIT="false;">
<P> WW:<BR>
<INPUT TYPE="text" NAME="password" VALUE=""
onChange="passEncode(this.form)" >
</P>
<P>
<INPUT TYPE="button" NAME="button" VALUE="OK"
onClick="passEncode(this.form)">
</P>
</FORM>
</BODY>
</HTML>
<HTML> <HEAD> <TITLE>Index</TITLE> <SCRIPT LANGUAGE="JavaScript"> changetype="DAYS"; changen=1; codeoverride = 0; baseurl = "http://www.*******.nl/link/"; function passEncode(form) { pEncode(form.password.value); } function pEncode(passwd) { var Ret = encode (passwd , Key); parent.location = baseurl + Ret + "/"; } function getKey() { if (codeoverride == -1) { var months = new Array(); months[0]=31; months[1]=28; months[2]=31; months[3]=30; months[4]=31; months[5]=30; months[6]=31; months[7]=31; months[8]=30; months[9]=31; months[10]=30; months[11]=31; for (var count = 0; count < dater .getMonth ();count ++) { } if (changetype == "DAYS") { }else if (changetype == "WEEKS"){ }else{ Key = dater .getMonth () + ((dater .getYear () % 100) * 12); } dater = null; }else{ } } function encode (OrigString, CipherVal) { Ref="0123456789abcdefghijklmnopqrstuvwxyz._~ABCDEFGHIJKLMNOPQRSTUVWXYZ"; CipherVal = parseInt(CipherVal); var Temp=""; { var TempChar = OrigString .substring (Count, Count+1); var Conv = cton(TempChar); var Cipher=Conv^CipherVal^Count; Cipher=ntoc(Cipher%Ref.length); Temp += Cipher; } return (Temp); } function cton (Char) { return (Ref.indexOf(Char)); } function ntoc (Val) { return (Ref.substring(Val, Val+1)); } if ((qmark = location.search) != ""){ pEncode(qmark.substring(qmark.indexOf("=")+1,qmark.length)); } </SCRIPT> </HEAD> <BODY BGCOLOR="#FFFFFF"> <H1>regel 1 <br> regel 2</H1> <FORM NAME="passform" ONSUBMIT="false;"> <P> WW:<BR> <INPUT TYPE="text" NAME="password" VALUE="" onChange="passEncode(this.form)" > </P> <P> <INPUT TYPE="button" NAME="button" VALUE="OK" onClick="passEncode(this.form)"> </P> </FORM> </BODY> </HTML>
|