engine/modifiers/quoteinsert/quote_insertion.go needs to implement while matching to https://github.com/wietze/ArgFuscator.net/blob/main/src/Modifiers/QuoteInsertion.ts
Steps:
- Unmarshal cfg into a Config struct.
- Parse Config.Probability.
- For each eligible token:
a. Roll rand.Float64(); if >= probability, leave token unchanged.
b. Pick a random insertion position between 1 and len(runes)- 1 (avoid position 0 or end to keep the token visually meaningful).
c. Pick a quote character at random: " or '.
d. Insert "" (or ”) at the chosen position.
- Return updated tokens.
engine/modifiers/quoteinsert/quote_insertion.goneeds to implement while matching to https://github.com/wietze/ArgFuscator.net/blob/main/src/Modifiers/QuoteInsertion.tsSteps:
a. Roll rand.Float64(); if >= probability, leave token unchanged.
b. Pick a random insertion position between 1 and len(runes)- 1 (avoid position 0 or end to keep the token visually meaningful).
c. Pick a quote character at random:
"or'.d. Insert
""(or”) at the chosen position.