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

Request: Provide parameters to reactions on execution #21

Open
rctgardner opened this issue May 19, 2021 · 0 comments
Open

Request: Provide parameters to reactions on execution #21

rctgardner opened this issue May 19, 2021 · 0 comments

Comments

@rctgardner
Copy link
Contributor

rctgardner commented May 19, 2021

It would be nice to be able to provide simple string parameters to the compiled binaries on execution, either in the form of CLI parameters or environment variables. My existing use case is developing a reaction for generic DDoS botnets like Mirai, and providing a fake binary filename on the command line, like so:

Example atom

[
  {
    "name": "EXECUTE-BOT",
    "fork-and-rename": [ "./${1}" ]
  }
]
$ ./reaction x86_64
...
atom: EXECUTE-BOT
        quark: fork-and-rename("./x86_64")

$ ./reaction arm7
...
atom: EXECUTE-BOT
        quark: fork-and-rename("./arm7")

$ ./reaction mips
...
atom: EXECUTE-BOT
        quark: fork-and-rename("./mips")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant