File tree Expand file tree Collapse file tree 8 files changed +93
-93
lines changed
3-frames-and-windows/06-clickjacking
clickjacking-visible.view Expand file tree Collapse file tree 8 files changed +93
-93
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 33
44< body style ="margin:10px;padding:10px ">
55
6- < input type ="button " onclick ="alert('Like pressed on facebook.html!') " value ="I LIKE IT ! ">
6+ < input type ="button " onclick ="alert('¡ME GUSTA fue presionado en facebook.html!') " value ="ME GUSTA ! ">
77
88</ body >
99
Original file line number Diff line number Diff line change 1919 }
2020 </ style >
2121
22- < div > Click to get rich now :</ div >
22+ < div > Haga clic para hacerse rico ahora :</ div >
2323
2424 <!-- The url from the victim site -->
2525 < iframe src ="facebook.html "> </ iframe >
2626
27- < button > Click here !</ button >
27+ < button > ¡Haga clic aquí !</ button >
2828
29- < div > ...And you're cool (I'm a cool hacker actually )!</ div >
29+ < div > ...Y eres genial (en realidad soy un pirata informático genial )!</ div >
3030
3131</ body >
3232</ html >
Original file line number Diff line number Diff line change 33
44< body style ="margin:10px;padding:10px ">
55
6- < input type ="button " onclick ="alert('Like pressed on facebook.html!') " value ="I LIKE IT ! ">
6+ < input type ="button " onclick ="alert('¡ME GUSTA fue presionado en facebook.html!') " value ="ME GUSTA ! ">
77
88</ body >
99
Original file line number Diff line number Diff line change 1919 }
2020 </ style >
2121
22- < div > Click to get rich now :</ div >
22+ < div > Haga clic para hacerse rico ahora :</ div >
2323
2424 <!-- The url from the victim site -->
2525 < iframe src ="facebook.html "> </ iframe >
2626
27- < button > Click here !</ button >
27+ < button > ¡Haga clic aquí !</ button >
2828
29- < div > ...And you're cool (I'm a cool hacker actually )!</ div >
29+ < div > ...Y eres genial (en realidad soy un pirata informático genial )!</ div >
3030
3131</ body >
3232</ html >
Original file line number Diff line number Diff line change 2020< body >
2121
2222< div id ="protector ">
23- < a href ="/ " target ="_blank "> Go to the site </ a >
23+ < a href ="/ " target ="_blank "> Ir al sitio </ a >
2424</ div >
2525
2626< script >
3131
3232</ script >
3333
34- This text is always visible.
34+ Este texto siempre está visible.
3535
36- But if the page was open inside a document from another domain, the div over it would prevent any actions .
36+ Pero si la página estuviera abierta dentro de un documento de otro dominio, el div sobre ella evitaría cualquier acción .
3737
38- < button onclick ="alert(1) "> Click wouldn't work in that case </ button >
38+ < button onclick ="alert(1) "> El clic no funcionaría en ese caso </ button >
3939
4040</ body >
4141</ html >
Original file line number Diff line number Diff line change 77
88< body >
99
10- < div > Changes top.location to javascript.info</ div >
10+ < div > Cambia top.location a javascript.info</ div >
1111
1212 < script >
1313 top . location = 'https://javascript.info' ;
Original file line number Diff line number Diff line change 2121
2222 window . onbeforeunload = function ( ) {
2323 window . onbeforeunload = null ;
24- return "Want to leave without learning all the secrets (he-he )?" ;
24+ return "¿Quieres irte sin conocer todos los secretos (je-je )?" ;
2525 } ;
2626
2727 document . body . insertAdjacentHTML ( 'beforeend' , '<iframe src="iframe.html">' ) ;
3131
3232< body >
3333
34- < p > After a click on the button the visitor gets a "strange" question about whether they want to leave .</ p >
34+ < p > Después de hacer clic en el botón, el visitante recibe una pregunta "extraña" sobre si quiere irse .</ p >
3535
36- < p > Probably they would respond "No", and the iframe protection is hacked .</ p >
36+ < p > Probablemente responderían "No", y la protección de iframe está pirateada .</ p >
3737
38- < button onclick ="attack() "> Add a "protected" iframe </ button >
38+ < button onclick ="attack() "> Agregar un iframe "protegido" </ button >
3939
4040</ body >
4141</ html >
You can’t perform that action at this time.
0 commit comments