Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2.     <head>
  3.         <script>
  4.            
  5.             function sandbox( object ){
  6.                 "use strict";
  7.                 var func = ( " function(){ "+
  8.                     "var window = {}; "+
  9.                     "var document = {}; "+
  10.                     "var setTimeout = {}; "+
  11.                     "function someBad (){"+
  12.                     "   console.log( this );"+
  13.                     "   console.log( window );"+
  14.                     "   console.log( document );"+
  15.                     "   console.log( setTimeout );"+
  16.                     "   console.log( arguments.calle );"+
  17.                     "}"+
  18.                     " someBad(); "+
  19.                 "} " );
  20.                 eval( "(" + func + ")()" );
  21.             }  
  22.            
  23.             new sandbox(  )
  24.         </script>
  25.     </head>
  26.     <body>
  27.     </body>
  28. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement