def get_remote_version(): """ Show remote version """ config = FileReader() if hasattr(urllib3, 'disable_warnings'): urllib3.disable_warnings() http = urllib3.PoolManager() response = http.request('GET', config.get_config().get('info', 'setup')) config = config.get_config_raw(response.data) return config.get('info', 'version')
def get_full_version(self): """ Show full-version banner""" config = FileReader().get_config() banner = """ ============================================================ {0} {1} -> {2} {3} {4} ============================================================ """.format(colored(config.get('info', 'name'), 'blue'), self.get_current_version(), colored('v' + self.get_remote_version(), 'green'), colored("Repo: " + config.get('info', 'repository'), 'yellow'), colored(config.get('info', 'license'), 'yellow')) return banner
def get_local_version(): """ Show local version """ config = FileReader().get_config() return config.get('info', 'version')
def get_license(): """ Show license """ config = FileReader().get_config() return config.get('info', 'license')
def get_proxy_count(): """ Get proxy counter from proxy list """ return FileReader().get_file_data('proxy').__len__()
def get_user_agents_count(): """ Get user agents counter from user-agents list""" return FileReader().get_file_data('useragents').__len__()
def get_subdomains_count(): """ Get subdomains counter from subdomains list""" return FileReader().get_file_data('subdomains').__len__()
def get_directories_count(): """ Get directories counter from directories list""" return FileReader().get_file_data('directories').__len__()