mirror of
https://github.com/nmap/nmap.git
synced 2025-12-08 13:41:29 +00:00
o The NSE nmap.registry.args table is now available, albeit empty, when
--script-args isn't used. Now scripts don't need to check if it's nil before attempting to index it. [Kris]
This commit is contained in:
@@ -180,6 +180,10 @@ o Fix a couple bugs in the way the Nmap built system checked for an
|
|||||||
configure option for specifying your own liblua. [Daniel
|
configure option for specifying your own liblua. [Daniel
|
||||||
Roethlisberger]
|
Roethlisberger]
|
||||||
|
|
||||||
|
o The NSE nmap.registry.args table is now available, albeit empty, when
|
||||||
|
--script-args isn't used. Now scripts don't need to check if it's nil
|
||||||
|
before attempting to index it. [Kris]
|
||||||
|
|
||||||
o Changed SSLv2-support.nse so that it only enumerates the list of
|
o Changed SSLv2-support.nse so that it only enumerates the list of
|
||||||
available ciphers with a verbosity level of at least two or with
|
available ciphers with a verbosity level of at least two or with
|
||||||
debugging enabled. [Kris]
|
debugging enabled. [Kris]
|
||||||
|
|||||||
@@ -457,6 +457,9 @@ void NmapOps::ValidateOptions() {
|
|||||||
if(ipoptions && osscan)
|
if(ipoptions && osscan)
|
||||||
error("WARNING: Ip options are NOT used while OS scanning!");
|
error("WARNING: Ip options are NOT used while OS scanning!");
|
||||||
|
|
||||||
|
/* Make sure nmap.registry.args is available (even if it's empty) */
|
||||||
|
if (!scriptargs)
|
||||||
|
scriptargs = strdup("");
|
||||||
}
|
}
|
||||||
|
|
||||||
void NmapOps::setMaxOSTries(int mot) {
|
void NmapOps::setMaxOSTries(int mot) {
|
||||||
|
|||||||
@@ -285,7 +285,7 @@ int init_lua (lua_State *L)
|
|||||||
/* int init_parseargs (lua_State *L)
|
/* int init_parseargs (lua_State *L)
|
||||||
*
|
*
|
||||||
* Arguments
|
* Arguments
|
||||||
* args Arguments passed through --script-args
|
* args Arguments passed through --script-args, or "" if it wasn't used
|
||||||
* Returns
|
* Returns
|
||||||
* function Function that returns a table with the arguments, or an error
|
* function Function that returns a table with the arguments, or an error
|
||||||
* message describing why the arguments could not be parsed.
|
* message describing why the arguments could not be parsed.
|
||||||
@@ -320,9 +320,6 @@ int init_parseargs (lua_State *L)
|
|||||||
*/
|
*/
|
||||||
int init_setargs (lua_State *L)
|
int init_setargs (lua_State *L)
|
||||||
{
|
{
|
||||||
if (o.scriptargs == NULL)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
lua_getglobal(L, "nmap");
|
lua_getglobal(L, "nmap");
|
||||||
lua_getfield(L, -1, "registry");
|
lua_getfield(L, -1, "registry");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user