You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Q: Please provide a brief summary of the issue that you experienced. A: The REST API for the ARE does not work for listing or deleting rules. It will return failure due to an exception in the ARE.
Environment
Please identify the environment in which your issue occurred.
BeEF Version: 0.5.0.0
Ruby Version: 2.5.1p57
Browser Details (e.g. Chrome v81.0): Can be observed with curl 7.68.0
Operating System (e.g. OSX Catalina): Ubuntu 18.04
Configuration
Q: Have you made any changes to your BeEF configuration? A: No
Q: Have you enabled or disabled any BeEF extensions? A: No
Expected vs. Actual Behaviour
Expected Behaviour:
The REST API for the ARE allows listing of rules by ID (or all) and deletion of rules
Actual Behaviour:
The REST API returns failure, and an error is logged to the BeEF terminal window
Steps to Reproduce
Please provide steps to reproduce this issue.
Ensure there is at least one rule in the arerules/enabled folder and start BeEF
Attempt to list rules using the ARE REST API (can do via curl http://<BeEF IP>:3000/api/autorun/rule/list/all?token=<token>)
The REST call will fail, and the error [!] [ARE] ERROR: uninitialized constant BeEF::Core::AutorunEngine::Models will be seen in the BeEF terminal window.
Additional Information
This issue was introduced in commit 0574bdf, which moved the models folder out of core/main/autorun_engine but did not update the REST API.
Submit Issue
Summary
Q: Please provide a brief summary of the issue that you experienced.
A: The REST API for the ARE does not work for listing or deleting rules. It will return failure due to an exception in the ARE.
Environment
Please identify the environment in which your issue occurred.
BeEF Version: 0.5.0.0
Ruby Version: 2.5.1p57
Browser Details (e.g. Chrome v81.0): Can be observed with curl 7.68.0
Operating System (e.g. OSX Catalina): Ubuntu 18.04
Configuration
Q: Have you made any changes to your BeEF configuration?
A: No
Q: Have you enabled or disabled any BeEF extensions?
A: No
Expected vs. Actual Behaviour
Expected Behaviour:
The REST API for the ARE allows listing of rules by ID (or all) and deletion of rules
Actual Behaviour:
The REST API returns failure, and an error is logged to the BeEF terminal window
Steps to Reproduce
Please provide steps to reproduce this issue.
arerules/enabled
folder and start BeEFcurl http://<BeEF IP>:3000/api/autorun/rule/list/all?token=<token>
)[!] [ARE] ERROR: uninitialized constant BeEF::Core::AutorunEngine::Models
will be seen in the BeEF terminal window.Additional Information
This issue was introduced in commit 0574bdf, which moved the
models
folder out of core/main/autorun_engine but did not update the REST API.See pull request #2020 for a fix for this issue
The text was updated successfully, but these errors were encountered: