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

Beef On Repl It #2717

Closed
wendellmeset opened this issue Feb 14, 2023 · 13 comments
Closed

Beef On Repl It #2717

wendellmeset opened this issue Feb 14, 2023 · 13 comments
Labels

Comments

@wendellmeset
Copy link

First Steps

  1. Confirm that your issue has not been posted previously by searching here: https://github.com/beefproject/beef/issues
  2. Confirm that the wiki does not contain the answers you seek: https://github.com/beefproject/beef/wiki
  3. Check the FAQ: https://github.com/beefproject/beef/wiki/FAQ
  4. BeEF Version: Latest
  5. Ruby Version: N/A
  6. Browser Details (e.g. Chrome v81.0): NA
  7. Operating System (e.g. OSX Catalina): Ubuntu Linux I think, but it is Replit so I am not 100% Sure!

Configuration

  1. Have you made any changes to your BeEF configuration? No
  2. Have you enabled or disabled any BeEF extensions? No

Steps to Reproduce

  1. Run install commands on a fresh bash instance on replit
  2. Run install script
  3. Beef does not launch, error with sudo command.

How to enable and capture detailed logging

  1. Edit config.yaml in the root directory
    • If using Kali beef-xss the root dir will be /usr/share/beef-xss
  2. Update client_debug to true
  3. Retrieve browser logs from your browser's developer console (Ctrl + Shift + I or F12 depending on browser)
  4. Retrieve your server-side logs from ~/.beef/beef.log
    • If using beef-xss logs found with journalctl -u beef-xss

If we request additional information and we don't hear back from you within a week, we will be closing the ticket off.

@Shane-At-School
Copy link

Replit cannot run Beef, and this (presumptively) is also against replits terms of service. You can remove the sudo command from the install file, but afaik you cannot obtain most apt packages anyway. You also cannot obtain sudo on replit, as it is disallowed.

@wendellmeset
Copy link
Author

Replit itself is a powerful docker container, could we use this to our advantage to run beef?

@bcoles
Copy link
Collaborator

bcoles commented Feb 19, 2023

Replit itself is a powerful docker container, could we use this to our advantage to run beef?

You could try?

BeEF is a HTTP(S) server. So long as you have a working Ruby environment and a network connection you should be able to use BeEF. You'll also need nodejs and a handful of system packages such as sqlite.

@stephenakq
Copy link
Collaborator

@wendellmeset Did you get BeEF working on Replit?

@wendellmeset
Copy link
Author

No not yet

@wendellmeset
Copy link
Author

I found a replit that emulates a linux terminal with sudo however storage is full, so it may be possible wit ha premium repl subscripbtion!

@Auzgame
Copy link

Auzgame commented Mar 24, 2023

I was able to get beef working on replit. However, I still working out a few of the bugs right now.

@github-actions
Copy link

This issue as been marked as stale due to inactivity and will be closed in 7 days

@github-actions github-actions bot added the Stale Used to mark issues with inactivity label Mar 31, 2023
@Shane-At-School
Copy link

I was able to get beef working on replit. However, I still working out a few of the bugs right now.

Can you link the replit project?

@github-actions github-actions bot removed the Stale Used to mark issues with inactivity label Mar 31, 2023
@bcoles
Copy link
Collaborator

bcoles commented Mar 31, 2023

It is easy to get running.

BeEF on repl

        public:
            host: "<redacted>.<redacted>.repl.co"
            port: "443"
            https: true
        allow_reverse_proxy: true

Unfortunately you'll run into this issue #2768 for reasons which aren't immediately obvious. Fixed in #2785.

@bcoles
Copy link
Collaborator

bcoles commented Mar 31, 2023

I found a replit that emulates a linux terminal with sudo however storage is full, so it may be possible wit ha premium repl subscripbtion!

You don't need sudo. To install:

  • import the project from GitHub (as a Ruby project)
  • run bundle install from shell
  • install Node JS (I think I ran node or nodejs from shell and it prompted me to install it)
  • change the password and public settings in the config.yaml file.

To decrease network traffic and server load, it would be polite to increase the XHR poll duration:

xhr_poll_timeout: 1000

You're done. Change the Run command to ./beef or manually run ./beef from the shell.

There is ample storage (1GB) to get a default install running. BeEF only needs about 30MB + database contents over time.

@bcoles

This comment was marked as off-topic.

@bcoles bcoles mentioned this issue Mar 31, 2023
@bcoles
Copy link
Collaborator

bcoles commented Apr 3, 2023

Using Replit for anything other than testing and developing would most likely be against the terms of service. Closing.

@bcoles bcoles closed this as not planned Won't fix, can't repro, duplicate, stale Apr 3, 2023
@beefproject beefproject locked as resolved and limited conversation to collaborators Apr 3, 2023
@bcoles bcoles added the Question label Apr 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants