mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Do copyediting of NSEDoc. This is a first pass up to ms-sql-xp-cmdshell.
This commit is contained in:
@@ -1,5 +1,15 @@
|
||||
description = [[
|
||||
Queries Microsoft SQL Server (MSSQL) for a list of tables per database.
|
||||
Attempts to run a command using the command shell of Microsoft SQL
|
||||
Server (ms-sql).
|
||||
|
||||
The script needs an account with the sysadmin server role to work.
|
||||
It needs to be fed credentials through the script arguments or from
|
||||
the scripts <code>ms-sql-brute</code> or
|
||||
<code>ms-sql-empty-password</code>.
|
||||
|
||||
When run, the script iterates over the credentials and attempts to run
|
||||
the command until either all credentials are exhausted or until the
|
||||
command is executed.
|
||||
]]
|
||||
|
||||
author = "Patrik Karlsson"
|
||||
@@ -14,11 +24,11 @@ dependencies = {"ms-sql-brute", "ms-sql-empty-password"}
|
||||
---
|
||||
-- @args mssql.username specifies the username to use to connect to
|
||||
-- the server. This option overrides any accounts found by
|
||||
-- the mssql-brute and mssql-empty-password scripts.
|
||||
-- the <code>ms-sql-brute</code> and <code>ms-sql-empty-password</code> scripts.
|
||||
--
|
||||
-- @args mssql.password specifies the password to use to connect to
|
||||
-- the server. This option overrides any accounts found by
|
||||
-- the mssql-brute and mssql-empty-password scripts.
|
||||
-- the <code>ms-sql-brute</code> and <code>ms-sql-empty-password</code> scripts.
|
||||
--
|
||||
-- @args mssql-xp-cmdshell.cmd specifies the OS command to run.
|
||||
-- (default is ipconfig /all)
|
||||
@@ -26,7 +36,7 @@ dependencies = {"ms-sql-brute", "ms-sql-empty-password"}
|
||||
-- @output
|
||||
-- PORT STATE SERVICE
|
||||
-- 1433/tcp open ms-sql-s
|
||||
-- | mssql-xp-cmdshell:
|
||||
-- | ms-sql-xp-cmdshell:
|
||||
-- | Command: ipconfig /all; User: sa
|
||||
-- | output
|
||||
-- |
|
||||
@@ -53,15 +63,6 @@ dependencies = {"ms-sql-brute", "ms-sql-empty-password"}
|
||||
-- | Lease Obtained. . . . . . . . . . : den 21 mars 2010 00:12:10
|
||||
-- | Lease Expires . . . . . . . . . . : den 21 mars 2010 01:12:10
|
||||
-- |_
|
||||
--
|
||||
-- The script needs an account with the sysadmin server role to work.
|
||||
-- It needs to be fed credentials through the script arguments or from
|
||||
-- the scripts mssq-brute or mssq-empty-password.
|
||||
--
|
||||
-- When run, the script iterates over the credentials and attempts to run
|
||||
-- the command until either all credentials are exhausted or until the
|
||||
-- command is executed.
|
||||
--
|
||||
|
||||
-- Version 0.1
|
||||
-- Created 01/17/2010 - v0.1 - created by Patrik Karlsson <patrik@cqure.net>
|
||||
@@ -143,4 +144,4 @@ action = function( host, port )
|
||||
|
||||
return output
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user