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

Settings and automatization in Ui. #2541

Open
hastalamuerte opened this issue Aug 13, 2022 · 15 comments
Open

Settings and automatization in Ui. #2541

hastalamuerte opened this issue Aug 13, 2022 · 15 comments

Comments

@hastalamuerte
Copy link

hastalamuerte commented Aug 13, 2022

Hello, thank for you great framework! And thank everybody who contribute and etc.

  1. Is it possible to add all options and settings (from yml) in UI (control panel) ? It will be much user friendly .

  2. The second question - can you plz add one Automatization module/yep again in UI. Set a different auto rules for new hooked browsers. I see it looks like some templates with checked payloads/commands/modules with order configure

If look deeper it can be detailed with rules and switches wich depends at browser and os of hooked person. If its chrome rule will turn off all firefox matched plugins.
Or if module 1 succes /have response, start module 2. If no start module 3.
Etc..

/But at first it will be more than ok just choose in UI modules to auto execute when new (?) hooked browser online.

Thx best regards. Glad that beef still have updates!

Upd1. In wiki i found that auto rules and browser detect and much more is allready implement in Beef framework. Its what exactly need that tool. Plz add it to UI.

@bcoles
Copy link
Collaborator

bcoles commented Aug 13, 2022

The second question - can you plz add one Automatization module/yep again in UI.

I presume you're referring to the old system where each module had a checkbox which you could tick/untick within the UI without restarting BeEF.

The new autorun rules engine is far more flexible. It is unfortunate that the new system is not as easy to use.

There are REST API endpoints to manage autorun rules if someone wants to wire them up to the UI:

https://github.com/beefproject/beef/blob/master/core/main/rest/handlers/autorun_engine.rb

@hastalamuerte
Copy link
Author

hastalamuerte commented Aug 13, 2022

Thanks for answer.

If it more flexible maybe rules can be changed without restart beef panel. and using without crafting some other API software. If i only be more good in coding - ok , but my level just simple python scripts , yet.
In one whitehat community one of the biggest for one big country. there was talks about beef. It was called useles without automatisation by admin of that public with reasons.### Most of people still dont know that it functional allready ON . And its bad

If it will be not hard work for a team plz add that in UI . PLZ )
Maybe checkboxes is not best idea, idk. Sorry i was not so close with beef yet

IMG_20220813_171816.png

In settings / options , config, on off beef modules , etc
In auto - set auto on/off(order?) payloads,exploits etc.

Here is some auto third party modules, but honestly its better to use all in one place. In official beef repo.
https://github.com/ssooking/AutoBeef 2017!)
https://github.com/youhacker55/BeefAuto - its easy ngrok setup and some other features

@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 Aug 20, 2022
@bcoles bcoles removed the Stale Used to mark issues with inactivity label Aug 21, 2022
@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 Aug 28, 2022
@bcoles bcoles added Review Issue that needs to be reviewed for completion and removed Stale Used to mark issues with inactivity labels Aug 28, 2022
@hastalamuerte
Copy link
Author

Hello , is there some movements? I so want to use a Beef framework, but its still hard to without automatization in easy way (at least simple scripts for simple cookie, session auto stealing). Plz improve it.

@hastalamuerte
Copy link
Author

hastalamuerte commented Dec 15, 2022

It will have a new life , if it will be implemented. For shure. All web is full of xss, but it useless, without such helper as a beef!

https://github.com/shadow-workers/shadow-workers here is a thing that have such automatisation, but. I need BEEF)

@bcoles
Copy link
Collaborator

bcoles commented Dec 15, 2022

Simplifying the shortcomings of the existing autorun rules engine has been discussed internally for years since the ARE was introduced.

So far there is no interest to work on this task.

@bcoles
Copy link
Collaborator

bcoles commented Dec 15, 2022

But sad that you dont hear arguments wich where sayed before.

Improving/simplifying the autorun rules engine is a good idea. No one is interested in implementing it.

@0xbad53c
Copy link

0xbad53c commented Mar 31, 2023

Perhaps this can fulfill some needs. I wrote a simple Python wrapper script to execute BeEF modules on all currently online zombie browsers:
https://github.com/0xbad53c/CattleStorm

@hastalamuerte @bcoles

@bcoles
Copy link
Collaborator

bcoles commented Mar 31, 2023

Perhaps this can fulfill some needs. I wrote a simple Python wrapper script to execute BeEF modules on all currently online zombie browsers:

Unfortunately this has the same issue as the historical approach in that it requires BeEF clients to poll before executing commands. Hooks may be short lived.

Ideally the ARE should be simplified to be easier to use. This issue (#1968) needs to be fixed first. Fixed in #2782.

@bcoles bcoles added Usability and removed Review Issue that needs to be reviewed for completion labels Apr 2, 2023
@github-actions
Copy link

github-actions bot commented Apr 9, 2023

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 Apr 9, 2023
@bcoles bcoles removed the Stale Used to mark issues with inactivity label Apr 10, 2023
@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 Apr 17, 2023
@bcoles bcoles added Low and removed Stale Used to mark issues with inactivity labels Apr 17, 2023
@LauchieHarvey
Copy link
Contributor

Hello! Thanks for all of your contribution to the project @bcoles & @wadealcorn. I would like to help out with this issue if you think it's possible & worthwhile. My general thoughts are:

  1. Add an "Auto Run" or "Runbook" tab in the same place that @hastalamuerte suggested. After looking at the source code I think I'd do this via the extensions/admin_ui/media/JavaScript/UI/panel/MainPanel.js file.
  2. Build forms to enable CRUD actions on ARE flows. Is the REST API spec in the wiki page 3.2 (Auto Run Engine) the one that I should be referencing? If so, is it up to date?
  3. Allow the user to see (and select from) the list of predefined ARE flows in the arerules directory.
  4. Allow the user to choose between Nested Forward or Sequential Chaining. I'd most likely start by just implementing one and then maybe add the other later.

I'd love to get your suggestions about this before I get started. This will be my first time contributing to this project (and to any ruby project for that matter).

@stephenakq
Copy link
Collaborator

Thank you for offering to help.

Your plan sounds good, especially starting with the "Auto Run" tab and building out CRUD actions for ARE flows. The best first step is checking the REST API spec in the wiki page 3.2 to ensure it's up to date and functional before proceeding.

Welcome to the project

@LauchieHarvey
Copy link
Contributor

LauchieHarvey commented Mar 2, 2024

The PR is here: #3031
It doesn't address the settings changes, just the Auto Run UI implementation.

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

No branches or pull requests

5 participants