From 3f15b93e98a6905853d1271594c45b51eb669fe0 Mon Sep 17 00:00:00 2001 From: patrik Date: Wed, 9 Feb 2011 16:25:42 +0000 Subject: [PATCH] Fixed typo in ms-sql-xp-cmdshell.cmd argument. Changed from mssql-xp-cmdshell to ms-sql-xp-cmdshell. [Patrik] --- scripts/ms-sql-xp-cmdshell.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ms-sql-xp-cmdshell.nse b/scripts/ms-sql-xp-cmdshell.nse index e725816b9..fd2aa9397 100644 --- a/scripts/ms-sql-xp-cmdshell.nse +++ b/scripts/ms-sql-xp-cmdshell.nse @@ -85,7 +85,7 @@ action = function( host, port ) local password = nmap.registry.args['mssql.password'] or "" local creds local query - local cmd = nmap.registry.args['mssql-xp-cmdshell.cmd'] or 'ipconfig /all' + local cmd = nmap.registry.args['ms-sql-xp-cmdshell.cmd'] or 'ipconfig /all' local output = {} query = ("EXEC master..xp_cmdshell '%s'"):format(cmd)