Skip to content

Commit

Permalink
Change: make [sign] option the default for wmi_connect* (#1355)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnicola committed Mar 7, 2023
1 parent d63b85a commit f0caa6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nasl/nasl_wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ nasl_wmi_connect (lex_ctxt *lexic)
argv[0] = g_strdup ("wmic");
argv[1] = g_strdup ("-U");
argv[2] = g_strdup_printf ("%s%%%s", username, password);
argv[3] = g_strdup_printf ("//%s%s", ip, options ? options : "");
argv[3] = g_strdup_printf ("//%s%s", ip, options ? options : "[sign]");
argv[4] = g_strdup (ns);
g_free (ip);

Expand Down Expand Up @@ -317,7 +317,7 @@ nasl_wmi_connect_rsop (lex_ctxt *lexic)
argv[0] = g_strdup ("wmic");
argv[1] = g_strdup ("-U");
argv[2] = g_strdup_printf ("%s%%%s", username, password);
argv[3] = g_strdup_printf ("//%s%s", ip, options ? options : "");
argv[3] = g_strdup_printf ("//%s%s", ip, options ? options : "[sign]");
g_free (ip);

tree_cell *retc = alloc_typed_cell (CONST_INT);
Expand Down Expand Up @@ -430,7 +430,7 @@ nasl_wmi_connect_reg (lex_ctxt *lexic)
argv[0] = g_strdup ("wmic");
argv[1] = g_strdup ("-U");
argv[2] = g_strdup_printf ("%s%%%s", username, password);
argv[3] = g_strdup_printf ("//%s%s", ip, options ? options : "");
argv[3] = g_strdup_printf ("//%s%s", ip, options ? options : "[sign]");
g_free (ip);

tree_cell *retc = alloc_typed_cell (CONST_INT);
Expand Down

0 comments on commit f0caa6c

Please sign in to comment.