Parameters
The array of parameters shown here are the ones that are presented to the operator when building their payload. These should be things that the Payload will need in order to successfully talk through your C2 Profile.What if your Server and Payload need some shared piece of data? There’s a ConfigCheck function that’s called that you can define here that will provide the full payload configuration.
You can take this config and update something on your server-side configuration to keep parity between the two.
parameters example
Parameter Components
So what are all these components in the Parameter definitions?name- What is the name of the parameter- this is how you’ll get the value for this parameter during build time
description- The long form description of what this value meansdefault_value- What is the default value for this parameterverifier_regex- Optional feature you can use to provide a regex that indicates if a value is valid or not for the operatorrequired- Is this field required for the operator to fill outparameter_type- What type of parameter is this:String- you get astringvalueChooseOne`` - you get astring` valueChooseOneCustom- you get astringvalueChooseMultiple- you get anarrayofstringvaluesArray- you get anarrayofstringvaluesDate- you get a string representation of the Date as YYYY-MM-DDDictionary- you get adictionaryrepresentation, ormap[string]stringin GoBoolean- you get aboolvalueTypedArray- you get anarrayoftuples- this will either be something like
[ ["type", "value"], ["type", "value"] ]if the UI modal was used - this will be something like
[ ["", "user typed"], ["", "user typed"] ]and sent to your typed_array_parse function in the case that the user just typed something and needs parsing into the above format
- this will either be something like
File- you will get astringUUIDv4 value that you can use to upload/download via chunkingFileMultiple- you will get anarrayofstringUUIDv4 values that you can use to upload/download via chunkingNumber- you will get anintin Python and afloat64in Go by default
