legba icon indicating copy to clipboard operation
legba copied to clipboard

Additional parameters not taken into account when using recipes

Open GrumpCatz opened this issue 1 year ago • 0 comments

Hey there!

Whenever I specify a recipe then some other parameters, i.e. to throttle the number of requests they aren't taken into account. I've looked at the code and it seems like the options.try_update_from(argv).map_err(|e| e.to_string())?; on https://github.com/evilsocket/legba/blob/main/src/main.rs#L74C9-L74C67 is the culprit. This method seems to overwrite the parameters given in the command line with the default value.

So for example, using the following command :

legba -R ./recipe.yaml --concurrency 5 --wait 1000 -U users.txt -P passwords.txt "host=hostname"

The concurrency and wait parameters will not be taken into account and their values will be the default ones. This looks like a Clap issue since I'm able to recreate the issue using a small PoC.

GrumpCatz avatar Jan 11 '25 17:01 GrumpCatz