From 994b473fc89550ccc116918cd7e35804b5897211 Mon Sep 17 00:00:00 2001 From: daniruiz Date: Wed, 11 May 2022 10:21:43 +0200 Subject: [PATCH] hydra-wizard is missing 'eval' Running hydra-wizard generates the correct command string but fails to execute ```[ERROR] optional parameter must start with a '/' slash!``` The error is caused by the single quotes in the `opts` parameter, as it is interpreted as a character included in the module options string. Removing the `'` chars in opts fixes it too but I'm concerned that could affect some module options. Using `eval` makes more sense I know this script has not been maintained for a long time, but it's still working and I find it useful. I've made it the default command for the hydra menu entry in Kali Linux. That way the user can run hydra-wizard from the menu instead of only seeing the help output. That's the reason why I'm interested in fixing this https://gitlab.com/kalilinux/packages/kali-menu/-/blob/b692a3644066bfa80dc8d7231f01019dd520ff18/desktop-files/kali-hydra.desktop#L5 --- hydra-wizard.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hydra-wizard.sh b/hydra-wizard.sh index 1370661..836ee3a 100755 --- a/hydra-wizard.sh +++ b/hydra-wizard.sh @@ -41,4 +41,4 @@ echo read -p "Do you want to run the command now? [Y/n] " yn test "$yn" = "n" -o "$yn" = "N" && { echo Exiting. ; exit 0 ; } echo -hydra $users $passs -u $pws $ports $opts $targets $service +eval hydra $users $passs -u $pws $ports $opts $targets $service