10/10/2018, 10:07

giúp đỡ javascript

đây là 1 câu đố trên trang xi-tin.net .Mình cố gắng mà ko giải đáp được giúp mình với.mình điền mật mã là 2010 mà bị báo sai password.

<center><font size="6">CHAP I<br>LEVEL 2<br><b>NINJA SCRIPT</b></font></center><br><br>
<!--Hay bo qua no - Let's ignore it-->
<!--Doan script nay khong lien quan toi chu de - This Script dont related this Level's content-->

<!--Doan Script can giai ma - Important Script-->
<!--Doan Script can giai ma - Important Script-->
<script>
function a()
{
var a="20l0";
if(form.a.value==a){alert("Good - Chuc Mung Ban Da Hoan Thanh Duoc Lv2 !!!");x++;nextlevel();}else{alert("pass sai - Try Again");}
}
</script>

<form action="javascript:a()" name="form">
Nhap pass vao day(Enter Pass):<input name="a" id="a" type="text">
<input value="login" type="submit">
</form>
<!--Doan Script can giai ma - Important Script-->
<!--Doan Script can giai ma - Important Script-->

<!--Doan script nay khong lien quan toi chu de - This Script dont related this Level's content-->
<!--Hay bo qua no - Let's ignore it-->
<div id="next"></div><a href="http://xi-tin.net"></a>
<script>var x=0;function nextlevel(){if(x>0){document.getElementById("next" ).innerHTML = "<form name='nextlv' method=POST action='3.php'><input type=hidden name='level' value=3><input type=hidden name='name' value="+name0+"><input type=hidden name='nickname' value="+nickname0+"><input type=hidden name='location' value="+location0+"></form>";document.nextlv.submit();}else alert("a");}</script>
<br><br><br><br><br><br><br><br><br><br><br><br><b r><br><br><center><a href="http://xi-tin.net">Hay thu kiem tra kien thuc ve javascript cua ban.Bang cach vuot qua cac thu thach hacking Javascript tai day<br>test,hack,hacking,javascript,Music,nhac,Phi m,Game,Comic,truyen tranh,forum,Dien dan,Blog,Hosting,shoping,software,giai tri,online,vuong quoc gau,xitin</a></center>
<!--Hay bo qua no - Let's ignore it-->
<!--Doan script nay khong lien quan toi chu de - This Script dont related this Level's content-->
lenggiauit viết 12:15 ngày 10/10/2018
20l0 chữ "L" chứ có phải số 1 đâu
memory9a1 viết 12:19 ngày 10/10/2018
còn đây là câu tiếp theo.
<center><font size="6">CHAP I<br>LEVEL 3<br><b>DUONG TAT - OFF ROAD</b></font></center><br><br>
<!--Hay bo qua no - Let's ignore it-->
<!--Doan script nay khong lien quan toi chu de - This Script dont related this Level's content-->

<!--Doan Script can giai ma - Important Script-->
<!--Doan Script can giai ma - Important Script-->
<script>
function a()
{
var a="20l098lllllllll";
if(form.a.value==a){alert("Good - Chuc Mung Ban Da Vuot Qua Lv3");x++;nextlevel();}else{alert("pass sai - Try Again");}
}
function b(x)
{
form.a.value=x;
}
</script>

<form action="javascript:a()" name="form">
Nhap pass vao day (Enter Pass):<input maxlength="14" name="a" id="a" type="text">
<input value="login" type="submit">
</form>
<!--Doan Script can giai ma - Important Script-->
<!--Doan Script can giai ma - Important Script-->

<!--Doan script nay khong lien quan toi chu de - This Script dont related this Level's content-->
<!--Hay bo qua no - Let's ignore it-->
<div id="next"></div><a href="http://xi-tin.net"></a>
<script>var x=0;function nextlevel(){if(x>0){document.getElementById("next" ).innerHTML = "<form name='nextlv' method=POST action='4.php'><input type=hidden name='level' value=4><input type=hidden name='name' value="+name0+"><input type=hidden name='nickname' value="+nickname0+"><input type=hidden name='location' value="+location0+"></form>";document.nextlv.submit();}else alert("a");}</script>
<br><br><br><br><br><br><br><br><br><br><br><br><b r><br><br><center><a href="http://xi-tin.net">Hay thu kiem tra kien thuc ve javascript cua ban.Bang cach vuot qua cac thu thach hacking Javascript tai day<br>test,hack,hacking,javascript,Music,nhac,Phi m,Game,Comic,truyen tranh,forum,Dien dan,Blog,Hosting,shoping,software,giai tri,online,vuong quoc gau,xitin</a></center>
<!--Hay bo qua no - Let's ignore it-->
<!--Doan script nay khong lien quan toi chu de - This Script dont related this Level's content-->

[=========> Bổ sung bài viết <=========]

pass yêu cầu tới 15char .mà nó chỉ cho input 14 char thôi thật la khó
ngoc_viet08 viết 12:17 ngày 10/10/2018
cái quái gì vậy , đố mà bằng code thế này à ?
memory9a1 viết 12:10 ngày 10/10/2018
đại loại là nó bảo bạn nhập password vào trang web để qua level tiếp theo.pass thì bạn tự tìm
ducuytran viết 12:08 ngày 10/10/2018
Hint: dùng firebug để chơi trò này.
lenggiauit viết 12:24 ngày 10/10/2018
copy paste vô =,= .....
memory9a1 viết 12:12 ngày 10/10/2018
ko hiểu cho lắm.nói chung pass là gì vậy bạn
pass yêu cầu tới 15char .mà nó chỉ cho input 14 char thôi thật la khó.
đây là câu đố o xi-tin.net các bạn vào làm thử và cho mình kết quả để học hỏi với.
có người giải hết tất cả mới ghê chứ nhưng ko biết là ai để học hỏi
chesterben viết 12:17 ngày 10/10/2018
http://pastie.org/
Làm ơn dán dùm cái code vào đây rồi link qua. Hix, đọc cái code mà loạn mắt. :|
memory9a1 viết 12:10 ngày 10/10/2018
cái đó thì mình làm được rồi. đây la level tiếp theo. bạn giúp với.
http://pastie.org/839690
tại sao bạn lại ko vao xi-tin.net/hacking để chơi trực tiếp rồi chỉ anh em.
Bài liên quan
0