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

Free automatic execution #1513

Open
MohamedKarrab opened this issue Dec 16, 2023 · 2 comments
Open

Free automatic execution #1513

MohamedKarrab opened this issue Dec 16, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@MohamedKarrab
Copy link

MohamedKarrab commented Dec 16, 2023

Make it possible to automatically execute any command on the sliver server and get output (depending on events).
reactions is very limited and doesn't support executing a command every 5 seconds for example, nor does it support variables.
Besides, writing your own client for each action doesn't seem very practical. Because you may have different goals each time and that's what scripts are meant for.
This should supposedly be possible using sliverpy, but there are limits on the commands we can use (white list). But for instance, I want to use an armory command that doesn't exist within the sliver.interactive.BaseInteractiveCommands class.
If you change the implementation and make it like if you did type "use xyz-session", "cmd" and wait for the output, it would be possible to execute anything rather than a limited set of predefined commands.

@moloch-- moloch-- added the enhancement New feature or request label Dec 16, 2023
@rkervella
Copy link
Member

rkervella commented Dec 18, 2023

Besides, writing your own client for each action doesn't seem very practical. Because you may have different goals each time and that's what scripts are meant for.

You could write a client that reads commands from a file (or something else), parses them and then calls the appropriate RPC. You can be flexible, no need to write one client per action.
We'll look into that once we're done with the 1.6 release.

@maxlandon
Copy link
Contributor

maxlandon commented Dec 19, 2023

Hello @MohamedKarrab, could you have a look at #1359 and see if this kind of thing would solve your problems ?

The section III - Example worflows might be the one to look at here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants