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
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!')
def _get_wordlist_path(self): if self.current: return self.current return choose_file(self.workspace)
def _get_wordlist_path(self): if self.current: return self.current pr('Please choose a wordlist') return choose_file(self.workspace)