New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EMBArk login fails #30
Comments
I am going to try a new clean install, without preinstalling Docker and MongoDB, but I would like to use the EMBArk tool behind proxy and Docker and other components require custom proxy settings, which can be made only if the tool is preinstalled. emba can not set up my proxy settings, which is not a problem:) I will add the details of 404 error if I get it again. |
I did a brand new installation, Kali linux 2021.04, VMware Workstation Pro. I just followed the official instructions: Registration works but I can not login, I got this error in the browser: Page not found (404) Using the URLconf defined in embark.urls, Django tried these URL patterns, in this order:
The current path, app/www/home/upload/1/, didn’t match any of these. Please help, because I have no idea. |
Hi Torabi, |
My first thought here, would be that you might have used the wrong port. (The normal WSGI should be on port 80.) |
A quick overview of what the
Also |
Since the EMBArk Server itself isn’t a docker-container, proxy-settings would have to be done on the host-VM, no? (of course, I might be wrong there) take care |
Hello Benedikt, Sorry for late reply, I had a lot of tasks, but I tried again EMBArk installation. $ git clone embark Then MongoDB installation: Then: finally: and I could open 127.0.0.1:80 and upload a FW file and test is running. If I use proxy I just install only emba, but it works only if I execute all commands as "sudo su -". If is use default kali user the cve search DB can not be reached by emba and I can not execute tests. This is my actual progress of the installation. |
The recommended installation process would be:
Which would accomplish all installations and configures EMBArk (and EMBA) to work correctly with its dependencies cve-search for example gets automatically installed by EMBA (https://github.com/e-m-b-a/emba.git) Yes EMBA and almost all of EMBArk requires root privileges on the host. Would you be able to elaborate on what exactly you mean by "use of proxy"? |
Hello Benedikt, Use of proxy means that I created this script to setup proxy. I am executing this as root user, but if I start the ./installer.sh -d as root it will drop the process in the middle and I can't install the full EMBArk environment. If I use direct internet access on my private workstation it work fine. Could you give me any hint what to modify in this proxy settings? #/bin/bash HTTP_PROXY=A.B.C.D:1234 echo -e "\n${GR}Users with Bash SHELL:${NC}" echo -e "\n${GR}Proxy Setup in /etc/environment${NC}" echo -e "\n${GR}APT Proxy Setup${NC}" echo -e "\n${GR}Exporting http_proxy & https_proxy & no_proxy Environment Variables${NC}" echo -e "\n${GR}wget Proxy Setup for root user${NC}" echo -e "\n${GR}wget Proxy Setup for kali user${NC}" echo -e "\n${GR}Git Proxy Setup${NC}" Thank you very much! |
I followed the official installation as kali user with the above proxy setup and the installer stopped at the database download: The installer is going to populate the database. I wanted to fix it with this command, but I failed: $ sudo ./sbin/db_mgmt_cpe_dictionary.py -p I know it was just an emba installation, but the same happens with EMBArk if I use kali and not root user. Maybe the proxy settings are incomplete. |
Ok, since my understanding of what and how cve_search does its downloading is minimal, I would refer you to https://github.com/cve-search/cve-search for specifics. But
would suggest to me that the module was not installed correctly. try running the installer with Is the original issue resolved? Please feel free to open a new one for the Proxy issue. |
Hi Benedikt, Yes the original issue has been solved, I am able to install EMBArk on Kali 2021.4 without proxy settings and the tool works fine. I am going to start a new conversation about proxy settings. |
Hi,
I am using a Kali 2021.04 linuxin VMware Workstation.
I am doing a partly manual installation of emba + EMBArk like this:
change shell to /bin/bash
docker installation:
$ sudo apt install docker-ce -y
$ git clone https://github.com/e-m-b-a/embark.git
$ cd embark
$ git clone https://github.com/e-m-b-a/emba.git
$ git clone https://github.com/cve-search/cve-search.git
Install system requirements:
$ cd cve-search
$ sudo xargs apt-get install -y < requirements.system
$ sudo pip3 install -r requirements.txt
MongoDB installation
$ sudo apt install -y mongodb-org
and I install EMBArk with the default -d mode. The install looks fine, I can start the server with:
$ sudo ./run-server.sh
and I can register a user in the browser but after login I get 404 error.
If I start with developer mode:
sudo ./dev-tools/debug-server-start.sh
I can log in.
I checked also the -F installation which is also looks fine, but if I start the server with the default command:
$ sudo ./run-server.sh
I get this error:
Finished setup mysql and redis docker images
mkdir: cannot create directory ‘/app/www/logs’: No such file or directory
mkdir: cannot create directory ‘/app/www/conf’: No such file or directory
[ JOB] Redis logs are copied to ./embark/logs/redis_dev.log
[ JOB] DB logs are copied to ./embark/logs/mysql_dev.log
./run-server.sh: line 98: /app/www/logs/redis.log: No such file or directory
./run-server.sh: line 100: /app/www/logs/mysql.log: No such file or directory
cp: cannot create directory '/app/www/embark/': No such file or directory
./run-server.sh: line 113: /app/www/conf/embark.conf: No such file or directory
./run-server.sh: line 116: cd: /app/www/embark/: No such file or directory
The output of docker-compose ps:
Name Command State Ports
embark_db docker-entrypoint.sh mysqld Up 0.0.0.0:3306->3306/tcp,:::3306->3306/tcp, 33060/tcp
embark_redis docker-entrypoint.sh --por ... Up 6379/tcp, 0.0.0.0:7777->7777/tcp,:::7777->7777/tcp
I can use only the
$ sudo ./dev-tools/debug-server-start.sh
mode even if I install -d or with -F but the normal way does not work.
What could be the problem?
If I want to open a report after a full emba test in EMBArk I get this message:
TemplateDoesNotExist at /emba_logs/1/html-report/index.html
/app/emba/emba_logs/emba_logs/1/html-report/index.html
Request Method: GET
Request URL: http://127.0.0.1:8000/emba_logs/1/html-report/index.html
Django Version: 4.0.1
Exception Type: TemplateDoesNotExist
Exception Value:
/app/emba/emba_logs/emba_logs/1/html-report/index.html
Exception Location: /home/kali/embark/.venv/lib/python3.9/site-packages/django/template/loader.py, line 19, in get_template
Python Executable: /home/kali/embark/.venv/bin/python
Python Version: 3.9.9
Python Path:
['/home/kali/embark/embark',
'/home/kali/embark',
'/home/kali/embark/embark',
'/usr/lib/python39.zip',
'/usr/lib/python3.9',
'/usr/lib/python3.9/lib-dynload',
'/home/kali/embark/.venv/lib/python3.9/site-packages']
Server time: Sun, 30 Jan 2022 10:14:42 +0000
Template-loader postmortem
Django tried loading these templates, in this order:
Using engine django:
But other pages are working and I am able to download the logs in HTML with "Download Logs" button.
Regards,
Torabi
The text was updated successfully, but these errors were encountered: