spellshift / realm

Realm is a cross platform Red Team engagement platform with a focus on automation and reliability.
https://docs.realm.pub/
GNU General Public License v3.0
418 stars 31 forks source link

[bug] None of the assets functions except assets.copy() implement the remote API #725

Closed raynecafaro closed 7 months ago

raynecafaro commented 7 months ago

Describe the bug When I call the eldritch function assets.read(), I would expect it to implement the remote API where I could read something off the remote server into a string that can be used on the agent. It appears that only assets.copy() implements the remote API.

To Reproduce Steps to reproduce the behavior:

Write a tome using anything in the assets library that is not assets.copy() and attempt to retrieve an asset from tavern.

Expected behavior The expected behavior would be for all of the functions in the assets library to implement the remote API.

Screenshots

image

Additional context The screenshot above demonstrates an attempt at using assets.read() to read in the content of a file as a string, using an asset that was staged in [name_of_tome]/assets/[ASSET]