Repo for the cyber security dashboard project started in 2024 for capping with Archtop and Devin Overington
sudo apt update
sudo apt upgrade -y
sudo apt install git -y
sudo git clone https://github.com/MCSCSM-Capping/AFSEC-Archtop.git
cd AFSEC-Archtop/Scripts
sudo chmod a+x ./setup.sh
sudo ./setup.sh
sudo su postgres
psql
-- create the DB
CREATE DATABASE afsec;
-- connect to database afsec
\c afsec
-- create tables
-- Create Table to hold Spiderfoot Data
CREATE TABLE spiderfoot_data (
generated VARCHAR,
type VARCHAR,
data VARCHAR,
source_ip VARCHAR,
scan_date DATE
);
-- Create Table to hold VulScan Data
CREATE TABLE vulscan_data (
ip VARCHAR,
host VARCHAR,
os VARCHAR,
protocol VARCHAR,
port VARCHAR,
service VARCHAR,
product VARCHAR,
id VARCHAR,
title VARCHAR,
scan_date DATE
);
-- Create Table to hold Spiderfoot Data
CREATE TABLE main_table (
Scanner VARCHAR, -- either vulscan or spiderfoot
Scan_Source VARCHAR, -- spiderfoot: source column | vulscan: ip + port
Scan_Date VARCHAR, -- spiderfoot: updated column | vulscan: scan_date
Scan_Info VARCHAR -- spiderfoot: type + module + fp + data | vulscan: host + os + protocol + service + product + id + title
);
sudo su postgres
psql
ALTER USER postgres PASSWORD '(set to desired password)';
\q
sudo nano /etc/postgresql/<version>/main/pg_hba.conf
local all postgres peer
local all postgres md5
sudo systemctl restart postgresql
sudo systemctl daemon-reload
cd ~/AFSEC-Archtop/AFSEC-Dashboard-main
npm install
cd ~/AFSEC-Archtop/pg-api
npm install
node server.js
cd ~/AFSEC-Archtop/AFSEC-Dashboard-main
npm run dev