Running python script on server side via Artifacts

72 views
Skip to first unread message

Nishant Grover

unread,
Sep 22, 2022, 3:54:58 AM9/22/22
to velociraptor-discuss
Hi,

I am looking for possible ways where I want to run a specific python script (with arguments) via Artifact.

I am actually trying to automate something which is being currently done outside of Velociraptor GUI and was wondering if an artifact can be used to do the same where I can configure parameters to pass or even a file upload, which then gets passed to the python script.

Thus all from GUI itself, and it truly becomes single pane for everything.

Regards,
Nishant

Mike Cohen

unread,
Sep 22, 2022, 7:17:42 AM9/22/22
to Nishant Grover, velociraptor-discuss
You can run anything using the execve() VQL plugin


This can also be done on the server if needed. Take a look at any of the yaml files which use execve for example. For example this one https://docs.velociraptor.app/artifact_references/pages/server.utils.createcollector/ calls Velociraptor itself to repack the config into the offline collector :-).

Thanks
Mike



Mike Cohen 
Digital Paleontologist, 
Velocidex Enterprises
mi...@velocidex.com 


--
You received this message because you are subscribed to the Google Groups "velociraptor-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to velociraptor-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/velociraptor-discuss/5f5abe96-7e41-43bd-a184-f629d1598e91n%40googlegroups.com.

Nishant Grover

unread,
Sep 22, 2022, 8:08:41 AM9/22/22
to velociraptor-discuss
Hi Mike,

Thanks for the lead, I will look into this and Deep dive.

Stay Awesome!

Regards,
Nishant

Reply all
Reply to author
Forward
0 new messages