1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 02:19:04 +00:00

Gets arguments with stdnse.get_script_args instead of reading them from nmap.registry

This commit is contained in:
paulino
2011-07-27 03:28:13 +00:00
parent 338ed74779
commit 26dc09ad43
19 changed files with 63 additions and 65 deletions

View File

@@ -57,8 +57,8 @@ action = function( host, port )
local helper
local status, data
local result, output = {}, {}
local user = nmap.registry.args['informix-tables.username']
local pass = nmap.registry.args['informix-tables.password'] or ""
local user = stdnse.get_script_args('informix-tables.username')
local pass = stdnse.get_script_args('informix-tables.password') or ""
local query= [[
SELECT cast(tabname as char(20)) table, cast(colname as char(20)) column, cast( cast(nrows as int) as char(20)) rows
FROM "informix".systables st, "informix".syscolumns sc
@@ -112,4 +112,4 @@ action = function( host, port )
helper:Close()
return stdnse.format_output( true, result )
end
end