def load(self): try: if os.path.isfile(self._file): t = Reader.Json(self._file) for k, v in t.items(): self.Set(k, v) else: self.Save() except: self.Save()
def Init(self): if self.options.wordlist: self._wl = Reader.List(self.options.wordlist) else: self._wl = WordList.Get("web-common") if not self.options.output: self.options.output = "./dirscan.txt" if self.options.header: self._header = Reader.Json(self.options.header) else: self._header = waabi.globals.default_header if not self.options.threads: self.options.threads = 5 self._counter = 0 self._errors = 0 self._found = [] self._counts = {}