QuickAction Overview - WolvenKit/CyberCAT GitHub Wiki
Predefined variables
CyberCAT sets up some predefined variables that can be used in your script. Note that these are case sensitive:
- lib
- HostTypeCollection of CyberCAT.Core assembly
- nodes
- The "Nodes" Property consisting of a list of NodeEntries of the currently loaded SaveFile
- host
- an instance of HostFunctions
Accessible types
The accessible types of the scripts are limited so that QuickActions have a limited scope of what they can do. The following types are accesible:
- All types of CyberCAT.Core
- Note that some properties need to be cast to their correct type see casting
- Enumerable
- Gives Access to some Enumerable Extensions
- is limited as only some extensions can be called without error from JS
- "FirstOrDefault" can be called
- "Sum" on the other hand will result in errors
- EnumerableExtensions
- Gives access to Enumerable.where to use like in c# linq expressions
- More extensions could be added on request