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

AutorunEngine: Cleanup, rename REST routes, use Core::Models in REST API #2785

Merged
merged 3 commits into from
Apr 2, 2023

Conversation

bcoles
Copy link
Collaborator

@bcoles bcoles commented Apr 2, 2023

Replace BeEF::Core::AutorunEngine::Models with BeEF::Core::Models. Fixes #2019. Shoutout to @Squigilum for fixing this in #2020 which was unfortunately never merged.


Rename the REST API URL routes to be more sensible. Request all rules with /api/autorun/rules. No more of this /api/autorun/rule/list/all nonsense.

get '/rules'
get '/rule/:rule_id'
get '/run/:rule_id'
get '/run/:rule_id/:hb_id'
post '/rule/add'
delete '/rule/:rule_id'

Add REST API samples for the Autorun REST API.


Massive refactor of the Autorun Engine. It is still terrible but now the code is readable.


Remove os / browser properties with redundant 'ALL' values from sample ARE rules. ALL is implied and does not need to be defined.

@bcoles bcoles temporarily deployed to Integrate Pull Request April 2, 2023 09:58 — with GitHub Actions Inactive
@bcoles bcoles merged commit 221fbdd into beefproject:master Apr 2, 2023
@bcoles bcoles deleted the autorun branch April 2, 2023 10:04
@bcoles bcoles mentioned this pull request Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ARE REST API cannot find AutorunEngine Models
1 participant