a website where you share ssh sessions caught on your honeypots
This is what you need to do in order to setup the dev environment
In order to work on the project, you need to meet the following requirements:
- vscode
- docker
- this vs code extension installed :
ms-vscode-remote.remote-containers
Good old git clone [email protected]:rtafurthgarcia/rihaka.git
into your regular developpment folder
You need to rename the config/Database.example.env
to config/Database.env
aswell as config/App.example.env
to ``config/App.env`
Those one files contain all thats necessary to connect RIHAKA to its PostgreSQL database. You may change those credentials if you want to. Docker's gonna setup itself also through this one .env
file so you won't have to duplicate those settings anywhere.
It may look inconvenient but it's likely we gonna keep the same sorta file for future deployments.
Simply open the project with VScode. After a few seconds, the following pop-up should appear in the lower-right corner of your screen:
It may take also one or two minutes in order to setup everything.
If such popup asks you to restart, plz obey and restart the whole thing. It's a required step in order to install all VScode extensions. Its also something you gonna do only (hopefully) once.
In order to run tests on the database, and in order to idk explore it or execute queries quickly, you may rely on this one extension:
SQLTools
.
It's very convenient and its quick to setup. All you need to do is to click "Add new connection" and to enter all the credentials from the previous config/Database.env
file.
Normally in the meanwhile VScode should have already installed all extensions, PHP-related ones included.
In order to test if the project works correctly, just press F5
and let yourself be surprised :)
We use 4 main building blocks for our project:
- Slim PHP v4, to manage routing, exceptions, template generation and upload management
- Bootstrap v5, to quickly generate good-looking webpages through "class-styling"
- PostgreSQL v14, for the Database
- asciinema-player v3, to play our SSH session recordings
All links directly forward to their respective documentations, for quick access.