Missing import colors in scanner.py and xss.py
cclauss opened this issue · 0 comments
cclauss commented
flake8 testing of https://github.com/abhisharma404/vault_scanner on Python 3.7.1
$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
./src/lib/website_scanner/xss/xss.py:29:9: F821 undefined name 'colors'
colors.info('XSS Vulnerability Engine started...')
^
./src/lib/website_scanner/xss/scanner.py:29:21: F821 undefined name 'colors'
colors.error('No form found for : {}'.format(url))
^
./src/lib/website_scanner/xss/scanner.py:43:17: F821 undefined name 'colors'
colors.error('No form found for : {}'
^
./src/lib/website_scanner/xss/scanner.py:57:9: F821 undefined name 'colors'
colors.info('Completed in {}'.format(t2-t1))
^
./src/lib/website_scanner/xss/scanner.py:76:17: F821 undefined name 'colors'
colors.info('VULNERABILITY DETECTED!--> {}'
^
./src/lib/website_scanner/xss/scanner.py:78:17: F821 undefined name 'colors'
colors.success('Link is : {} '.format(url))
^
./src/lib/website_scanner/xss/scanner.py:79:17: F821 undefined name 'colors'
colors.info('Form Data')
^
./src/lib/website_scanner/xss/scanner.py:83:17: F821 undefined name 'colors'
colors.success("OK , Payload : {} , URL : {}"
^
8 F821 undefined name 'colors'
8