Skip to content
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

New vm docker deployment web gui not responding will not take default credentials #3002

Open
eamongoodwin opened this issue Jun 13, 2024 · 12 comments
Labels

Comments

@eamongoodwin
Copy link

ubuntu 22.04.4.desktop-amd64
caldera 5.0.0
python 3.12.3
pip 24.0
go 1.22.4
docker 24.0.5

I have gone into the default.yaml file and added the host machine IP to host. I have tried 0.0.0.0 instead of localhost in url. I can access login page from hostip:8888/login remotely but will not authenticate credentials. I have commented out line 273 in server.py file. What else can I try to successfully authenticate and access web gui?

Copy link

Looks like your first issue -- we aim to respond to issues as quickly as possible. In the meantime, check out our documentation here: http://caldera.readthedocs.io/

@marcin2383838383
Copy link

the same for me, Debian 12.5 and Ubuntu 22.04

@Hunter-0x07
Copy link

yes, I also have this problem.I can't login in to my caldera by using default use and password: admin/admin, red/admin

@eamongoodwin
Copy link
Author

I was able to successfully login after configuring caldera conf file with host server IP and correct port. Also gained remote access by editing magma .env file with host IP addrsss

@l0rddarkf0rce
Copy link

l0rddarkf0rce commented Jun 27, 2024

I am having the same issue and nothing seems to work. Which files did you modify? Did you modify them prior to building the docker container?

@eamongoodwin
Copy link
Author

eamongoodwin commented Jun 27, 2024 via email

@l0rddarkf0rce
Copy link

thanks for the response. in caldera/conf/default.yml did you modify the IP address in only in the host line or did you also changed app.contact.http? also did you changed any of the other lines that have IP addresses?

@tonymm2331
Copy link

am getting the same the web gui isn't responding the default credentials

@elegantmoose
Copy link
Contributor

@l0rddarkf0rce @tonymm2331 Apologies for late reply. Did you figure this out?

We also added some documentation here on setting the server configuration with the new UI. --> https://caldera.readthedocs.io/en/latest/Server-Configuration.html#configuration-file

@n0-ind3x
Copy link

Figured this one out..

After building Caldera docker image and starting i noticed that the below config file is referenced.
2024-07-26 14:11:32 INFO Using main config from conf/local.yml server.py:235

If you navigate to the root caldera folder you cloned github project to and navigate to the "conf" directory - the "local.yml" file does not exist.. but "default.yml" has all the information required, most importantly including the username and passwords for red, blue and admin accounts..

For the sake of testing.. i copied and then renamed default.yml to local.yml and saved.. went back to caldera root directory then re-built.
docker build --build-arg WIN_BUILD=true . -t caldera:server

ran the documented command to run.
docker run -p 7010:7010 -p 7011:7011/udp -p 7012:7012 -p 8888:8888 caldera:server

now the correct config file is referenced, and default credentials work..

@cfzq088
Copy link

cfzq088 commented Jul 30, 2024

When you use docker, the docker default command is "python3 server.py", and this command will use local.yml as configure file, I copy default.yml to local.yml, and I can logging in. And I do not know why I cannot logging in if I didn't do this. If you want to use default.yml, maybe you can run:
docker run -p 7010:7010 -p 7011:7011/udp -p 7012:7012 -p 8888:8888 --entrypoint=“python3” caldera:server "server.py“ ”--insecure“

@db0109
Copy link

db0109 commented Sep 17, 2024

When you use docker, the docker default command is "python3 server.py", and this command will use local.yml as configure file, I copy default.yml to local.yml, and I can logging in. And I do not know why I cannot logging in if I didn't do this. If you want to use default.yml, maybe you can run: docker run -p 7010:7010 -p 7011:7011/udp -p 7012:7012 -p 8888:8888 --entrypoint=“python3” caldera:server "server.py“ ”--insecure“

This was hands down the easiest way to fix the issue for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants