ail-project / ail-framework

AIL framework - Analysis Information Leak framework
GNU Affero General Public License v3.0
569 stars 79 forks source link

Username and Password #234

Closed antmar904 closed 1 month ago

antmar904 commented 1 month ago

Hi.

I installed AIL on Ubuntu in WSL for Windows. I am at the logon screen here: https://localhost:7000/login but I never setup an account during the installation process so I'm not sure what the logon creds are.

Terrtia commented 1 month ago

Hi @antmar904 !

A DEFAULT_PASSWORD file is created by default in the ail-framework directory. This file is deleted on the first login.

antmar904 commented 1 month ago

Yes I saw that in the docs but I can't find that file. It does not exist.

Terrtia commented 1 month ago

If you already log in, you can reset the default admin password:

cd ail-framework
. ./AILENV/bin/activate
cd var/www
./create_default_user.py
antmar904 commented 1 month ago

I have never logged in yet.

Terrtia commented 1 month ago

The password can be reset with create_default_user.py

antmar904 commented 1 month ago

Thank you. I am receiving an error when running:

./create_default_user.py

Traceback (most recent call last): File "/home/user/ail-framework/var/www/./create_default_user.py", line 7, in sys.path.append(os.environ['AIL_BIN']) File "/usr/lib/python3.10/os.py", line 679, in getitem raise KeyError(key) from None KeyError: 'AIL_BIN'

Terrtia commented 1 month ago

Please load the virtual ENV

cd ail-framework
. ./AILENV/bin/activate
cd var/www
./create_default_user.py
antmar904 commented 1 month ago

Thank you very much! I am in.