JSProgramIA
Programmer
Ok I will give you a hint here...
I will be generating a URL to redirect to. And the URL is based on this algo:
I am wondering if any Guru's could write brute this. Depending on the time it takes for someone to solve this, I will know how secure this is.
( Then of course I will change it a bit
)
Any takers?
Giovanni
I will be generating a URL to redirect to. And the URL is based on this algo:
Code:
<script language="javascript" type="text/javascript">
function StrRotate(aString){
var _l1 = aString;
_l1.substr(_l1.length - 1) + _l1.substr(0, _l1.length - 1);
return(_l1.substr(_l1.length - 1) + _l1.substr(0, _l1.length - 1));
}
var li = "1234567890abcdefghijklmnopqrstuvwxyz"; // ENTER YOUR SERIAL NUMBER HERE
if(li.length<30) {
message = "INVALID SERIAL NUMBER. NOT ENOUGH CHARACTERS.";
} else {
l = 0;
for (i = 1; i < li.length; i++){
l = l + li.charCodeAt(i);
} // end of for
if (li.charCodeAt(0) - 70 + l % 10 != 6) {
li = "...";
message = "INVALID SERIAL NUMBER.";
} else {
//-------------------------------------
// Passed THAT test, now some more pain
//--------------------------------------
li = li.substr(1);
x = "XN69-IWCH7RVPJQF3Y4G8T05A1LB.2OMDEKZSU";
y = li;
li = "";
for (i = 0; i < y.length; i++)
{
x = StrRotate(x);
l = x.indexOf(y.charAt(i));
if (l < 26)
{
li = li + String.fromCharCode(l + 65);
continue;
} // end if
if (l < 36)
{
li = li + String.fromCharCode(l + 48 - 26);
continue;
} // end if
li = li + String.fromCharCode(l + 45 - 36);
} // end of for
li = li.substr(2, Number("0x" + li.substr(0, 2))).toLowerCase();
if (li.substr(li.length - 5) == "-bulk"){
message = "VALID SERIAL!!";
}
}
} // End Length Check
alert(message);
</script>
I am wondering if any Guru's could write brute this. Depending on the time it takes for someone to solve this, I will know how secure this is.
( Then of course I will change it a bit
Any takers?
Giovanni