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

Cannot log in with default credentials #1626

Closed
KNobles opened this issue Oct 1, 2018 · 19 comments
Closed

Cannot log in with default credentials #1626

KNobles opened this issue Oct 1, 2018 · 19 comments
Labels

Comments

@KNobles
Copy link

KNobles commented Oct 1, 2018

Hello just cloned beef on Parrot Security (the default beef-xss doesn't work), installed it with bundle etc. and I followed the others issues with the missing password but still can't find a solution. If I change rack's version my login page just have the beEF logo with no text field. I am using the latest ruby version and cloned beef (again) today to see if it was the version but still have the issue

@KNobles KNobles changed the title Internal server error Cannot log in with default credentials Oct 1, 2018
@bcoles
Copy link
Collaborator

bcoles commented Oct 1, 2018

I just tested on Parrot and it worked fine for me after applying this patch #1593

Note that there are no default credentials for BeEF. If you try to use the default credentials, BeEF will generate a new random password and print it to the console.

@KNobles
Copy link
Author

KNobles commented Oct 1, 2018

Well i don't know why but I get this after applying the #1593 patch
image

On the latest Parrot.

@bcoles
Copy link
Collaborator

bcoles commented Oct 1, 2018

I'm doing a full dist upgrade on Parrot now to test. But chances are high that patch will work. Did you remember to remove the Gemfile.lock before running bundle install?

@KNobles
Copy link
Author

KNobles commented Oct 1, 2018

Yup I even reinstalled a fresh Parrot and cloned beef then after the error I went in the Gemfile, changed rack and sinatra version, then removed the Gemfile.lock and then did bundle install thus getting me to the screen shown.

@bcoles
Copy link
Collaborator

bcoles commented Oct 1, 2018

Welp. Updates are gonna take a while.

Do you have nodejs installed? You could try running the installer ./install in case there's missing dependencies.

@KNobles
Copy link
Author

KNobles commented Oct 1, 2018

Yes i'm using nodejs v8.11.2 and after running the install I get this
image

@bcoles
Copy link
Collaborator

bcoles commented Oct 1, 2018

No errors in BeEF terminal or web browser console? Tried clearing cache?

@KNobles
Copy link
Author

KNobles commented Oct 1, 2018

Indeed i have errors in browser console :
Loading failed for the <script> with source “http://localhost:3000/ui/media/javascript/ext-base.js”.
Loading failed for the <script> with source “http://localhost:3000/ui/media/javascript/ext-all.js”.
Loading failed for the <script> with source “http://localhost:3000/ui/media/javascript-min/web_ui_auth.js”.
image

@bcoles
Copy link
Collaborator

bcoles commented Oct 1, 2018

If you request those URLs in a browser (or with CURL), do they load?

@KNobles
Copy link
Author

KNobles commented Oct 1, 2018

Doing so i'm getting Internal Server error
image

@bcoles
Copy link
Collaborator

bcoles commented Oct 1, 2018

Welp. If you enable debug: true and beef.http.debug: true in config.yaml you might get some better output as to the cause of the error.

@bcoles
Copy link
Collaborator

bcoles commented Oct 1, 2018

This issue is reminiscent of an issue with kali/parrot a while ago that should have been resolved.

I can't reproduce this issue on Parrot. Still waiting for upgrade to finish.

@KNobles
Copy link
Author

KNobles commented Oct 1, 2018

Well I'll dig in it more later I have something to do. If i can't find the problem i'll reinstall my Parrot and directly clone beef and do the #1592 fix on it to see if there was something i did before that went wrong.

@bcoles
Copy link
Collaborator

bcoles commented Oct 1, 2018

I was able to reproduce this issue on fully updated Parrot, with and without the patch to Gemfile.

@bcoles bcoles added the Defect label Oct 1, 2018
@bcoles
Copy link
Collaborator

bcoles commented Oct 1, 2018

Tracking in #1628

@KNobles
Copy link
Author

KNobles commented Oct 1, 2018

Thanks ! I'll wait until there's a fix.

@bcoles
Copy link
Collaborator

bcoles commented Feb 16, 2019

Hi @KNobles

Try this:

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install ruby-rack ruby-rack-protection ruby-sinatra

As per: #1628 (comment)

@bcoles
Copy link
Collaborator

bcoles commented Feb 17, 2019

Closing this issue, but please let us know if it doesn't work for you.

@bcoles bcoles closed this as completed Feb 17, 2019
@42force
Copy link

42force commented May 7, 2019

Closing this issue, but please let us know if it doesn't work for you.

still doesn't work for latest Kali as root user.

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

3 participants