def load(self): self.target_files = [] # Order is important with these two methods self._open_target_files() self._set_verbosity() self.filter = binwalk.core.filter.Filter(self.show_invalid) # Set any specified include/exclude filters for regex in self.exclude_filters: self.filter.exclude(regex) for regex in self.include_filters: self.filter.include(regex) self.settings = binwalk.core.settings.Settings() self.display = binwalk.core.display.Display(log=self.log_file, csv=self.csv, quiet=self.quiet, verbose=self.verbose, filter=self.filter, fit_to_screen=self.format_to_terminal) if self.show_help: show_help() if not binwalk.core.idb.LOADED_IN_IDA: sys.exit(0)
def load(self): self.threads_active = False self.target_files = [] # A special case for when we're loaded into IDA if self.subclass == io.FileIO and binwalk.core.idb.LOADED_IN_IDA: self.subclass = binwalk.core.idb.IDBFileIO # Order is important with these two methods self._open_target_files() self._set_verbosity() # Build file name filter regex rules if self.file_name_include_regex: self.file_name_include_regex = re.compile( self.file_name_include_regex) if self.file_name_exclude_regex: self.file_name_exclude_regex = re.compile( self.file_name_exclude_regex) self.settings = binwalk.core.settings.Settings() self.display = binwalk.core.display.Display( log=self.log_file, csv=self.csv, quiet=self.quiet, verbose=self.verbose, fit_to_screen=self.format_to_terminal) if self.show_help: show_help() if not binwalk.core.idb.LOADED_IN_IDA: sys.exit(0) if self.status_server_port > 0: self.parent.status_server(self.status_server_port)
def load(self): self.threads_active = False self.target_files = [] # A special case for when we're loaded into IDA if self.subclass == io.FileIO and binwalk.core.idb.LOADED_IN_IDA: self.subclass = binwalk.core.idb.IDBFileIO # Order is important with these two methods self._open_target_files() self._set_verbosity() # Build file name filter regex rules if self.file_name_include_regex: self.file_name_include_regex = re.compile(self.file_name_include_regex) if self.file_name_exclude_regex: self.file_name_exclude_regex = re.compile(self.file_name_exclude_regex) self.settings = binwalk.core.settings.Settings() self.display = binwalk.core.display.Display(log=self.log_file, csv=self.csv, quiet=self.quiet, verbose=self.verbose, fit_to_screen=self.format_to_terminal) if self.show_help: show_help() if not binwalk.core.idb.LOADED_IN_IDA: sys.exit(0) if self.status_server_port > 0: self.parent.status_server(self.status_server_port)
def load(self): self.target_files = [] # Order is important with these two methods self._open_target_files() self._set_verbosity() #self.filter = binwalk.core.filter.Filter(self._display_invalid) self.filter = binwalk.core.filter.Filter(self.show_invalid) # Set any specified include/exclude filters for regex in self.exclude_filters: self.filter.exclude(regex) for regex in self.include_filters: self.filter.include(regex) self.settings = binwalk.core.settings.Settings() self.display = binwalk.core.display.Display( log=self.log_file, csv=self.csv, quiet=self.quiet, verbose=self.verbose, filter=self.filter, fit_to_screen=self.format_to_terminal) if self.show_help: show_help() if not binwalk.core.idb.LOADED_IN_IDA: sys.exit(0)
def load(self): self.target_files = [] # Order is important with these two methods self._open_target_files() self._set_verbosity() self.settings = binwalk.core.settings.Settings() self.display = binwalk.core.display.Display(log=self.log_file, csv=self.csv, quiet=self.quiet, verbose=self.verbose, fit_to_screen=self.format_to_terminal) if self.show_help: show_help() if not binwalk.core.idb.LOADED_IN_IDA: sys.exit(0)
def load(self): self.target_files = [] # A special case for when we're loaded into IDA if self.subclass == io.FileIO and binwalk.core.idb.LOADED_IN_IDA: self.subclass = binwalk.core.idb.IDBFileIO # Order is important with these two methods self._open_target_files() self._set_verbosity() self.settings = binwalk.core.settings.Settings() self.display = binwalk.core.display.Display(log=self.log_file, csv=self.csv, quiet=self.quiet, verbose=self.verbose, fit_to_screen=self.format_to_terminal) if self.show_help: show_help() if not binwalk.core.idb.LOADED_IN_IDA: sys.exit(0)