-
Notifications
You must be signed in to change notification settings - Fork 18
Getting Started
azazelm3dj3d edited this page Aug 1, 2023
·
3 revisions
It's best to run the application and it's Python virtualenv within a screen session to ensure ThreatKB continues to run.
Note: Within screen, Ctrl+a+d will dettach your session and return you to your normal shell. To return to the screen session, run screen -r threatkb
- Start a screen session for the application to run within:
cd /opt/ThreatKB && screen -dmS threatkb InQuest_ThreatKB
- Inside of screen, start the virtualenv:
source env/bin/activate
- Start the celery workers:
celery -A app.celeryapp.celery work -E
- This is required in order for testing against your clean corpus of files
- Build the database tables and columns:
env/bin/python3 manage.py db upgrade
- Run the application:
env/bin/python3 run.py
- Follow the instructions below on creating your first Admin user before continuing to next step
- Open your browser to http://127.0.0.1:5000/#!/login and get started using ThreatKB!
- Hash your password for MySQL kb_users table:
env/bin/python3 hash_pass.py yourSecretPassword
- Connect to MySQL instance and insert your admin user (replace values below as needed):
INSERT INTO kb_users (email, password, admin, active) VALUES ('user@domain.com', '<hashed password>', 1, 1);
ThreatKB is now running. To learn more about this project, explore the wiki.