Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script>
- function sandbox( object ){
- "use strict";
- var func = ( " function(){ "+
- "var window = {}; "+
- "var document = {}; "+
- "var setTimeout = {}; "+
- "function someBad (){"+
- " console.log( this );"+
- " console.log( window );"+
- " console.log( document );"+
- " console.log( setTimeout );"+
- " console.log( arguments.calle );"+
- "}"+
- " someBad(); "+
- "} " );
- eval( "(" + func + ")()" );
- }
- new sandbox( )
- </script>
- </head>
- <body>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement