Open jubeaz opened 5 months ago
Hello,
Here is a PR to manage argument uniqueness inside a command.
This is base on the issue that I've opened here https://github.com/Orange-Cyberdefense/arsenal/issues/90
If accepted and merged I'll work on the concept of option [-debug] [-d <domain_fqdn] ...
[-debug] [-d <domain_fqdn]
Not that the logic of value computation has changed.
if inside a command there are <arg|value> the first one will be assigned to all the <arg> inside the command
<arg|value>
<arg>
after I will process the value based on gvars and cheat.variables, so this might again change the value of an arg
gvars
cheat.variables
arg
Anyway as I explained it in my issue for me having the same <arg> inside a command but wanting to have different value for them is an error
same problem has in the previous PR
Hello @jubeaz,
We will keep arsenal as simple as possible with limited options. Maybe your PR can be useful for someone who have same expectations.
Thanks
Hello,
Here is a PR to manage argument uniqueness inside a command.
This is base on the issue that I've opened here https://github.com/Orange-Cyberdefense/arsenal/issues/90
If accepted and merged I'll work on the concept of option
[-debug] [-d <domain_fqdn]
...Not that the logic of value computation has changed.
if inside a command there are
<arg|value>
the first one will be assigned to all the<arg>
inside the commandafter I will process the value based on
gvars
andcheat.variables
, so this might again change the value of anarg
Anyway as I explained it in my issue for me having the same
<arg>
inside a command but wanting to have different value for them is an error