def _duplicateConfigRemove(self):
        _setTitle(
            '[OPENBULLET CONFIG TOOL] ^| [DuplicateRemover] ^| [ConfigRemove]')
        _clear()
        title = colors['lpurple'] + """
                        ╔═══════════════════════════════════════════════════════════════════════╗
                                      ██████╗ ██████╗ ███╗   ██╗███████╗██╗ ██████╗ 
                                     ██╔════╝██╔═══██╗████╗  ██║██╔════╝██║██╔════╝ 
                                     ██║     ██║   ██║██╔██╗ ██║█████╗  ██║██║  ███╗
                                     ██║     ██║   ██║██║╚██╗██║██╔══╝  ██║██║   ██║
                                     ╚██████╗╚██████╔╝██║ ╚████║██║     ██║╚██████╔╝
                                      ╚═════╝ ╚═════╝ ╚═╝  ╚═══╝╚═╝     ╚═╝ ╚═════╝ 
                        ╚═══════════════════════════════════════════════════════════════════════╝
        """
        print(title)

        unique = []
        for config in self.configs:
            if isfile(config):
                filehash = md5(open(config, 'rb').read()).hexdigest()
                if filehash not in unique:
                    unique.append(filehash)
                else:
                    remove(config)
                    _printText(colors['bcyan'], colors['lpurple'], 'REMOVED',
                               config)
        print('')
        _printText(colors['bcyan'], colors['lpurple'], 'FINISHED',
                   'Process done!')
    def _duplicateWebhookRemove(self):
        _setTitle(
            '[OPENBULLET CONFIG TOOL] ^| [DuplicateRemover] ^| [WebhookRemove]'
        )
        _clear()
        title = colors['lpurple'] + """
                        ╔═══════════════════════════════════════════════════════════════════════╗
                              ██╗    ██╗███████╗██████╗ ██╗  ██╗ ██████╗  ██████╗ ██╗  ██╗
                              ██║    ██║██╔════╝██╔══██╗██║  ██║██╔═══██╗██╔═══██╗██║ ██╔╝
                              ██║ █╗ ██║█████╗  ██████╔╝███████║██║   ██║██║   ██║█████╔╝ 
                              ██║███╗██║██╔══╝  ██╔══██╗██╔══██║██║   ██║██║   ██║██╔═██╗ 
                              ╚███╔███╔╝███████╗██████╔╝██║  ██║╚██████╔╝╚██████╔╝██║  ██╗
                               ╚══╝╚══╝ ╚══════╝╚═════╝ ╚═╝  ╚═╝ ╚═════╝  ╚═════╝ ╚═╝  ╚═╝
                        ╚═══════════════════════════════════════════════════════════════════════╝
        """
        print(title)
        _printText(colors['bcyan'], colors['lpurple'], 'BEFORE',
                   str(len(self.webhooks)))
        cleaned_file = set(self.webhooks)
        open('[GetWebhooks]/webhooks.txt',
             'w',
             encoding='utf8',
             errors='ignore').close()
        for line in cleaned_file:
            with open(f'[GetWebhooks]/webhooks.txt', 'a',
                      encoding='utf8') as f:
                f.write(f'{line}\n')

        _printText(colors['bcyan'], colors['lpurple'], 'AFTER',
                   str(len(cleaned_file)))
        print('')
        _printText(colors['bcyan'], colors['lpurple'], 'FINISHED',
                   'Process done!')
    def _menu(self):
        _setTitle('[OPENBULLET CONFIG TOOL] ^| [DuplicateRemover] ^| [Menu]')
        _clear()
        title = colors['lpurple'] + """
                        ╔═══════════════════════════════════════════════════════════════════════╗
                                          ███╗   ███╗███████╗███╗   ██╗██╗   ██╗
                                          ████╗ ████║██╔════╝████╗  ██║██║   ██║
                                          ██╔████╔██║█████╗  ██╔██╗ ██║██║   ██║
                                          ██║╚██╔╝██║██╔══╝  ██║╚██╗██║██║   ██║
                                          ██║ ╚═╝ ██║███████╗██║ ╚████║╚██████╔╝
                                          ╚═╝     ╚═╝╚══════╝╚═╝  ╚═══╝ ╚═════╝ 
                        ╚═══════════════════════════════════════════════════════════════════════╝
        """
        print(title)

        options = ['Remove Duplicated Webhooks', 'Remove Duplicated Configs']
        counter = 0
        for option in options:
            counter += 1
            _printText(colors['bcyan'], colors['lpurple'], str(counter),
                       option)
        print('')

        selected = int(
            input(
                f'{colors["lpurple"]}[>] {colors["bcyan"]}Select something:{colors["lpurple"]} '
            ))

        if selected == 1:
            self._duplicateWebhookRemove()
        elif selected == 2:
            self._duplicateConfigRemove()
        else:
            self._menu()
Ejemplo n.º 4
0
 def __init__(self) -> None:
     _setTitle('[OPENBULLET CONFIG TOOL] ^| [Menu]')
     _clear()
     title = colors['lpurple'] + """
                     ╔═══════════════════════════════════════════════════════════════════════╗
                                       ███╗   ███╗███████╗███╗   ██╗██╗   ██╗
                                       ████╗ ████║██╔════╝████╗  ██║██║   ██║
                                       ██╔████╔██║█████╗  ██╔██╗ ██║██║   ██║
                                       ██║╚██╔╝██║██╔══╝  ██║╚██╗██║██║   ██║
                                       ██║ ╚═╝ ██║███████╗██║ ╚████║╚██████╔╝
                                       ╚═╝     ╚═╝╚══════╝╚═╝  ╚═══╝ ╚═════╝ 
                     ╚═══════════════════════════════════════════════════════════════════════╝
     """
     print(title)
    def __init__(self,configs) -> None:
        _setTitle('[OPENBULLET CONFIG TOOL] ^| [GetWebhooks]')
        _clear()
        title = colors['lpurple']+"""
                        ╔═══════════════════════════════════════════════════════════════════════╗
                                                 ██████╗ ███████╗████████╗
                                                ██╔════╝ ██╔════╝╚══██╔══╝
                                                ██║  ███╗█████╗     ██║   
                                                ██║   ██║██╔══╝     ██║   
                                                ╚██████╔╝███████╗   ██║   
                                                 ╚═════╝ ╚══════╝   ╚═╝   
                        ╚═══════════════════════════════════════════════════════════════════════╝
        """
        print(title)

        self.configs = configs
    def __init__(self, configs, webhooks) -> None:
        _setTitle('[OPENBULLET CONFIG TOOL] ^| [DuplicateRemover]')
        _clear()
        title = colors['lpurple'] + """
                        ╔═══════════════════════════════════════════════════════════════════════╗
                          ██████╗ ██╗   ██╗██████╗ ██╗     ██╗ ██████╗ █████╗ ████████╗███████╗
                          ██╔══██╗██║   ██║██╔══██╗██║     ██║██╔════╝██╔══██╗╚══██╔══╝██╔════╝
                          ██║  ██║██║   ██║██████╔╝██║     ██║██║     ███████║   ██║   █████╗  
                          ██║  ██║██║   ██║██╔═══╝ ██║     ██║██║     ██╔══██║   ██║   ██╔══╝  
                          ██████╔╝╚██████╔╝██║     ███████╗██║╚██████╗██║  ██║   ██║   ███████╗
                          ╚═════╝  ╚═════╝ ╚═╝     ╚══════╝╚═╝ ╚═════╝╚═╝  ╚═╝   ╚═╝   ╚══════╝
                        ╚═══════════════════════════════════════════════════════════════════════╝
        """
        print(title)

        self.configs = configs
        self.webhooks = webhooks
Ejemplo n.º 7
0
    def __init__(self) -> None:
        _setTitle('[NordVPN]')
        _clear()
        title = colors['bcyan'] + """
                          ╔═════════════════════════════════════════════════════════════════════════╗
                            $$\   $$\                           $$\ $$\    $$\ $$$$$$$\  $$\   $$\ 
                            $$$\  $$ |                          $$ |$$ |   $$ |$$  __$$\ $$$\  $$ |
                            $$$$\ $$ | $$$$$$\   $$$$$$\   $$$$$$$ |$$ |   $$ |$$ |  $$ |$$$$\ $$ |
                            $$ $$\$$ |$$  __$$\ $$  __$$\ $$  __$$ |\$$\  $$  |$$$$$$$  |$$ $$\$$ |
                            $$ \$$$$ |$$ /  $$ |$$ |  \__|$$ /  $$ | \$$\$$  / $$  ____/ $$ \$$$$ |
                            $$ |\$$$ |$$ |  $$ |$$ |      $$ |  $$ |  \$$$  /  $$ |      $$ |\$$$ |
                            $$ | \$$ |\$$$$$$  |$$ |      \$$$$$$$ |   \$  /   $$ |      $$ | \$$ |
                            \__|  \__| \______/ \__|       \_______|    \_/    \__|      \__|  \__|
                          ╚═════════════════════════════════════════════════════════════════════════╝
        """
        print(title)
        self.stop_thread = False

        self.hit = 0
        self.bad = 0
        self.expired = 0
        self.retries = 0

        self.use_proxy = int(
            input(
                f'{colors["bcyan"]}[>] {colors["yellow"]}[1]Proxy/[2]Proxyless:{colors["bcyan"]} '
            ))
        self.proxy_type = None

        if self.use_proxy == 1:
            self.proxy_type = int(
                input(
                    f'{colors["bcyan"]}[>] {colors["yellow"]}[1]Https/[2]Socks4/[3]Socks5:{colors["bcyan"]} '
                ))

        self.threads = int(
            input(
                f'{colors["bcyan"]}[>] {colors["yellow"]}Threads:{colors["bcyan"]} '
            ))
        self.session = requests.session()
        print('')
    def __init__(self, configs) -> None:
        _setTitle('[OPENBULLET CONFIG TOOL] ^| [AddWebhook]')
        _clear()
        title = colors['lpurple'] + """
                        ╔═══════════════════════════════════════════════════════════════════════╗
                                                  █████╗ ██████╗ ██████╗ 
                                                 ██╔══██╗██╔══██╗██╔══██╗
                                                 ███████║██║  ██║██║  ██║
                                                 ██╔══██║██║  ██║██║  ██║
                                                 ██║  ██║██████╔╝██████╔╝
                                                 ╚═╝  ╚═╝╚═════╝ ╚═════╝ 
                        ╚═══════════════════════════════════════════════════════════════════════╝
        """
        print(title)

        self.configs = configs
        self.webhook_url = str(
            input(
                f'{colors["lpurple"]}[>] {colors["bcyan"]}Webhook URL:{colors["lpurple"]} '
            ))
        print('')
    def __init__(self, webhooks) -> None:
        _setTitle('[OPENBULLET CONFIG TOOL] ^| [SpamWebhooks]')
        _clear()
        title = colors['lpurple'] + """
                        ╔═══════════════════════════════════════════════════════════════════════╗
                                            ███████╗██████╗  █████╗ ███╗   ███╗
                                            ██╔════╝██╔══██╗██╔══██╗████╗ ████║
                                            ███████╗██████╔╝███████║██╔████╔██║
                                            ╚════██║██╔═══╝ ██╔══██║██║╚██╔╝██║
                                            ███████║██║     ██║  ██║██║ ╚═╝ ██║
                                            ╚══════╝╚═╝     ╚═╝  ╚═╝╚═╝     ╚═╝
                        ╚═══════════════════════════════════════════════════════════════════════╝
        """
        print(title)

        self.webhooks = webhooks

        self.use_proxy = int(
            input(
                f'{colors["lpurple"]}[>] {colors["bcyan"]}[1]Proxy [2]Proxyless:{colors["bcyan"]} '
            ))
        self.proxy_type = None

        if self.use_proxy == 1:
            self.proxy_type = int(
                input(
                    f'{colors["lpurple"]}[>] {colors["bcyan"]}[1]Https [2]Socks4 [3]Socks5:{colors["lpurple"]} '
                ))

        self.threads = int(
            input(
                f'{colors["lpurple"]}[>] {colors["bcyan"]}Threads:{colors["lpurple"]} '
            ))
        self.message = str(
            input(
                f'{colors["lpurple"]}[>] {colors["bcyan"]}Message:{colors["lpurple"]} '
            ))
        self.session = requests.session()
        print('')
Ejemplo n.º 10
0
    def _menu(self):
        _setTitle('[OPENBULLET CONFIG TOOL] ^| [Menu]')
        _clear()
        title = colors['lpurple'] + """
                        ╔═══════════════════════════════════════════════════════════════════════╗
                                          ███╗   ███╗███████╗███╗   ██╗██╗   ██╗
                                          ████╗ ████║██╔════╝████╗  ██║██║   ██║
                                          ██╔████╔██║█████╗  ██╔██╗ ██║██║   ██║
                                          ██║╚██╔╝██║██╔══╝  ██║╚██╗██║██║   ██║
                                          ██║ ╚═╝ ██║███████╗██║ ╚████║╚██████╔╝
                                          ╚═╝     ╚═╝╚══════╝╚═╝  ╚═══╝ ╚═════╝ 
                        ╚═══════════════════════════════════════════════════════════════════════╝
        """
        print(title)

        self.configs = listdir("[Configs]/")
        self.webhooks = _readFile('[GetWebhooks]/webhooks.txt', 'r', 1)
        self.webhook_cfgs = listdir("[GetWebhooks]/")

        options = [
            'Get Webhooks', 'Remove Duplicates', 'Spam Discord Webhooks',
            'Remove Webhooks', 'Add Webhook', 'Replace Webhooks'
        ]
        counter = 0
        for option in options:
            counter += 1
            _printText(colors['bcyan'], colors['lpurple'], str(counter),
                       option)
        print('')

        selected = int(
            input(
                f'{colors["lpurple"]}[>] {colors["bcyan"]}Select something:{colors["lpurple"]} '
            ))

        if selected == 1:
            GetWebhooks(self.configs)._start()
            sleep(2)
            self._menu()
        elif selected == 2:
            DuplicateRemover(self.configs, self.webhooks)._menu()
            sleep(2)
            self._menu()
        elif selected == 3:
            SpamWebhooks(self.webhooks)._start()
            sleep(2)
            self._menu()
        elif selected == 4:
            RemoveWebhook(self.configs, self.webhooks,
                          self.webhook_cfgs)._start()
            sleep(2)
            self._menu()
        elif selected == 5:
            AddWebhook(self.configs)._start()
            sleep(2)
            self._menu()
        elif selected == 6:
            ReplaceWebhook(self.configs, self.webhooks,
                           self.webhook_cfgs)._start()
            sleep(2)
            self._menu()
        else:
            self._menu()