mirror of
https://github.com/nmap/nmap.git
synced 2026-01-02 12:59:02 +00:00
Relocate a local among other constants/configurations.
This commit is contained in:
16
nse_main.lua
16
nse_main.lua
@@ -49,6 +49,14 @@ local SELECTED_BY_NAME = "NSE_SELECTED_BY_NAME";
|
||||
-- count worker threads started by scripts.
|
||||
local CONCURRENCY_LIMIT = 1000;
|
||||
|
||||
-- Table of different supported rules.
|
||||
local NSE_SCRIPT_RULES = {
|
||||
prerule = "prerule",
|
||||
hostrule = "hostrule",
|
||||
portrule = "portrule",
|
||||
postrule = "postrule",
|
||||
};
|
||||
|
||||
local _G = _G;
|
||||
|
||||
local assert = assert;
|
||||
@@ -124,14 +132,6 @@ local stdnse = require "stdnse";
|
||||
-- differentiate between yields initiated by NSE or regular coroutine yields.
|
||||
local NSE_YIELD_VALUE = {};
|
||||
|
||||
-- Table of different supported rules.
|
||||
local NSE_SCRIPT_RULES = {
|
||||
prerule = "prerule",
|
||||
hostrule = "hostrule",
|
||||
portrule = "portrule",
|
||||
postrule = "postrule",
|
||||
};
|
||||
|
||||
do
|
||||
-- This is the method by which we allow a script to have nested
|
||||
-- coroutines. If a sub-thread yields in an NSE function such as
|
||||
|
||||
Reference in New Issue
Block a user