-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Fixed ARE REST rule lookups #2020
Conversation
Thanks. This fixes the REST API. There's probably some more instances that need to be reviewed.
|
This looks good to me. I notice you've replaced with I think @jcrew99 can you review? |
Awesome work, I will be able to review tomorrow. Great pull request! |
@jcrew99 - I can review this PR if you need me |
closing as this PR is stale, reopen if it's required to merge. |
Thanks for the PR. I'm not sure why it was not merged. |
Pull Request
Category
e.g. Bug, Module, Extension, Core Functionality, Documentation, Tests
Bug
Feature/Issue Description
Q: Please give a brief summary of your feature/fix
A: This fixes the issues reported in the ARE REST API described in issue #2019
Q: Give a technical rundown of what you have changed (if applicable)
A: In commit 0574bdf, the autorun engine models were moved from
core/main/autorun_engine/models
tocore/main/models
. However the code for the ARE REST API that iterates through the rules was not updated to reflect this. This will cause an exception if the REST API is used to list/delete rules. This commit updates the three places where a rule access was performed during list/delete API calls to reflect the restructured code.Test Cases
Q: Describe your test cases, what you have covered and if there are any use cases that still need addressing.
A: This can be tested with the curl commands provided in the ARE REST API documentation, e.g.
curl http://<BeEF IP>:3000/api/autorun/rule/list/all?token=<token>
Wiki Page
If you are adding a new feature that is not easily understood without context, please draft a section to be added to the Wiki below.
N/A