![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Programmer
Join Date: Sep 2005
Posts: 50
Rep Power: 0
![]() |
a script i wanna crack
<SCRIPT LANGUAGE="JavaScript">
<!--
al="`1234567890-=~!@#$%^&*()_+qwer"
+"tyuiop[]QWERTYUIOP{}|asdfghjkl;A"
+"SDFGHJKL:zxcvbnm,./ZXCVBNM<>?";
ab1="";
bctr=0;
function ckPwd(){
tst=document.isn.username.value
+"*"+document.isn.passwrd.value+"*";
ls=document.pd.pe.value;
a=eval(ls.substring(0,2))-91;
ls=ls.substring(2,ls.length);
nls="";
flg=0;
while (ls.length>12){
ab=eval(ls.substring(0,2))-89;
ab1=(ab1==""?""+ab:ab1);
oab1=ab1;
ls=ls.substring(2,ls.length);
for (var i=0;i<ab;i++){
nr=eval(ls.substring(0,2))-a;
ls=ls.substring(2,ls.length);
nls+=al.charAt(nr);
}
nls+="*";
if (nls.indexOf(tst)>-1){
ls="";
flg=1;
}
}
if (flg==1){
tstOk();
}
else{
bctr++;
if (bctr>3){
location.href="wrongpage.php";
}
else{
alert("Sorry. Bad Username or Password."
+" Failed Attempt #"+bctr+".");
}
}
}
function tstOk(){
ab1=ab1+""+a;
alert("OK. You Entered a Valid Username and Password, "
+document.isn.username.value+"! Taking you to the"
+" restricted page as soon as you click OK.");
location.href="pwdss.php?"+ab1;
}
function srand() {
today=new Date();
rand=today.getTime();
picker=""+rand
picker=picker.charAt((picker.length-4));
rec=eval(picker);
}
// -->
</SCRIPT>
<FORM NAME="pd">
<INPUT TYPE='hidden' NAME='pe' VALUE='9999621534361185176113439965168437841040414209'>
</FORM>
document.isn.username.value is any username
document.isn.passwrd.value is usernames password.its a m 0 d - x challege i wanna know how the code works or any info abt code. thanks Last edited by Pizentios; Sep 29th, 2005 at 3:49 PM. |
|
|
|
|
#2 |
|
Expert Programmer
|
Learn javascript: w3schools.com
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
|
#3 |
|
Expert Programmer
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4
![]() |
and if you want some directions, please also say what the code does exactly.
|
|
|
|
|
#4 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Oh, and use [code] tags.
|
|
|
|
|
#5 |
|
Programming Guru
![]() |
This is probably against forum rules...
__________________
|
|
|
|
|
#6 |
|
Professional Programmer
|
I read crack, thought I could score,
hmm, don't know much about java script, what's to crack about it? you have the script right here... |
|
|
|
|
#7 |
|
Programming Guru
![]() ![]() |
fixed code tags.
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
#8 |
|
Hobbyist Programmer
|
crack ??? are you trying to do ? there anant_tickoo??
__________________
-- pr0gm3r |
|
|
|
|
#9 |
|
Programming Guru
![]() |
I CRACKED IT...! UREKA!
[php]function ckPwd() { return true; }[/php] Sorry, i had to do it..
__________________
|
|
|
|
|
#10 | |
|
Expert Programmer
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4
![]() |
Quote:
I'm not sure that is a crack. The original function ckPwd() doesn't return anything. Instead it calls tstOk() upon successful login. [php]function ckPwd() { flg=1; //set the flag just in case it is used elsewhere tstOk(); }[/php] EDIT: If this crack actually works, it was intended only to point out a security hole in the code. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|