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

admin password is not displaying on terminal or on docker logs <id> #14

Open
balook opened this issue Jan 31, 2022 · 6 comments
Open

admin password is not displaying on terminal or on docker logs <id> #14

balook opened this issue Jan 31, 2022 · 6 comments

Comments

@balook
Copy link

balook commented Jan 31, 2022

Im running the docker and it is serving on the domain succesfully.
But not able to know what is the password used to login.

Not Displaying on terminal or on docker logs

@saheredelgadom
Copy link

saheredelgadom commented Sep 15, 2022

The same problem @mandatoryprogrammer please you cam help me?
does not open https://my-domain.xss.ht/admin/

Im running the docker and it is serving on the domain succesfully.
But not able to know what is the password used to login.

Not Displaying on terminal or on docker logs

this image does not appear!!!!...

image

@mandatoryprogrammer
Copy link
Owner

Are you sure that this message hasn't been shown previously? (It's only shown once). If you clear the postgres database it'll show the message again.

@saheredelgadom
Copy link

It was not shown neither in the installation nor when starting again, please can you tell me how to clean the database???

Another thing I can not enter the administration panel https://my-domain.xss.ht/admin/, it does not open the login page

@eth0-re
Copy link

eth0-re commented Oct 18, 2022

Try and do a full reset of everything that has been deployed

Delete the Containers

Run docker ps to see a list of container IDs. eg:

CONTAINER ID   IMAGE                                COMMAND                 
615cd116ffb1   xsshunter-express_xsshunterexpress   "/app/docker-entrypo…"  
9fe9dd5e115a   postgres                             "docker-entrypoint.s…"

Delete them with docker container rm CONTAINER_ID

Delete the Images

Run docker images to see a list of Images: eg:

REPOSITORY                                     TAG                               IMAGE ID     
xsshunter-express_xsshunterexpress             latest                            b089ae8c5b36 
postgres                                       latest                            901a82b310d3

Then delete them with docker image rm IMAGE_ID

Delete the Volumes

Run docker volume ls to see a list of Volumes: eg:

DRIVER    VOLUME NAME
local     xsshunter-express_db-data
local     xsshunter-express_payloads-data

Delete with:
docker volume rm VOLUME_NAME

Rebuild & Start with

docker-compose up --build -d
OR, if you want to make absolutely sure you don't miss the log entry:
docker-compose up this will dump the output straight into your terminal, it will also kill the container if you exit the terminal

View the logs with

docker logs {CONTAINER ID}

As for not being able to see the admin panel:

Try and see if the interface is listening on the docker container itself:

Get the main xsshunter container's IP with:
docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' CONTAINER_ID
Then curl default admin url:
curl http://IP_Address/admin/ | grep XSSHunter

If that works, the problem is likely to be the ports configuration in the docker-compose.yml file. Make sure that the ports and the "ports:" directive above are all uncommented:

ports:
  - "80:80"
  - "443:443"

If you do need to uncomment the ports, you'll need to re-run the docker-compose command.
At this point you should hopefully be able to access the XSSHunter admin interface on http://127.0.0.1/admin

@saheredelgadom
Copy link

good morning

Thanks for your answer @eth0-re

Since I only had that docker installed, it was simpler to run the command docker system prune -a to clean everything.

download again with git clone command https://github.com/mandatoryprogrammer/xsshunter-express.git

and then run docker-compose up to see the installation logs.

the error persists

when i go to web browser and put https://domain.xss.ht/admin/

the answer is:

I put all the answers on the website in txt file.

respond-website.txt

@Damian89
Copy link

Damian89 commented Feb 8, 2023

Since I had the same problem I want to add something else - in the beginning you will shortly see:
"PostgreSQL Database directory appears to contain a database; Skipping initialization"
even if you followed the instructions above ;)

This means there is a database and just dropping the images,containers etc wont be enough, I had to remove the database files from host (usually you will find them in the xsshunter folder within postgres-db-data/).

After dropping the entire folder (or after a clean git clone), everything works as expected.

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

No branches or pull requests

5 participants