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

Return result in run method of executors #112

Open
whotwagner opened this issue Aug 1, 2024 · 1 comment
Open

Return result in run method of executors #112

whotwagner opened this issue Aug 1, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@whotwagner
Copy link
Contributor

whotwagner commented Aug 1, 2024

Currently the run method does not return any result. Attackm8 should be easy to integrate in other projects. So other software should be able to run executors and work with the result.

requirement for issue #114

@thorinaboenke
Copy link
Contributor

thorinaboenke commented Dec 11, 2024

Open questions:

  • what should the integration look like
    Import AttackMate and Command,
    1 Attackmate instance: attackmate = Attackmate( <config etc.>)
    Command Instance: shell_command = Command("shell", "echo Hello World")
    result = attackmate.run_command(shell_command)

  • how do we deal with integrating commands that run in the background? (if supported) --> don't bother with async for now, return None

  • how do we deal with integrating inter

Notes: Functionalities focused in the BaseExecutor to make adding executors easier
_exex Function needs return value

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

2 participants