hard to crash a project you don’t wanna see anymore? use this script!
var x = new Array(1*10E6).fill(new Array(1*10E6).fill("\0"*10E2))
console.log(x)
what it does, it makes an array with 1*10^10^10^10^10^10 arrays, and filling each array entry with 1*10^10^10^10^10^10 entries again, each on being willed with 10^10 null bytes ( “\0” )
i found this while testing a new file minimizer i am writing…
i would explain why i tried this, but, a bit too complicated… for even me to usually understand
it overloads will null characters, which usually could be a random amount of bytes, and starts to fill in an array, inside of another array, causing a huge overflow, sucking up absolutely all the ram
No @mishavee, I am not meaning to DOS projects and I don’t think it’s affecting the entire server, because it was just executing shell commands from the code, something that was meant for something else, but I ran the refresh command using it and that just caused the project to refresh every time it loaded. I discovered this accidentally (see Project Page Loading Forever!) and it locked me out of my project.
And the console lagged, because I was on a mobile device and shell commands, obviously, lag on mobile devices. I forgot to mention that earlier
YEAH, AND NOBODY TRY THIS IN YOUR PROJECT, UNLESS YOU WOULD LIKE TO GET LOCKED OUT OF YOUR PROJECT and sorry for any trouble caused!