Giter VIP home page Giter VIP logo

cyber-threat-intelligence's Introduction

Cyber Threat Intelligence

A Django application for analyzing Apache logs for possible Denial-of-service attacks.

How to run this app

  1. Install Postgres, Python3 and Neo4J

On Ubuntu:

sudo apt install neo4j-client postgresql python3 python-is-python3

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-neo4j-on-ubuntu-20-04

  1. Start the Postgres service and initialize the database cluster

For Arch Linux

$ sudo -iu postgres
$ initdb -D /var/lib/postgres/data
$ exit

For Fedora

$ /usr/bin/postgresql-setup --initdb

On Linux:

$ sudo systemctl start postgresql.service
  1. Create a database "cti_db" in Postgres
$ sudo -iu postgres                     #switch to postgres user
$ psql                                  #enter psql as postgres user
psql (12.5)
Type "help" for help.

postgres=# CREATE DATABASE cti_db;
postgres=# CREATE USER cti_user WITH ENCRYPTED PASSWORD 'cti_password';
postgres=# GRANT ALL PRIVILEGES ON DATABASE cti_db TO cti_user;
  1. Start neo4j database
Download neo4j from https://neo4j.com/download/
Fill out the form on the website with random data
Create new database with name 'django' and password 'password'
Start the database
  1. Clone this repository and enter it
$ git clone https://github.com/ajdintrejic/cyber-threat-intelligence.git
$ cd cyber-threat-intelligence
  1. Install the pip packages from requirements.txt
$ pip install -r requirements.txt
  1. Enter the Django directory and migrate
$ cd django_project
$ python manage.py migrate
  1. Start the server
$ python manage.py runserver
  1. Create a superuser account
$ python manage.py createsuperuser

This will propmt for information like username, email and password.

The app should now be running http://localhost:8000 and you should be able to log into it with the credentials from step 9.

Bug reporting

Please submit any bugs you encounter to GitHub Issues

cyber-threat-intelligence's People

Contributors

ajdinre avatar dorabz avatar marta311g avatar nbrasnovic avatar tsupljika avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

lonky131

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.