# They don't want lua
if test "$no_lua" = "yes"; then
CXXFLAGS="-DNOLUA $CXXFLAGS"
CPPFLAGS="-DNOLUA $CPPFLAGS"
LIBLUA_LIBS=""
LUA_DEPENDS=""
LUA_BUILD=""
if(ipoptions && osscan)
error("WARNING: Ip options are NOT used while OS scanning!");
#ifndef NOLUA
/* Make sure nmap.registry.args is available (even if it's empty) */
if (!scriptargs)
scriptargs = strdup("");
#endif
}
void NmapOps::setMaxOSTries(int mot) {
if (FPR) delete FPR;
if (o.script) {
ScriptResults::iterator sriter;
for (sriter = scriptResults.begin(); sriter != scriptResults.end(); sriter++)
free((*sriter).id);
/* Creates a "presentation" formatted string out of the IPv4/IPv6 address.
if (o.dns_servers) free(o.dns_servers);
if (o.extra_payload) free(o.extra_payload);
if (o.ipoptions) free(o.ipoptions);
free(o.scriptargs);
/* Reads in a (normal or machine format) Nmap log file and gathers enough
#ifndef NMAP_LUA_H
#define NMAP_LUA_H
extern "C" {
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
#include <vector>
#include <list>
free(serviceprobe_service);
if (serviceprobe_fp)
free(serviceprobe_fp);
// Uses the sd->{product,version,extrainfo} if available to fill