Hello and welcome !
So I had an idea about making a program like this and now i’ve decided to make it, so i did. It isnt great and it isnt using 100% of what it could be but that’s on purpose, so that you can test it on your PC. For example, generating data into a text file gives us 1gb in cca 30 seconds; You can shorten that time easily, since that part of the program uses around 30% cpu and 20% memory. Meaning you can at least triple it. As far as Memory/CPU slowdown part goes – you cannot improve this much, but you can get it all to a 100% and bug the whole system out. Inspired by a decompression bomb and the one-line-crash bug thing where you make a .sh and into it you put a bunch of () in a correct order and it crashes the whole system.
The code:
import random
import string
from itertools import permutations
def DecompressionThing():
rn = random.choice(string.ascii_lowercase)
global bombb
bombb = “bomb{}.txt”.format(rn)
with open(bombb ,”w+”) as starter:
starter.write(“Welcome to the bomb experience by HoxX\n”)
starter.close()
def RandomGenerator():
print("[+]Decompression bomb running !\n")
print("[+]WARNING ! This program takes around 30s to generate 1 gigabyte.\n")
decyphers = ["Python","Visited","You","Hahahahah","SomeRandomWordsHere"]
allthestuff = list(string.ascii_uppercase) + list(string.ascii_lowercase) + list(string.digits) + decyphers
perm = permutations(allthestuff)
with open(bombb ,mode="a") as file:
for k in perm:
file.write(str(k))
file.close()
RandomGenerator()
def MemoryThing():
print(“[+] CPU, Memory slowdown running !\n”)
decyphers = [“Python”,”Visited”,”You”,”Hahahahah”]
allthestuff = list(string.ascii_uppercase) + list(string.ascii_lowercase) + list(string.digits) + decyphers
perm = permutations(allthestuff)
perm = permutations(list(perm))
Thats it !
-Make sure you check out the video if you want to hear another one of my ideas about (sort of) pentesting.
Thank you so much for visiting and have a nice day. 🙂
