mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-06 04:51:40 -07:00
patch for gtk to add -h -U -f and -F support
This commit is contained in:
parent
aff97db1c7
commit
f7dc365cc5
3 changed files with 53 additions and 4 deletions
|
@ -108,6 +108,18 @@ int hydra_get_options(char *options[]) {
|
|||
options[i++] = "-d";
|
||||
}
|
||||
|
||||
/* COMPLETE HELP */
|
||||
widget = lookup_widget(GTK_WIDGET(wndMain), "chkCompleteHelp");
|
||||
if (gtk_toggle_button_get_active((GtkToggleButton *) widget)) {
|
||||
options[i++] = "-h";
|
||||
}
|
||||
|
||||
/* Service Module Usage Details */
|
||||
widget = lookup_widget(GTK_WIDGET(wndMain), "chkServiceDetails");
|
||||
if (gtk_toggle_button_get_active((GtkToggleButton *) widget)) {
|
||||
options[i++] = "-U";
|
||||
}
|
||||
|
||||
/* use colon separated list? */
|
||||
widget = lookup_widget(GTK_WIDGET(wndMain), "chkColon");
|
||||
if (gtk_toggle_button_get_active((GtkToggleButton *) widget)) {
|
||||
|
@ -205,6 +217,12 @@ int hydra_get_options(char *options[]) {
|
|||
}
|
||||
|
||||
/* exit after first found pair? */
|
||||
/* per host */
|
||||
widget = lookup_widget(GTK_WIDGET(wndMain), "chkExitf");
|
||||
if (gtk_toggle_button_get_active((GtkToggleButton *) widget)) {
|
||||
options[i++] = "-f";
|
||||
}
|
||||
/* global */
|
||||
widget = lookup_widget(GTK_WIDGET(wndMain), "chkExitf");
|
||||
if (gtk_toggle_button_get_active((GtkToggleButton *) widget)) {
|
||||
options[i++] = "-f";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue