Esempio n. 1
0
 def _select_wordlist(title: str):
     pr(f'Select {title} wordlist:')
     f = choose_file(self.workspace)
     if not f:
         raise KeyboardInterrupt
     fsb, flc, ftxt = file_volume(f)
     pr(f'  {ftxt}')
     return f, fsb, flc
Esempio n. 2
0
    def use(self, args: tuple) -> None:
        if self.current:
            if not pause(
                    f'Switching from {cyan(self.current)} to new wordlist',
                    cancel=True):
                return
        f = choose_file(self.workspace)
        if not f:
            return

        sb, lc, txt = file_volume(f)
        pr(txt)

        # if sb > 1*1024**3:  # 1 GB
        #     pr(f'File is too larget to be loaded into RAM!', '!')
        #     return
        self.current = f
        pr(f'Now using {cyan(self.current)} wordlist!')
Esempio n. 3
0
 def _get_wordlist_path(self):
     if self.current:
         return self.current
     return choose_file(self.workspace)
Esempio n. 4
0
 def _get_wordlist_path(self):
     if self.current:
         return self.current
     pr('Please choose a wordlist')
     return choose_file(self.workspace)