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

Put the "SCRIPT ENGINE:" prefix before NSE script start/stop messages.

This commit is contained in:
david
2009-01-06 21:57:51 +00:00
parent 1c936c60cd
commit 5a745de5c7

View File

@@ -386,11 +386,11 @@ void log_script_started(const thread_record &thr) {
if (thr.rr.type == 0) /* hostrule */ if (thr.rr.type == 0) /* hostrule */
log_write(LOG_STDOUT, log_write(LOG_STDOUT,
"Starting '%s' against %s (thread %p).\n", "%s: Starting '%s' against %s (thread %p).\n", SCRIPT_ENGINE,
filename, thr.rr.host->targetipstr(), (void *) thr.thread); filename, thr.rr.host->targetipstr(), (void *) thr.thread);
else /* portrule */ else /* portrule */
log_write(LOG_STDOUT, log_write(LOG_STDOUT,
"Starting '%s' against %s:%d (thread %p).\n", "%s: Starting '%s' against %s:%d (thread %p).\n", SCRIPT_ENGINE,
filename, thr.rr.host->targetipstr(), filename, thr.rr.host->targetipstr(),
thr.rr.port->portno, (void *) thr.thread); thr.rr.port->portno, (void *) thr.thread);
} }
@@ -405,11 +405,11 @@ void log_script_finished(const thread_record &thr) {
if (thr.rr.type == 0) /* hostrule */ if (thr.rr.type == 0) /* hostrule */
log_write(LOG_STDOUT, log_write(LOG_STDOUT,
"Finished '%s' against %s (thread %p).\n", "%s: Finished '%s' against %s (thread %p).\n", SCRIPT_ENGINE,
filename, thr.rr.host->targetipstr(), (void *) thr.thread); filename, thr.rr.host->targetipstr(), (void *) thr.thread);
else /* portrule */ else /* portrule */
log_write(LOG_STDOUT, log_write(LOG_STDOUT,
"Finished '%s' against %s:%d (thread %p).\n", "%s: Finished '%s' against %s:%d (thread %p).\n", SCRIPT_ENGINE,
filename, thr.rr.host->targetipstr(), thr.rr.port->portno, filename, thr.rr.host->targetipstr(), thr.rr.port->portno,
(void *) thr.thread); (void *) thr.thread);
} }