The program panics with a type error when given a valid --timeout value while also using a recipe.
Reproduce
recipes/prtg-network-monitor.yml:
description: PRTG Network Monitor login bruteforce
author: bryanmcnulty
plugin: http
args:
target: "{$url}/public/checklogin.htm"
http-method: POST
http-success: "status == 302 && set_cookie != \"\""
http-payload: "loginurl=&username={USERNAME}&password={PASSWORD}"
RUST_BACKTRACE=full legba -R recipes/prtg-network-monitor.yml -U 'prtgadmin' -P passwords.txt url=http://[REDACTED]:8080 --timeout 500 2> stderr.log 1> stdout.log
Output
stdout.log:
legba v1.2.0
[INFO ] recipe: recipes/prtg-network-monitor.yml (PRTG Network Monitor login bruteforce)
[INFO ] recipe.path=[REDACTED]/recipes
[INFO ] url=http://[REDACTED]:8080
stderr.log:
thread 'main' (3830111) panicked at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap_builder-4.5.40/src/parser/error.rs:32:9:
Mismatch between definition and access of `timeout`. Could not downcast to TypeId(0x763d199bccd319899208909ed1a860c6), need to downcast to TypeId(0x9ed91be891e304132cb86891e578f4a5)
stack backtrace:
0: 0x7f52ac28f562 - <unknown>
1: 0x7f52ab7eda7f - <unknown>
2: 0x7f52ac28f0bf - <unknown>
3: 0x7f52ac28f3c3 - <unknown>
4: 0x7f52ac28ecae - <unknown>
5: 0x7f52ac2b3b98 - <unknown>
6: 0x7f52ac2b3af9 - <unknown>
7: 0x7f52ac2b3aec - <unknown>
8: 0x7f52ab1bbc8f - <unknown>
9: 0x7f52ab47e52c - <unknown>
10: 0x7f52ab476e5c - <unknown>
11: 0x7f52ab46bf7d - <unknown>
12: 0x7f52ab46af6c - <unknown>
13: 0x7f52ab327753 - <unknown>
14: 0x7f52ab6bf98d - <unknown>
The program panics with a type error when given a valid
--timeoutvalue while also using a recipe.Reproduce
recipes/prtg-network-monitor.yml:
Output
stdout.log:
stderr.log: