diff --git a/lib/config.json b/lib/config.json index 56e4012..41e6448 100644 --- a/lib/config.json +++ b/lib/config.json @@ -1 +1 @@ -{"threads": 5, "timeout": 10, "cookie": "", "auth": "", "User-Agent": "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36"} \ No newline at end of file +{"threads": 3, "timeout": 10, "cookie": "", "auth": "", "User-Agent": "Opera/9.80 (X11; Linux i686; Ubuntu/14.10) Presto/2.12.388 Version/12.16"} \ No newline at end of file diff --git a/lib/extensions.py b/lib/extensions.py index 46f5528..f624445 100644 --- a/lib/extensions.py +++ b/lib/extensions.py @@ -96,13 +96,16 @@ class Extensions: for extension,info in extension_dict.items(): c.execute('SELECT title,version,state FROM extensions where extensionkey=?', (extension,)) data = c.fetchone() - print(Style.BRIGHT + ' [+] {}'.format(Fore.GREEN + extension + Style.RESET_ALL)) + print(Style.BRIGHT + ' [+] {}'.format(Fore.GREEN + extension + Style.RESET_ALL)) if data is None: print(' \u251c Extension ({}) is unknown'.format(extension)) continue print(' \u251c Extension Title: '.ljust(28) + '{}'.format(data[0])) print(' \u251c Extension Repo: '.ljust(28) + 'https://extensions.typo3.org/extension/{}'.format(extension)) - print(' \u251c Current Version: '.ljust(28) + '{} ({})'.format(data[1], data[2])) + if not 'stable' in data[2]: + print(' \u251c Current Version: '.ljust(28) + '{} ({})'.format(data[1], Fore.RED + data[2] + Style.RESET_ALL)) + else: + print(' \u251c Current Version: '.ljust(28) + '{} ({})'.format(data[1], data[2])) json_list[extension] = {'Title': data[0], 'Repo': 'https://extensions.typo3.org/extension/{}'.format(extension), 'Current': '{} ({})'.format(data[1], data[2]), 'Version': '', 'Vulnerabilities':''} if info['version']: json_list[extension].update(Version = info['version']) diff --git a/lib/typo3scan.db b/lib/typo3scan.db index 7da6bf4..540071c 100644 Binary files a/lib/typo3scan.db and b/lib/typo3scan.db differ