Closed cclauss closed 6 years ago
flake8 testing of https://github.com/AlessandroZ/BeRoot on Python 3.6.3
$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
./Linux/beroot.py:14:13: E999 SyntaxError: invalid syntax print banner ^ ./Linux/beroot/analyse/analyse.py:55:39: E999 SyntaxError: invalid syntax print '[+] Writable file: {file}\n'.format(file=fm.file.path) ^ ./Linux/beroot/conf/files.py:185:21: E999 SyntaxError: invalid syntax except Exception, e: ^ ./Windows/BeRoot/beRoot.py:49:11: E999 SyntaxError: invalid syntax print str(st) ^ ./Windows/BeRoot/beroot/run_checks.py:273:72: E999 SyntaxError: invalid syntax print '-------------- Get System Priv with WebClient --------------\n' ^ ./Windows/BeRoot/beroot/modules/checks/filesystem_checks.py:24:2: E999 SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 8-9: truncated \UXXXXXXXX escape "\Panther\Unattend.xml", ^ ./Windows/BeRoot/beroot/modules/checks/system.py:6:49: E999 SyntaxError: invalid syntax READ_CONTROL = 0x00020000L ^ ./Windows/BeRoot/beroot/modules/checks/webclient/attack.py:31:19: E999 SyntaxError: invalid syntax except Exception, e: ^ ./Windows/BeRoot/beroot/modules/checks/webclient/httpserver.py:80:21: E999 SyntaxError: invalid syntax except Exception, e: ^ ./Windows/BeRoot/beroot/modules/checks/webclient/secretsdump.py:468:31: E999 SyntaxError: invalid syntax except DCERPCException, e: ^ ./Windows/BeRoot/beroot/modules/checks/webclient/smbclient.py:98:30: E999 SyntaxError: invalid syntax print "SessionSetup Error!" ^ ./Windows/BeRoot/beroot/modules/checks/webclient/webclient.py:120:34: E999 SyntaxError: invalid syntax print '[+] Service %s found' % s.name ^ ./Windows/BeRoot/beroot/modules/get_info/softwares_list.py:20:37: E999 SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 41-42: truncated \UXXXXXXXX escape hkey = OpenKey(HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\\", 0, accessRead) ^ 13 E999 SyntaxError: invalid syntax 13
It has been done for the linux version but not yet for the windows one. I will do it later.
Done for Windows too. I kept the compatibility with python 2 as well. Thanks ;)
flake8 testing of https://github.com/AlessandroZ/BeRoot on Python 3.6.3
$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics