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

What order does ject add scripts in vs run body caos? #21

Open
pushfoo opened this issue Jun 26, 2020 · 2 comments
Open

What order does ject add scripts in vs run body caos? #21

pushfoo opened this issue Jun 26, 2020 · 2 comments

Comments

@pushfoo
Copy link
Member

pushfoo commented Jun 26, 2020

Is it possible to create an agent and have it call one of its own event scripts before the file has finished being injected? Or do events get parsed into their own storage space before execution?

@JGantts
Copy link
Member

JGantts commented Jun 26, 2020

I believe the order of script injection is supposed to be remove, events, installation. So unless the remove event calls it, the events should always be present before execution.

I know defining a BHVR that references a non-existing event script, you get an error. I believe that error comes from the engine, not the CAOS tool.

Nevermind, I forgot you're looking into interleaved CAOS.

@bedalton
Copy link

bedalton commented Sep 10, 2020

In my attempts to figure this out, it appears that with JECT at least, install and body scripts are injected at the end after the removal and event scripts. Both body scripts and install scripts are installed alongside each other in the order they appear in the document. Both body scripts and install scripts are injected with JECT with flag 4 (Install Scripts).

This is on Windows.

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

3 participants