File tree Expand file tree Collapse file tree 8 files changed +90
-90
lines changed
3-frames-and-windows/06-clickjacking
clickjacking-visible.view Expand file tree Collapse file tree 8 files changed +90
-90
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 3
3
4
4
< body style ="margin:10px;padding:10px ">
5
5
6
- < input type ="button " onclick ="alert('Like pressed on facebook.html! ') " value ="I LIKE IT ! ">
6
+ < input type ="button " onclick ="alert('فشار داده شد facebook.html لایک در ') " value ="I LIKE IT ! ">
7
7
8
8
</ body >
9
9
Original file line number Diff line number Diff line change 19
19
}
20
20
</ style >
21
21
22
- < div > Click to get rich now: </ div >
22
+ < div > :کلیک کنید تا الان ثروتمند شوید </ div >
23
23
24
- <!-- The url from the victim site -->
24
+ <!-- لینک سایت قربانی -->
25
25
< iframe src ="facebook.html "> </ iframe >
26
26
27
- < button > Click here !</ button >
27
+ < button > اینجا کلیک کنید !</ button >
28
28
29
- < div > ...And you're cool (I'm a cool hacker actually)! </ div >
29
+ < div > ...و تو باحال هستی (در واقع من یک هکر باحال هستم) </ div >
30
30
31
31
</ body >
32
32
</ html >
Original file line number Diff line number Diff line change 3
3
4
4
< body style ="margin:10px;padding:10px ">
5
5
6
- < input type ="button " onclick ="alert('Like pressed on facebook.html! ') " value ="I LIKE IT ! ">
6
+ < input type ="button " onclick ="alert('!فشار داده شد facebook.html لایک در ') " value ="I LIKE IT ! ">
7
7
8
8
</ body >
9
9
Original file line number Diff line number Diff line change 19
19
}
20
20
</ style >
21
21
22
- < div > Click to get rich now :</ div >
22
+ < div > کلیک کنید تا الان ثروتمند شوید :</ div >
23
23
24
- <!-- The url from the victim site -->
24
+ <!-- لینک سایت قربانی -->
25
25
< iframe src ="facebook.html "> </ iframe >
26
26
27
27
< button > Click here!</ button >
28
28
29
- < div > ...And you're cool (I'm a cool hacker actually )!</ div >
29
+ < div > ...و تو باحال هستی (در واقع من یک هکر باحال هستم )!</ div >
30
30
31
31
</ body >
32
32
</ html >
Original file line number Diff line number Diff line change 20
20
< body >
21
21
22
22
< div id ="protector ">
23
- < a href ="/ " target ="_blank "> Go to the site </ a >
23
+ < a href ="/ " target ="_blank "> به سایت بروید. </ a >
24
24
</ div >
25
25
26
26
< script >
31
31
32
32
</ script >
33
33
34
- This text is always visible.
34
+ .این متن همیشه قابل دیدن است
35
35
36
- But if the page was open inside a document from another domain, the div over it would prevent any actions.
36
+ .روی آن از هر فعالیتی جلوگیری میکرد div از یک دامنهی دیگر باز بود document اما اگر صفحه درون یک
37
37
38
- < button onclick ="alert(1) "> Click wouldn't work in that case </ button >
38
+ < button onclick ="alert(1) "> در آن صورت کلیک کار نمیکرد. </ button >
39
39
40
40
</ body >
41
41
</ html >
Original file line number Diff line number Diff line change 7
7
8
8
< body >
9
9
10
- < div > Changes top.location to javascript.info</ div >
10
+ < div > تغییر میدهد javascript.info را به top.location </ div >
11
11
12
12
< script >
13
13
top . location = 'https://javascript.info' ;
Original file line number Diff line number Diff line change 21
21
22
22
window . onbeforeunload = function ( ) {
23
23
window . onbeforeunload = null ;
24
- return "Want to leave without learning all the secrets (he-he)? " ;
24
+ return "میخواهی بدون اینکه تمام رازها را یادبگیری بروی؟ (ها-ها) " ;
25
25
} ;
26
26
27
27
document . body . insertAdjacentHTML ( 'beforeend' , '<iframe src="iframe.html">' ) ;
31
31
32
32
< body >
33
33
34
- < p > After a click on the button the visitor gets a "strange" question about whether they want to leave .</ p >
34
+ < p > بعد از یک کلیک روی دکمه، بازدیدکننده یک سوال "عجیب" دریافت میکند دبارهی اینکه میخواهد ترک کند یا نه .</ p >
35
35
36
- < p > Probably they would respond "No", and the iframe protection is hacked .</ p >
36
+ < p > احتمالا آنها پاسخ میدهد "نه" و حفاظت آیفریم هک میشود .</ p >
37
37
38
- < button onclick ="attack() "> Add a "protected" iframe </ button >
38
+ < button onclick ="attack() "> یک آیفریم "حفاظتشده" اضافه کنید. </ button >
39
39
40
40
</ body >
41
41
</ html >
You can’t perform that action at this time.
0 commit comments