diff --git a/scripts/dns-zone-transfer.nse b/scripts/dns-zone-transfer.nse index 8264f0864..0210b2c0f 100644 --- a/scripts/dns-zone-transfer.nse +++ b/scripts/dns-zone-transfer.nse @@ -426,7 +426,7 @@ function add_zone_info(response) offset = parse_records(add_answers, data, RR, offset) end - local outtab, nhosts = tab.new(2), 0 + local outtab, nhosts = tab.new(), 0 local newhosts_count, status, ret = 0, false tab.nextrow(outtab) @@ -588,7 +588,7 @@ action = function(host, port) return stdnse.format_output(true, ret) -- dump axfr results else - local table = tab.new(3) + local table = tab.new() local status, ret = dump_zone_info(table, response_str) if not status then return stdnse.format_output(false, ret) diff --git a/scripts/firewalk.nse b/scripts/firewalk.nse index fcd0fd45c..b8ab40751 100644 --- a/scripts/firewalk.nse +++ b/scripts/firewalk.nse @@ -391,7 +391,7 @@ end -- @param forwarded array of ports we discovered as forwarded, one row per protocol -- @return the report string local function report(tested, forwarded) - local output = tab.new(2) + local output = tab.new() tab.add(output, 1, "PROTOCOL") tab.add(output, 2, "FORWARDED PORTS") diff --git a/scripts/nfs-ls.nse b/scripts/nfs-ls.nse index 0cbcc20d9..db7f2fb9a 100644 --- a/scripts/nfs-ls.nse +++ b/scripts/nfs-ls.nse @@ -207,7 +207,7 @@ local function nfs_ls(nfs, mount, results, access) end local function report(nfs, table) - local outtab, time = tab.new(6), "" + local outtab, time = tab.new(), "" if nfs.time == "mtime" then time = "MODIFICATION TIME" diff --git a/scripts/nfs-statfs.nse b/scripts/nfs-statfs.nse index 86e617928..e7e70f163 100644 --- a/scripts/nfs-statfs.nse +++ b/scripts/nfs-statfs.nse @@ -84,7 +84,7 @@ local function report(nfs, tables) end if nfs.version == 2 then - outtab = tab.new(6) + outtab = tab.new() tab.nextrow(outtab) tab.addrow(outtab, tab_filesys, tab_size, tab_used, tab_avail, tab_use, tab_bs) @@ -94,7 +94,7 @@ local function report(nfs, tables) t.used, t.available, t.use, t.bsize) end elseif nfs.version == 3 then - outtab = tab.new(7) + outtab = tab.new() tab.nextrow(outtab) tab.addrow(outtab, tab_filesys, tab_size, tab_used, tab_avail, tab_use, tab_maxfs, tab_linkmax) diff --git a/scripts/qscan.nse b/scripts/qscan.nse index cb13e7460..3e20f4230 100644 --- a/scripts/qscan.nse +++ b/scripts/qscan.nse @@ -231,7 +231,7 @@ end -- @return Output report local report = function(stats) local j - local outtab = tab.new(5) + local outtab = tab.new() tab.add(outtab, 1, "PORT") tab.add(outtab, 2, "FAMILY")