Setup UllaPhisher in NixOS VirtualBox VM

Currently in development

Follow the instructions on how to install the NixOS VirtualBox VM here.

Use the following build configuration:

configuration.nix

Download the repository:

curl -L <https://github.com/sakerhetspolisen/oauthornot-admin-bot/archive/master.tar.gz> | tar zxf -

Download selenium-manager:

curl -O <https://github.com/SeleniumHQ/selenium/raw/trunk/common/manager/linux/selenium-manager>
chmod +x selenium-manager
./selenium-manager —browser firefox

Start UllaPhisher:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python3 main.py

Setup T&T Admin

Currently in development

Download the repository:

git clone <https://github.com/sakerhetspolisen/oauthornot>

Download the dependencies using yarn or npm.

Set the .env.local file to include the following environment variables:

Environment variable Value
NEXTAUTH_URL The public URL on which users can access your website
NEXTAUTH_SECRET Used to generate csrfToken, a long, random string
GITHUB_OAUTH_CLIENT_ID Client ID obtained when registering OAuth app at Github
GIHTUB_OAUTH_CLIENT_SECRET Client secret obtained when registering OAuth app at Github