bandit代码审计工具:
pip install bandit
扫描方式:
bandit: error: argument -f/--format: invalid choice: 'python' (choose from 'csv', 'custom', 'html', 'json', 'screen', 'txt', 'xml', 'yaml')
bandit -r /path/to/your/code/ -f html -o /var/log/giza_html.html
bandit -r /path/to/your/code/ -f json -o /var/log/giza_app.json
bandit -r /path/to/your/code/ -f xml -o /var/log/giza_app.xml
bandit -r /path/to/your/code/ -f csv -o /var/log/giza_app.csv