1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Fixed typo in ms-sql-xp-cmdshell.cmd argument. Changed from mssql-xp-cmdshell

to ms-sql-xp-cmdshell. [Patrik]
This commit is contained in:
patrik
2011-02-09 16:25:42 +00:00
parent 21ee742ca3
commit 3f15b93e98

View File

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