SQLiScannerpython
叕一款基於SQLMAP和Charles的SQL 注入漏洞掃描工具git
支持 Har 文件的掃描(搭配 Charles 使用: Tools=>Auto Save)github
克隆項目到本地redis
git clone https://github.com/0xbug/SQLiScanner.git --depth 1
配置 sqlmap:sql
git clone https://github.com/sqlmapproject/sqlmap.git --depth 1
SQLiScanner 支持 Python version 3.x on Linux and osx.數據庫
安裝依賴django
cd SQLiScanner/ virtualenv --python=/usr/local/bin/python3.5 venv source venv/bin/activate pip install -r requirements.txt
建立數據庫(須要配置數據庫)api
python manage.py makemigrations scanner python manage.py migrate
建立 superuserapp
python manage.py createsuperuser
數據庫設置svg
SQLiScanner/settings.py:85
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': '', 'USER': '', 'PASSWORD': '', 'HOST': '127.0.0.1', 'PORT': '5432', } }
郵件通知配置
SQLiScanner/settings.py:158
# Email EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_USE_TLS = False EMAIL_HOST = '' EMAIL_PORT = 25 EMAIL_HOST_USER = '' EMAIL_HOST_PASSWORD = '' DEFAULT_FROM_EMAIL = ''
scanner/tasks.py:14
class SqlScanTask(object): def __init__(self, sqli_obj): self.api_url = "http://127.0.0.1:8775" self.mail_from = "" self.mail_to = [""]
redis-server python sqlmapapi.py -s -p 8775 python manage.py celery worker --loglevel=info python manage.py runserver