1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-29 19:09:01 +00:00

NSE committed

This commit is contained in:
fyodor
2006-12-11 00:34:26 +00:00
parent cc451cdb54
commit b361685be8
136 changed files with 23553 additions and 201 deletions

View File

@@ -259,7 +259,12 @@ void NmapOps::Initialize() {
ipopt_firsthop = 0;
ipopt_lasthop = 0;
release_memory = false;
#ifndef NOLUA
script = 0;
scriptversion = 0;
scripttrace = 0;
scriptupdatedb = 0;
#endif
}
bool NmapOps::TCPScan() {
@@ -525,3 +530,15 @@ void NmapOps::setSpoofMACAddress(u8 *mac_data) {
memcpy(spoof_mac, mac_data, 6);
spoof_mac_set = true;
}
#ifndef NOLUA
void NmapOps::chooseScripts(char* argument) {
char *ap;
ap = strtok(argument, ",");
while(ap != NULL) {
chosenScripts.push_back(std::string(ap));
ap = strtok(NULL, ",");
}
}
#endif