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

b692a36440/desktop-files/kali-hydra.desktop (L5)
This commit is contained in:
daniruiz 2022-05-11 10:21:43 +02:00 committed by GitHub
commit 994b473fc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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